Mail stopped arriving after a DNS change, or half of it goes to the old provider, or a partner says your domain "has no mail server". The record looks right in your DNS panel. It almost always comes down to one of the mistakes below, and each one has a tell you can see from outside in a single lookup.
TL;DR
- Look from outside first:
dig MX yourdomain.com +shortor our MX lookup. What the panel shows and what the internet sees are often different. - The top three: a missing trailing dot that turns
smtp.google.comintosmtp.google.com.yourdomain.com, old records left after a migration, and editing DNS somewhere that isn't the domain's live name server. - Hard rules: an MX target must be a host name with an A or AAAA record, not an IP and not a CNAME (RFC 2181, 10.3; RFC 5321, 5.1). Lower priority numbers win.
The 12 mistakes at a glance
| Mistake | Symptom | Tell in dig MX |
|---|---|---|
| 1. Missing trailing dot | All inbound mail fails or queues | Host ends in your own domain: smtp.google.com.acme.com. |
| 2. Full domain in the Name field | Old or no MX on the domain | Nothing on acme.com; record sits on acme.com.acme.com |
| 3. Record on a subdomain, not @ | Mail for @acme.com unaffected by the change | Record only under mail.acme.com |
| 4. Old records left behind | Some mail lands at the old provider | Two providers' hosts in one answer |
| 5. Null MX mixed with real records | Some senders refuse all mail | 0 . next to other records |
| 6. MX pointing to a CNAME | Some senders fail, others deliver | Host returns a CNAME, not an address |
| 7. MX pointing to an IP address | No sender can deliver | Host looks like 203.0.113.25. |
| 8. Typo in the host name | Mail queues for days, then bounces | Host returns NXDOMAIN |
| 9. Priorities backwards | Mail goes to the backup first | Backup has the lowest number |
| 10. Mail host proxied by Cloudflare | Self-hosted SMTP unreachable | Host resolves to Cloudflare IPs |
| 11. Edited the wrong DNS provider | "I changed it, nothing happened" | Answer never changes; check dig NS |
| 12. SPF not updated | Your outgoing mail fails SPF or DMARC | MX is fine; SPF lacks the new provider |
Typing mistakes in the record itself
1. The missing trailing dot
Symptom: inbound mail stops completely after you add the records. Why: in a zone file, a name that ends in a dot is absolute; one without a dot is relative, and the zone's origin is appended to it (RFC 1035, section 5.1). Write the host without the dot in a BIND-style zone, or in a panel that behaves the same way, and this is what gets published:
; what you meant
acme.com. 3600 IN MX 1 smtp.google.com.
; what you published (no trailing dot)
acme.com. 3600 IN MX 1 smtp.google.com.acme.com.
Fix: add the dot in zone files. Most web panels add it for you and show the host without it, which is fine; the test is what dig returns, not what the panel displays.
2. The full domain in the Name field
Symptom: you added the record but dig MX acme.com shows the old records or nothing. Why: many DNS panels treat the Name (or Host) field as relative to your zone. Typing acme.com there creates the record on acme.com.acme.com. Fix: for the bare domain use @ or leave the field blank, which is what Google and Microsoft both tell you to do. Confirm with dig MX acme.com.acme.com +short: if that returns your record, you've found it.
3. The record on a subdomain instead of the domain
Symptom: mail for [email protected] doesn't change, but mail for [email protected] would. Why: an MX record applies to exactly the name it sits on. A record on mail routes mail for @mail.acme.com addresses. People mix this up with the mail server's own host name, which often is mail.acme.com. Fix: the MX record's name is the part after the @ in the email addresses (@ for the bare domain); its value is the mail server.
8. A typo in the host name
Symptom: senders queue your mail, retry for days and finally bounce it. Why: DNS publishes whatever you type, including aspmx.l.gogle.com. The record exists, the host doesn't. RFC 5321 says that when MX records are present "but none of them are usable", that "MUST be reported as an error", and senders must not fall back to the domain's A record instead. Fix: resolve every MX host yourself: dig +short A host and dig +short AAAA host must return at least one address. Copy values from the provider's console rather than typing them.
Typo'd and dead mail domains are a big source of bounces on the sending side too. In Mail Exchange's checks of 779,784 unique business addresses (17 Oct to 22 Nov 2026, mostly B2B contact lists), 0.9% were on a domain that doesn't receive mail at all. If you send to lists, verifying them first removes those before they cost you reputation: the trial is 25 free checks, and plans start at $49 a month for 10,000 verifications and daily checks on 10 sending domains.
dig returns, not what the panel shows.Records that conflict with each other
4. Old records left behind after a migration
Symptom: most mail arrives at the new provider, but some keeps landing in the old system, or bounces from it once the old account is closed. Why: every MX record is a valid destination. Leave the old provider's records in place and any sender that can't reach the preferred server, briefly, delivers to them. If the old ones share the same priority, senders "MUST randomize" between them (RFC 5321), so roughly half your mail goes to each:
$ dig MX acme.com +short
10 acme-com.mail.protection.outlook.com.
10 mx.old-host.example. ; leftover: gets a share of all mail
Fix: remove the old records. Google says to "remove any other MX records", and Microsoft says to remove them or set them to a lower priority than the Microsoft 365 record (Google, Microsoft, both checked 2026-11-24). See how to change MX records safely.
5. A null MX mixed with real records
Symptom: some senders bounce everything as "domain does not accept mail" while others deliver. Why: MX 0 . is a null MX, the signal that the domain takes no email, and "a domain that advertises a null MX MUST NOT advertise any other MX RR" (RFC 7505, section 3). Parked-domain templates add it, then someone adds real records next to it. Fix: delete the 0 . record once the domain receives mail. More in null MX explained.
9. Priorities backwards
Symptom: mail goes to the backup or filtering server first, or a backup gets all the load. Why: "Lower numbers are more preferred than higher ones" (RFC 5321). Some panels add to the confusion: Microsoft's own instructions say to set priority to "the highest value available, typically 0", meaning highest priority, which is the lowest number. Fix: primary gets the smallest number. Equal numbers only where you want load sharing. Our page on MX priority has worked examples.
Targets that aren't allowed
6. MX pointing to a CNAME
Symptom: mail from most senders arrives, from a few it doesn't. Why: the value of an MX record "must not be an alias" (RFC 2181, section 10.3), and RFC 5321 says a value "that will return a CNAME record when queried, lies outside the scope of this Standard". Many mail servers follow the CNAME anyway; you can't count on all of them. Fix: point the MX directly at the final host name, the one with the A or AAAA record. Details in can an MX record point to a CNAME?
7. MX pointing to an IP address
Symptom: nobody can deliver. Why: the MX value "MUST contain a domain name" (RFC 5321, section 5.1). Some panels accept 203.0.113.25 in the field, and it gets published as a host name made of digits that doesn't resolve. Fix: create mail.acme.com A 203.0.113.25 and use mail.acme.com as the MX value.
10. The mail host proxied through Cloudflare
Symptom: after moving DNS to Cloudflare, your self-hosted mail server stops receiving. Why: the A record for mail.acme.com was imported as proxied (orange cloud), so it resolves to Cloudflare's addresses, and "mail protocols such as SMTP, IMAP, and POP3 do not work through Cloudflare's standard HTTP proxy". Cloudflare adds that the MX record itself is always DNS-only, but "the hostname it points to must also resolve to a DNS-only target" (Cloudflare: email issues, checked 2026-11-24). Fix: set the mail host's A and AAAA records to DNS only. This doesn't affect hosted providers like Google or Microsoft, whose hosts aren't in your zone.
A related one: a mail host that resolves to a private address such as 10.0.0.5 or 192.168.1.10. It's usually an internal record that leaked into public DNS. Nobody on the internet can reach it, and our MX lookup flags it.
Changes that never took effect
11. Editing DNS at the wrong provider
Symptom: you've changed the records three times and dig shows the same answer every time, long after any TTL. Why: the domain's name servers point somewhere else. The registrar's DNS panel still works and still saves records, but nobody asks it. Fix: run dig NS acme.com +short and edit the zone at whoever those servers belong to. Then ask one of them directly: dig @ns1.example-dns.net MX acme.com +norec. If that shows your change, the rest is just caching (how to check MX records).
If the authoritative server shows the change and resolvers don't yet, that's caching, not a mistake: see TTL and propagation.
Mistakes next to the MX record
12. SPF not updated for the new provider
Symptom: inbound mail works, but your messages now land in spam or fail DMARC at the recipients. Why: MX only controls where you receive. Sending through a new provider means its servers must be in your SPF record, and the old provider's should come out once it stops sending. The common slip is adding a second SPF record instead of editing the existing one: with more than one, SPF returns "permerror" (RFC 7208, section 4.5). Fix: one record, with every sender:
; wrong: two SPF records
acme.com. TXT "v=spf1 include:_spf.google.com ~all"
acme.com. TXT "v=spf1 include:spf.protection.outlook.com -all"
; right: one record
acme.com. TXT "v=spf1 include:_spf.google.com include:spf.protection.outlook.com ~all"
Check it with the authentication checker, which also counts the 10-lookup limit (what is SPF?). Then set up DKIM at the new provider (what is DKIM?).
Common questions
Why is my MX record not working?
Look it up from outside with dig MX yourdomain.com +short or an online MX lookup. The usual causes are a host name with the zone appended because the trailing dot was missing, a record created on the wrong name, an old record still in place, a typo in the host, or editing DNS at a provider that isn't the domain's active name server.
Can an MX record point to an IP address?
No. The value of an MX record must be a host name, and that host name must have an A or AAAA record. To use a server by IP, create an A record such as mail.example.com pointing to the IP and put mail.example.com in the MX record.
Can an MX record point to a CNAME?
It shouldn't. RFC 2181 says the value of an MX record must not be an alias, and RFC 5321 puts an MX that resolves to a CNAME outside the standard. Many senders follow the CNAME anyway, but some don't, so point the MX at the final host name.
Is a higher or lower MX priority number preferred?
Lower. A sender tries the record with the smallest number first, so 1 beats 10. A backup server should therefore have a higher number than the primary. Records with the same number share the load at random.
Should I delete my old MX records after switching providers?
Yes, in almost every case. Google says to remove other MX records, and Microsoft says to remove them or give them a lower priority than the Microsoft 365 record. Any record left in place still receives mail from senders that can't reach the preferred server.