v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01960201.2 KB
Address Rewriting

Create Recipient Map

Using this endpoint you can create a recipient map to forward all mails from one email address to another.

post/api/v1/add/recipient_map

Request body

activenumber

1 for a active user account 0 for a disabled user account

recipient_map_newstring

the email address that should receive the forwarded emails

recipient_map_oldstring

the email address which emails should be forwarded

Example request

{
  "active": "1",
  "recipient_map_new": "target@mailcow.tld",
  "recipient_map_old": "recipient@mailcow.tld"
}

Response

OK

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