ZeroHook
ProductSolutionsBlogToolsPricingCompanyContact sales
Run a free scan
  • Product
  • Solutions
  • Blog
  • Tools
  • Pricing
  • Company
  • Contact sales
Sign inRun a free scan
ZeroHook

DNS and email security auditing, without the enterprise contract.

ZeroHook on Product Hunt — Let's stop spoofed email and ship audit proof today.Review ZeroHook on Product Hunt

Explore

  • Product
  • Solutions
  • Blog
  • Tools
  • Pricing

Resources

  • Help center

Company

  • About
  • Contact
  • Contact sales

Legal

  • Privacy
  • Terms
  • Cookies
  • Legal notice

New DNS advisories, monthly

What broke, who it hit, and the record that fixes it.

© 2026 ZeroHook. All rights reserved.

Back to blog
Infrastructure

What Is an MX Record?

MX records tell the internet which servers accept mail for your domain. Wrong priority or a missing host means silence, not a bounce warning.

ZeroHook
ZeroHook Team
Security Analysts
Oct 4, 2026~4 min read
What Is an MX Record?
A SaaS founder moved DNS to a new registrar on Friday afternoon; SPF and DKIM looked fine on Monday while MX still pointed at a mail cluster that had been switched off.

What an MX Record Does (and What It Does Not)

MX is inbound routing only

When someone mails [email protected], their server looks up MX for example.com, sorts by priority, and tries SMTP delivery to those hosts. The From: header you see in the inbox and the SPF record you publish for outbound mail do not participate in that lookup. Fix SPF for deliverability, ignore MX, and inbound mail still breaks.

Not the same as SPF, DKIM, or DMARC

SPF says who may send as your domain. DKIM signs messages. DMARC sets policy on the From: header. MX only answers where inbound SMTP should land. Google Workspace and Microsoft 365 both want MX targets like aspmx.l.google.com or example-com.mail.protection.outlook.com. You still need those rows when outbound auth already passes.

Warning

A domain with no MX can still receive mail on some networks when an apex A record exists (RFC 5321 fallback). Do not plan on it. Major providers expect explicit MX. Stale MX after a cutover is the mistake we see most often on migration tickets.

Priority Numbers: Lower Wins First

Each MX row carries a priority from 0 to 65535. Lower numbers win. Senders try the lowest first; if that host is down, they walk up the list.

PriorityHostRole
10aspmx.l.google.comPrimary Google Workspace
20alt1.aspmx.l.google.comFailover
30alt2.aspmx.l.google.comFailover

Pro tip

Two rows at the same priority load-balance. Uncommon on SMB domains, normal on big hosted farms.

Warning

MX hostnames must resolve (A or AAAA). Point at a typo and delivery fails quietly once TTL expires, sometimes hours after you thought the change was done.
“SPF is outbound permission. MX is where inbound mail gets delivered. Different jobs.”

Three Ways to Check MX Records

1

From any terminal, query MX for your domain.

dig +short MX example.com
2

Each result line is priority hostname. Match every hostname to your provider's current doc (Google, Microsoft, Zoho, Proton, etc.). One stray hostname usually means a record left behind from an old hoster.

3

Want SPF and DKIM in the same view? Run the free check at zerohook.org/dns-health-check before an audit or client handover.

4

In Cloudflare, GoDaddy, Route 53, or wherever you edit DNS: MX rows must match the provider template. Delete legacy MX from a previous ESP. Two active providers on the same apex zone can split inbound mail in ways nobody intended.

5

Send a test from a personal Gmail to your domain. Wrong MX often shows up as delayed bounces or 550 text about mail loops or unknown hosts. On a delivered message, open headers and note which MX host accepted the connection.

Common MX mistakes we see in scans

  • MX still on GoDaddy forwarding after a move to Google Workspace
  • One MX row when the provider documents four (no failover)
  • MX hostname set to the bare domain instead of the provider mail server name
  • Old marketing-subdomain MX left on the apex zone

Pro tip

After you change MX, wait out TTL (often 300 to 3600 seconds) before you call it done. Resolvers keep using the old target until TTL expires.

Frequently Asked Questions

Key takeaways

1

MX lists which servers accept inbound SMTP for your domain; it does not authenticate outbound mail.

2

Lower priority numbers go first; keep every failover row your provider documents.

3

Check with dig, your DNS panel, and an external test message before you close a migration.

4

Stale MX after a provider change is why "nothing hits the inbox" while DNS "looks fine."

5

Plot MX with SPF, DKIM, and DMARC on one diagram so handovers do not miss a layer.

Run MX next to SPF and DMARC on zerohook.org/dns-health-check before the next DNS change leaves inbound mail aimed at a dead host.

Share this analysis

Help others discover this content

Fix DNS before the next audit
Provider-specific copy-paste fixes for Cloudflare, Route53, GoDaddy, and more.
Start free scan

More from our blog

Gmail Spam Filter 2026: 35 Mail Failures
Infrastructure

Gmail Spam Filter 2026: 35 Mail Failures

Gmail and Microsoft spam-folder legitimate mail for authentication, DNS, reputation, and list-hygiene reasons most admins never audit. All 35 failure modes and fixes in one guide.

Fix Gmail 550 5.7.26 Auth Errors
Infrastructure

Fix Gmail 550 5.7.26 Auth Errors

The 550 5.7.26 authentication required bounce means Gmail rejected your message before inbox placement. Fix SPF, DKIM, DMARC alignment, and envelope-from settings for M365 and Google Workspace.

SPF Passes but Mail Lands in Spam
Infrastructure

SPF Passes but Mail Lands in Spam

When SPF passes but mail lands in spam, DMARC alignment, missing DKIM, or envelope-from mismatch is the usual cause. Diagnosis and fix steps for Gmail, M365, and ESP relay sends.