This function creates a domain-level forwarder.
Important:
When you disable the Receive Mail role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Email \ add_domain_forwarder \ domain='example.com' \ destdomain='forwardtome.com'
{- "apiversion": 3,
- "func": "add_domain_forwarder",
- "module": "Email",
- "result": {
- "data": "File updated \"/etc/vdomainaliases/example.com\"",
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}