Back to blog
Authentication··3 min read·WillItInbox Team

MX records explained: priority, examples, lookup, and fixes

Learn what MX records do, how priority and fallback work, which DNS mistakes break inbound mail, and how to verify MX routing safely.

MXDNSMail Routing

MX (Mail Exchanger) records are the most consequential 50 bytes of DNS most people never check. They tell every sending server in the world where to deliver mail addressed to your domain — and a single typo can route weeks of important messages into a black hole. Use domain monitoring or deliverability testing when MX, SPF, DKIM, DMARC, or reply routing must be verified together.

Anatomy of an MX record

DNS record
HostTypeValueTTL
example.comMX1 smtp.google.com3600
Typical Google Workspace MX layout.

The 1 is the priority. Lower numbers win. Google Workspace has consolidated to a single MX, but historical setups often have 5-10 records with priorities like 10, 20, 30 etc. Sending servers try the lowest first, then fall back if it's unreachable.

Multi-MX with priority

DNS records
HostTypeValueTTL
example.comMX0 example-com.mail.protection.outlook.com3600
example.comMX10 backup-mx.example.com3600
Microsoft 365 with backup MX (legacy pattern).

Common mistakes

MistakeLikely impactFix
MX points to a CNAMESome senders reject or fail lookupPoint MX directly at a hostname with A/AAAA
MX points to an IP addressInvalid MX targetCreate a named host and point MX to it
Old backup MX still liveSpam or intermittent delivery through stale hostRemove it unless it is fully maintained
No MX on a sending domainSome filters treat the domain as suspiciousPublish a real MX or explicit null MX
MX mistakes and the practical fix.
  1. MX pointing to a CNAME. RFC violation. Most receivers handle it but some throw 5xx. Always point MX to an A/AAAA record.
  2. MX pointing to an IP. Same problem — must be a hostname.
  3. Same priority on every record. Allowed, but means random selection. Use distinct priorities unless you genuinely want round-robin.
  4. TTL too long. 86400 (1 day) means a typo takes a day to roll back. 3600 is friendlier.
  5. Missing trailing dot. In some DNS interfaces, smtp.google.com without a trailing dot becomes smtp.google.com.example.com. Disaster.

Verifying your MX

For a browser-based check, use the free MX lookup. It shows the currently published exchanges and priorities without SMTP mailbox probing or retaining the submitted domain.

Quick check from the command linebash
# dig
dig +short MX example.com

# host
host -t MX example.com

# nslookup
nslookup -type=mx example.com

Frequently asked questions

Last updated May 24, 2026.

Sources reviewed

Factual review: June 13, 2026 by WillItInbox Editorial.

Keep reading