v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01960201.2 KB
Routing

Create Sender-Dependent Transports

Using this endpoint you can create Sender-Dependent Transports.

post/api/v1/add/relayhost

Request body

hostnamestring

the hostname of the smtp server with port

passwordstring

the password for the smtp user

usernamestring

the username used to authenticate

Example request

{
  "hostname": "mailcow.tld:25",
  "password": "supersecurepassword",
  "username": "testuser"
}

Response

OK

type'success' | 'danger' | 'error'