v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01960201.2 KB
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 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'