Fordwarding Hosts

Add Forward Host

Add a new Forwarding host to mailcow. You can chose to enable or disable spam filtering of incoming emails by specifing filter_spam 0 = inactive, 1 = active.

post/api/v1/add/fwdhost

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

filter_spamnumber

1 to enable spam filter, 0 to disable spam filter

hostnamestring

contains the hostname you want to add

Example request

{
  "filter_spam": "0",
  "hostname": "hosted.mailcow.de"
}

Response

OK

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

Changes

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