Email
Email Forwarding
Create domain-level forwarder
This function creates a domain-level forwarder.
Important:
When you disable the Receive Mail role, the system disables this function.
get/Email/add_domain_forwarder
Query parameters
destdomainstring domain required
Example:forwardtome.com
The domain to receive forwarded mail.
domainstring domain required
Example:example.com
The domain on the cPanel account from which to forward mail.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "add_domain_forwarder",
"module": "Email",
"result": {
"data": "File updated \"/etc/vdomainaliases/example.com\"",
"status": 1
}
}