MX records explained, and what to check when email isn't arriving
How MX priority and fallback work, what Google Workspace and Microsoft 365 records look like, and a step-by-step checklist for missing email, from stale records to null MX.
Published
On this page
The short answer: MX records tell other mail servers where to deliver email for your domain. Each one names a mail server and gives it a priority: senders try the lowest number first and move to the next only if it can't be reached. When email isn't arriving, the cause is usually one of a short list: no MX record, an old MX record left behind after a move, an MX record that points to an IP address or an alias, or a mail server name with no address. Check those first. If your MX records are right and mail is being rejected rather than lost, look at SPF, DMARC and reverse DNS next.
This guide explains how MX records work, then walks through what to check when mail goes missing.
How MX records work
When someone sends a message to you@example.com, their mail server looks up the MX records for example.com. Each record has two parts: a priority number and a host name.
example.com. 3600 MX 10 mx1.mail-provider.example.
example.com. 3600 MX 10 mx2.mail-provider.example.
example.com. 3600 MX 20 backup.another-provider.example.
The rules for using them are set out in RFC 5321, section 5.1:
- Lower numbers come first. The sender tries the servers with priority 10 before the one with priority 20.
- Equal numbers share the load. When two records have the same priority, the sender picks between them at random.
- Higher numbers are fallbacks. They're used only when every server with a lower number can't be reached.
- If nothing answers, the sender waits and retries. Mail is usually queued and retried for several days before it bounces, so a short outage delays mail rather than losing it.
The actual numbers don't matter, only their order. 1 and 5 behave exactly like 10 and 50.

