What is an MX record?
An MX (mail exchanger) record tells the rest of the internet which servers accept email for a domain. When someone sends a message to [email protected], their mail server looks up the MX records of example.com and delivers to the server with the lowest preference number, trying the others if it can't connect.
example.com. 3600 MX 10 mx1.example.com.
example.com. 3600 MX 20 mx2.example.com.
Each MX record has a preference (lower is tried first; equal values share the load) and a hostname, which must have its own A or AAAA record.
How to read the results
- Mail servers: each MX host, its preference, the IP addresses it resolves to and the record's TTL. Select an IP address to check it against blacklists.
- Redundancy: more than one MX host, or one hostname with several addresses, means mail still arrives when a server is down. Big providers such as Microsoft 365 and Google use a single hostname backed by many servers.
- Does not resolve: an MX host with no A or AAAA record can't receive mail, so senders skip it, or bounce the message if it's the only one.
- IP address instead of a hostname: not allowed. MX records must name a host, and many senders reject a bare IP.
- CNAME target: MX hosts shouldn't be aliases (RFC 2181). Most senders cope, but some don't.
- Null MX: a single record of
0 .means the domain deliberately accepts no email (RFC 7505).
Common MX records by provider
| Provider | MX records |
|---|---|
| Microsoft 365 | 0 example-com.mail.protection.outlook.com (or one ending in mx.microsoft with DNSSEC turned on) |
| Google Workspace | 1 smtp.google.com (older setups use several aspmx records, still supported) |
| Zoho Mail | mx, mx2 and mx3 at priorities 10, 20 and 50; the domain ending depends on your Zoho data center |
| Cloudflare Email Routing | route1, route2 and route3.mx.cloudflare.net |
Use the exact values from your provider's admin console: some, like Microsoft 365, are specific to your domain.
Common MX problems
No MX records
Without MX records, senders fall back to the domain's A record and try to deliver to the web server, which usually fails. If the domain should receive mail, add the MX records from your provider; if it shouldn't, publish a null MX.
Old records left after switching provider
After moving to a new mail provider, delete the old MX records. Otherwise some mail keeps going to the old system, often silently.
Changes don't seem to take effect
Senders cache MX records for their TTL. Lower the TTL a day before switching, then check the change has reached resolvers worldwide with the DNS propagation checker.
Frequently asked questions
What does the MX priority number mean?
It's the preference: senders try the lowest number first and move to higher numbers only if it can't be reached. Records with the same number are used in random order to spread the load.
Do I need a backup MX?
Usually not. Sending servers keep retrying for several days, and hosted providers already run many servers behind one name. A badly configured backup MX is a common source of spam.
Can an MX record point to a CNAME?
It shouldn't. The standards require an MX hostname to have its own A or AAAA record. Point the MX at the real hostname instead.