cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Mail → Add manual mail exchanger redirect record

AI-generated

Summary

Add a manual mail exchanger (MX) redirect record for a specified domain, directing emails from that domain to a given MX host (domain or IP address).

Inputs

  • Domain (required) — The domain for which to create the manual MX redirect. To add multiple domains, increment the parameter names accordingly (e.g., domain, domain-1).
  • Mx Host (required) — The target domain or IP address (IPv4 or IPv6) that will receive redirected emails for the specified domain. For multiple MX hosts, parameter names must be incremented similarly.

Output shape

a JSON object representing the response from the WHM API after attempting to add the manual MX redirect record

The output contains the raw WHM API response and includes success or error details. No pagination or additional transformation is applied.

Links

Discussion