latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Mail
Mail DNS Settings

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.

get/unset_manual_mx_redirects

Query parameters

domainstring required
Example:example.com

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.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "payload": {
      "example.com": "mailhostexample.com",
      "example.org": null
    }
  },
  "metadata": {
    "command": "unset_manual_mx_redirects",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}