Skip to content
Mail servers and blacklists

Fix missing or broken MX records

What happens to email when a domain has no MX records, how to add Microsoft 365 or Google Workspace MX, and when to publish a null MX instead.

By the Domain Health Hub team · Updated

In short
  • MX records tell other mail servers where to deliver email for the domain.
  • With none, senders try the domain's own address (usually the web server), and email typically fails.
  • Add your provider's MX records, or, for a domain that never receives email, a null MX.

What this means

When someone emails an address at the domain, their server looks up its MX records to find where to deliver. We found one of three problems:

No MX
The domain has no MX records at all.
Unresolvable MX
An MX record names a host that has no IP address, often a typo or an old provider's server name.
Null MX
The domain says it accepts no email (priority 0, host "."). That's fine if intended.

Why it matters

Under the email standard (RFC 5321, section 5.1), a sender that finds no MX records falls back to the domain's own A record, which is usually the web server. That server rarely accepts email, so messages are delayed for days and then bounce. An MX pointing at a name with no address fails the same way, and the sender only finds out when the bounce arrives.

How to confirm it

From a terminal, dig example.com MX lists the records. Then look up each host name: dig mail.example.com A should return an address.

How to fix it

Add the MX records your email provider gives you, in the DNS provider that holds the domain's records, and delete any left over from a previous provider.

Microsoft 365

In the Microsoft 365 admin centre, go to Settings > Domains, pick the domain and open its DNS records. Copy the MX record exactly as shown; it's specific to the domain.

Google Workspace

Google's current set-up is a single MX record:

example.com MX
1  smtp.google.com

Older set-ups with five records (aspmx.l.google.com and the alt servers) still work.

Cloudflare DNS

In DNS > Records, add a record of type MX, name @, with the provider's mail server and priority. MX records are never proxied.

Domains that never receive email

For parked domains and ones that only exist for a website, publish a null MX (RFC 7505). Senders then refuse straight away instead of retrying for days. Pair it with records that stop anyone sending as the domain:

example.com
MX      0 .
TXT     v=spf1 -all
_dmarc  TXT  v=DMARC1; p=reject

See adding SPF and adding DMARC for more on those two.

Questions

Can an MX record point at an IP address?

No. An MX record must name a host, and that host needs its own A or AAAA record. It also shouldn't be a CNAME (RFC 2181 says MX targets must not be aliases), though some providers tolerate it.

Does a null MX stop the domain sending email?

No, it only says the domain accepts none. To stop anyone sending as it, also publish SPF v=spf1 -all and a DMARC record with p=reject.

Hear about it the day it breaks.

Daily checks on every client domain, alerts when something changes, and a monthly report card your clients will understand.

Start 28-day free trial