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.

Authorizations:
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

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  unset_manual_mx_redirects \
  domain='example.com'

Response samples

Content type
application/json
{
  • "data": {
    • "payload": {
      • "example.com": "mailhostexample.com",
      • "example.org": null
      }
    },
  • "metadata": {
    • "command": "unset_manual_mx_redirects",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}