What your provider's MX records look like
Your email provider tells you exactly which MX records to use. Two common examples:
- Google Workspace: one record, priority
1, valuesmtp.google.com, according to Google's MX record values. Domains set up before April 2023 may still have the older set of five records starting withASPMX.L.GOOGLE.COM. They still work. - Microsoft 365: one record pointing to a name made from your domain, such as
example-com.mail.protection.outlook.com. Newer domains, and domains that use DNSSEC for mail, may be given a name ending inmx.microsoftinstead, as described in Microsoft's DNS records reference. Always copy the exact value from the Microsoft 365 admin centre rather than typing it from an example.
Try it now
MX Lookup
Find which mail servers receive email for a domain: MX records in priority order, each host's IPv4 and IPv6 addresses, null MX and common mistakes.
Email not arriving: what to check
Work through these in order. Most problems show up in the first few checks.
1. Is there an MX record at all?
Look up the MX records for the domain, not for www or a subdomain. If there are none, senders fall back to the domain's own A or AAAA record (the "implicit MX" in RFC 5321). That address usually belongs to your web server, which doesn't accept email, so mail is retried for days and then bounces. Add the MX records your provider gives you.
2. Do the MX records point to your current provider?
After a move from one provider to another, the old provider's MX record is often left in place. If it has the same or a lower number than the new one, some or all mail still goes to the old system, where nobody reads it. Google and Microsoft both tell you to remove other MX records once mail is moving to them.
3. Does each MX record name a host, not an address or an alias?
The value of an MX record must be a host name. An IP address such as 10 192.0.2.25 isn't valid, and many senders will ignore it. The host name also must not be a CNAME: RFC 2181 (section 10.3) says it "must not be an alias". Some senders follow the alias anyway, but others don't, so mail arrives from some places and not others. Point the MX record at the real host name instead.
4. Does each MX host have an address?
Each MX host name needs its own A or AAAA record. A typing mistake such as mx1.mail-provder.example, or a host that's been switched off, leaves senders with nowhere to connect. The MX Lookup tool shows the addresses found for every host and flags any that have none.
5. Is mail split between two providers?
MX records for two different providers at the same priority means mail is shared at random between them. People complain that "some emails go missing", because each message lands in one system or the other. Unless you've deliberately set up a split delivery, keep one provider's records only.
6. Is there a null MX by mistake?
A null MX is a single record with priority 0 and a value of a single dot:
example.com. 3600 MX 0 .
It means "this domain never accepts email", as defined in RFC 7505. Senders give up straight away, usually with a 556 reply or the status code 5.1.10. It's the right choice for a domain that's only used for a website, because it stops mail being retried for days. It's wrong for a domain that should receive mail, and it must never sit alongside other MX records.
7. Have you waited for the change to reach everyone?
Other mail servers keep a saved copy of your MX records until the TTL runs out. If the old records had a TTL of a day, some senders can carry on using them for up to a day after you change them. Google says a change can take up to 72 hours to be recognised. Our guide on DNS changes and TTL explains how to plan around this.
When the problem isn't the MX record
MX records control where mail is delivered. They don't decide whether it's accepted. If the MX records are right but mail still isn't arriving, look at these instead:
| Symptom | Likely cause | What to check |
|---|---|---|
| Your messages to others bounce or go to spam | Your sending servers aren't allowed | SPF record, DKIM keys and DMARC policy for your domain |
Bounce mentions 5.7.25 or "reverse DNS" | The sending server has no PTR record | Reverse DNS for the sending IP address |
| Bounce mentions DMARC or "unauthenticated" | The message failed SPF and DKIM, or neither matched the From address | DMARC report and the sending service's set-up |
| Mail arrives, but late | The first server was down, so senders queued and retried | The status of your provider, and whether you have a working fallback |
| One person's mail is missing | A mailbox rule, quarantine or full mailbox | The mailbox itself and your provider's message trace |
The sender's bounce message is the most useful clue. It normally contains a three-digit reply code, a status code such as 5.1.1 (no such mailbox) and a line of text from the receiving server. Ask the sender to forward it to you in full.
Try it now
SPF Checker
Check a domain's SPF record: syntax, the 10 DNS-lookup limit across every include, void lookups, and what the "all" setting means.
Fallback MX records: do you need one?
Years ago, many organisations ran a backup mail server with a higher MX number in case their main server went down. Today, providers such as Google and Microsoft run many servers behind one name, and senders queue mail for days if they can't connect. A separate backup MX is rarely needed.
A badly run backup can cause harm. If it accepts mail for any address, spammers send to it on purpose, because it often filters less. If it can't pass mail on, messages sit there unseen. If you do keep one, make sure it knows your real mailbox names and has the same spam filtering as your main service.
Common questions
What MX priority should I use?
Whatever your provider gives you. If you have more than one record, only the order matters. Give records the same number when you want the load shared, and a higher number for a fallback.
Can I have MX records on a subdomain?
Yes. Mail to you@support.example.com uses the MX records for support.example.com, which can point to a different provider. Remember that a subdomain with a CNAME can't also have MX records.
Does the MX record affect the email I send?
Not directly: sending uses your provider's outgoing servers and your SPF and DKIM records. Some receivers do check that the sender's domain has an MX record, so a domain with none, or with a null MX, may have trouble sending too.
My MX records look right, but one sender's mail bounces. Why?
That sender's mail server may still have your old records saved, or it may be reaching a different server from the one you expect. Check whether any of your MX hosts uses a CNAME, and ask the sender for the full bounce message.
Checklist
- The domain has MX records from your current provider only.
- Every MX value is a host name, not an IP address or a CNAME.
- Every MX host has an A or AAAA record.
- No null MX on a domain that should receive email.
- The TTL was lowered before any planned change, and raised again afterwards.
- SPF, DKIM and DMARC are set up for the mail you send.
Related tools
-
MX Lookup
Find which mail servers receive email for a domain: MX records in priority order, each host's IPv4 and IPv6 addresses, null MX and common mistakes.
-
DNS Lookup
Look up the DNS records for a domain: A, AAAA, CNAME, MX, NS, TXT, SOA and CAA, or the reverse DNS (PTR) name of an IP address.
-
SPF Checker
Check a domain's SPF record: syntax, the 10 DNS-lookup limit across every include, void lookups, and what the "all" setting means.
-
DMARC Checker
Check a domain's DMARC record: the policy that applies, whether it is inherited, alignment, reporting addresses and mistakes, following RFC 9989.
-
Reverse DNS
Find the PTR host name for an IPv4 or IPv6 address, and check that the name points back to the same address (forward-confirmed reverse DNS).
More email guides
-
Email
Moving DMARC from p=none to reject, safely
How to read DMARC reports, fix every real sender and move from monitoring to quarantine and reject in stages, without blocking your own email.
-
Email
How to write an SPF record, with examples for common providers
What each part of an SPF record means, the includes for Google Workspace, Microsoft 365 and other providers, where to publish it and how to stay within 10 lookups.
-
Email
Email health checklist: what to check before you send
The DNS records and other checks that decide whether your email is trusted, from MX, SPF, DKIM and DMARC to reverse DNS, BIMI, MTA-STS and DNSSEC.