Login

Add email redirection

HTTP method

POST

URL

https://api.zilore.com/dns/v1/domains/{domain_name}/mail_forwarding

Request parameters

Parameter

Description

domain_name

Domain name. Must conform to the standard. Names of national domains must be passed in Punycode format.

source

Email within the current domain from which emails will be redirected, without @example.com (for example, for the email address foo@example.com source=foo)

destination

Full email address to which redirection is to take place; several addresses can be specified separated by commas

Adding address redirection causes all user records of types MS or TXT with the name of the specified subdomain to be deleted

Response fields

Parameter

Description

mf_address_id

Identifier of new mail redirection

Request example

POST https://api.zilore.com/dns/v1/domains/example.com/mail_forwarding
X-Auth-Key: 6fac94db-691b-ec08-d22c-00000b7c06c0
Content-Type: application/x-www-form-urlencoded

source=foo&destination=bar@example1.com

Response example

{
"status": "ok",
"response": {
"mf_address_id": 25,
"mf_address_status": "added"
}
}