Routing

Create Sender-Dependent Transports

Using this endpoint you can create Sender-Dependent Transports.

post/api/v1/add/relayhost

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    API key in header X-API-Key

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'

Changes

No recorded changes to this operation across all 55 revisions of this API.