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 WHM API 1 unset_manual_mx_redirect function.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ set_manual_mx_redirects \ domain='example.com' \ mx_host='mailhostexample.com'
{- "data": {
- "payload": {
- "example.com": "mailhostexample.com",
- "example.org": null
}
}, - "metadata": {
- "command": "set_manual_mx_redirects",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}