Remove manual mail exchanger redirect record

This function removes a domain's manual Exim mail exchanger (MX) redirect entry. The function also removes the manual MX redirect entry from the /etc/manualmx file.

Note:

To set a domain's manual MX redirection, use the WHM API 1 set_manual_mx_redirects function.

SecurityBasicAuth
Request
query Parameters
domain
required
string

The domain for which to remove a manual MX redirect entry.

Note:

To remove multiple domain entries, increment the parameter. For example, use the domain, domain-1, and domain-2 parameters.

Example: domain=example.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/unset_manual_mx_redirects
Request samples
whmapi1 --output=jsonpretty \
  unset_manual_mx_redirects \
  domain='example.com'
Response samples
application/json
{
  • "data": {
    • "payload": {
      • "example.com": "mailhostexample.com",
      • "example.org": null
      }
    },
  • "metadata": {
    • "command": "unset_manual_mx_redirects",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}