Adding MX records for an email provider in cPanel

MX records tell other mail systems where to deliver messages for a domain. Use the exact mail-server hostnames and priorities supplied by the chosen email provider, and change them at the domain’s authoritative DNS service.

Check access and requirements

Create and test destination mailboxes before cutover. Export the existing MX set and review SPF, DKIM, DMARC and local email-routing settings. An MX change does not migrate historical messages or automatically configure website SMTP.

01 Add MX records for an email provider in cPanel

  1. Open Zone Editor > Manage for the domain and inspect its current MX records.
  2. Add each required MX record with the provider’s destination hostname and priority. Lower numeric priority is preferred when multiple MX destinations exist.
  3. Enter hostnames rather than IP addresses, URLs or mailbox addresses. Confirm the record applies to the intended domain name.
  4. Remove obsolete MX entries only as part of the planned cutover. Do not leave an unrelated old provider as a supposed backup unless both services are deliberately configured for that arrangement.
  5. Configure cPanel Email Routing appropriately for local or remote delivery, then verify public MX answers and send external test messages in both directions.

Confirm the expected result

New mail should reach the intended provider, including messages generated by applications on the hosting server. Check recipient inboxes and actual delivery headers.

Why does local website mail use the wrong destination after an MX change?

If external mail works but local website mail goes elsewhere, review Email Routing. If some senders still use the old destination, account for DNS caching and keep migration access available. Correct authentication records separately; MX records alone do not authorise outgoing mail.

Sources and further reading

  • 0 Users Found This Useful
  • cpanel-whm, domains-dns
Was this answer helpful?

Related Articles

Adding an IPv4 A record in cPanel Zone Editor

An A record maps a hostname to an IPv4 address. Edit it in cPanel only when the domain’s...

Adding a CNAME record in cPanel

A CNAME makes one hostname an alias of another hostname. It is useful for services that supply...

Editing or deleting a DNS record in cPanel Zone Editor

Use Zone Editor to change a specific DNS record or remove one that is no longer needed. Work on...

Changing or removing a cPanel CNAME alias

Update a CNAME when a custom-domain integration moves to a new canonical hostname, or remove it...

Changing or removing MX records during an email migration

Editing the MX set changes where new incoming mail is routed. A reliable migration coordinates...