This function lets you create a manual Exim mail exchanger (MX) redirect for a domain.
An MX redirection lets you bypass the domain's MX lookup via the Domain Name System (DNS).
This function adds the manual redirect entries to the /etc/manualmx
file.
Note:
To remove a domain's manual MX redirection, use the UAPI Email unset_manual_mx_redirect
function.
uapi --output=jsonpretty --user=username Email unset_manual_mx_redirects domain='example.com'
{- "apiversion": 3,
- "func": "unset_manual_mx_redirects",
- "module": "Email",
- "result": {
- "data": {
- "example.com": "mailhostexample.com"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}