MX Record Not Working? How to Fix Broken or Misrouted MX Records

An MX record failure is a DNS mail-routing misconfiguration where inbound SMTP servers cannot locate, resolve, or deliver messages to a domain's designated mail exchange host. Sending Mail Transfer Agents (MTAs) bounce incoming messages with 550 or 451 errors or deliver mail to a stale server when MX records point to a CNAME alias, an unresolvable hostname, or a lower-priority legacy host. The diagnosis of a non-working MX record verifies target A and AAAA resolution, priority number ordering, local mail exchanger routing, and global propagation.

Why Is Your MX Record Not Working? (7 Ranked Causes)

The table below ranks the 7 causes by how often they appear in real inbound-mail failures, with the exact test and fix for each:

SymptomLikely CauseTestFix
550 "no MX record for domain" bounceMX records deleted or never publishedRun the MX triage widget below: an empty MX row confirms itPublish the provider's MX set, or a deliberate Null MX (0 .) if the domain receives no mail
Mail lands on the old server after a migrationShadowed priority: a legacy Priority 0 or 5 record outranks the new providerRead the priority order column in the widget (RFC 5321 section 5.1: lowest integer wins)Delete the legacy MX rows so only the provider's set remains
451 / 550 "host not found" on one hopMX target has no A or AAAA record (hostname removed or typo'd)The widget's target-resolution column flags unresolvable hostsAdd the missing A/AAAA record for the mail host, or correct the MX target name
Website contact forms vanish; external mail reaches GooglecPanel/Plesk Local Mail Exchanger hairpin: local sends never follow public MXCheck Email Routing mode in cPanel against the public MX setSwitch the domain from Local to Remote Mail Exchanger
Bounces addressed to user@mail.example.comMX published on the wrong Host field (mail instead of @), leaving the apex unroutedThe widget shows which name actually carries the MX setMove the MX records to the @ (root) entry and delete the misplaced ones
Every sender bounces even though an A record existsNull MX accident: a 0 . record (RFC 7505) explicitly declares the domain non-receivingThe widget flags a Null MX row instantlyDelete the Null MX record or replace it with the real mail-exchange set
Some senders deliver, others failStale propagation or a mixed-provider MX set (both old and new servers listed)3-resolver comparison plus the provider-mixing flag in the widgetWait out the TTL with one consistent set published; remove mixed rows

Rows 2 and 4 are the silent ones: both look like a provider problem while the DNS and the web host each hold half of the fault.

Test Your Domain's MX Records, Priority Order, and Target IPs Live

DNS-level mail routing has 3 layers that must all agree: the MX set itself, the resolution of every target hostname to an IP, and the consistency of both across resolvers. The widget below walks all 3 layers live over DNS-over-HTTPS and flags the failure patterns this page owns:

100% Free · No Sign Up MX + Target Resolution Audit Flags CNAME · Null MX · Mixed Providers
DNS-over-HTTPS
Try instantly:

Flags: an MX target resolving through a CNAME violates RFC 2181 section 10.3; a target with no A/AAAA record bounces every hop that reaches it; a 0 . row is a deliberate Null MX (RFC 7505); targets spread across unrelated domains mean a mixed provider set.

For the record-by-record view across more resolvers, open the MX record lookup; for SMTP-level reachability of each resolved host (port 25, STARTTLS, certificates), run the SMTP preflight; and when the widget shows resolvers disagreeing on the MX set, the DNS propagation checker maps the stale caches.

How Do You Fix an MX Record Pointing to the Wrong Server? (Shadow Priorities & Local Delivery)

"Pointing at the wrong server" is never one bug: it takes 3 distinct forms, and each hides in a different place. The ordered fix list below covers all 3 scenarios in the order they usually surface:

  1. Shadowed priority numbers. RFC 5321 section 5.1 sends MTAs to the lowest MX preference integer first, so a leftover Priority 0 or Priority 5 record (the old cPanel or Exchange host) silently outranks a freshly added Google Workspace set at Priority 1, 5, 10 - or Microsoft 365's Priority 0. Open the DNS zone, sort every MX row by priority, and delete every row that does not belong to the active provider; the widget's priority column shows exactly which row is winning.
  2. The cPanel/Plesk Local Mail Exchanger hairpin. Even with perfect public MX records pointing at Google Workspace or Microsoft 365, a web server on the same domain treats its own name as local: contact forms and PHP mail() deliveries go to the server's own empty cPanel mailbox and never traverse the public MX set at all. In cPanel, open Email Routing for the domain and switch it from Local Mail Exchanger to Remote Mail Exchanger; in Plesk, the equivalent lives under Mail Settings. Test with a contact form immediately after the switch.
  3. The wrong Host field (mail vs @). MX records answering "which server receives mail for example.com" must live on the apex entry (@). Entering mail in the Host/Name column publishes the set on mail.example.com, so addresses like user@example.com route by the apex's old records (or nothing at all) while user@mail.example.com routes to the new host. Move the records to @, delete the misplaced set, and confirm with the widget that the apex now answers.

Fix the layers in this order and re-run the widget between each step: a priority fix without deleting the old rows, or a Host-field fix without switching the exchanger mode, leaves half the failure in place.

How Do You Diagnose Broken MX Records From the Command Line? (dig and nslookup)

# The MX set with priorities:
dig example.com MX +noall +answer

# Does each target actually resolve to an address (and not through a CNAME)?
dig mail.example.com A CNAME +short

# Windows PowerShell equivalent:
nslookup -type=mx example.com

When the records check out and the failure turns out to be a publish-order problem instead, the how to add MX records guide walks the zone edit per provider; when the MX breakage arrived with a nameserver migration, the email stopped working after a DNS change guide covers the full recovery; if inbound mail works while Outlook or Thunderbird still prompts for passwords, run the Autodiscover checker to inspect client discovery records; and when mail delivers but lands in spam, the routing is fine and the why emails go to spam guide takes over.

Frequently Asked Questions

Why is my MX lookup empty?+

Either no MX record exists at the name you checked, or the records were removed, and senders then fall back to the A record, which usually fails delivery. Publish the MX set from your mail provider, or a Null MX (0 .) deliberately if the domain receives no email.

Can MX point to a CNAME?+

No, RFC 2181 section 10.3 prohibits MX targets that point at CNAME aliases, and some MTAs reject or misroute such mail. Point every MX record at a hostname with a direct A or AAAA record.

How do I test mail delivery after fixing MX?+

Send a message from an external account and read the delivery headers end to end, or run an SMTP-level check that walks the MX priorities and tests STARTTLS on each hop. The 3-resolver check above must also show consistent MX answers before the test means anything.

Why does mail go to my old server after adding Google Workspace or Microsoft 365?+

A leftover lower-numbered MX record shadows the new provider: RFC 5321 section 5.1 makes MTAs prefer the lowest integer, so a Priority 0 legacy record wins over Google’s Priority 1. Delete the old MX rows, then verify the priority ordering in the triage widget above.

Does cPanel deliver my contact form email locally even with Google MX?+

Yes, when Email Routing is set to Local Mail Exchanger, cPanel routes domain-internal mail (contact forms, PHP mail) to its own local mailboxes instead of following the public MX records to Google or Microsoft. Switch the domain to Remote Mail Exchanger so local sends traverse the real MX set.

Last verified: 2026-11-28