MX records and Null MX: how a domain says where mail goes
How MX records route email, what happens when a domain has none, what a Null MX record (RFC 7505) means, and how to check a domain's mail setup yourself.
3 min read
Before a single message reaches a mailbox, the sending server has to find out which server receives mail for the recipient’s domain. That answer lives in DNS, in MX records. Understanding them explains several verification results, from “domain does not exist” to “this domain accepts no mail”.
What an MX record looks like
An MX (mail exchanger) record has a preference number and a host name:
example.com. 3600 IN MX 10 mx1.example.com.
example.com. 3600 IN MX 20 mx2.example.com.
Senders try the lowest preference first (mx1) and fall back to the next one if it is unreachable. Many organizations point their MX records at a hosted mail provider, which is why you will often see host names belonging to large email platforms.
Each MX host must itself resolve to an IP address through A (IPv4) or AAAA (IPv6) records. An MX record that points to a host name that no longer exists is a dead end: the domain appears to have a mail route, but mail cannot be delivered.
When there is no MX record
If a domain has no MX records, RFC 5321 tells senders to use the domain’s own A or AAAA record as an implicit mail server. This fallback is legitimate but uncommon; most domains that receive mail publish MX records.
If the domain has neither MX nor address records, there is no route for mail at all, and every address at that domain is undeliverable.
Null MX: “this domain accepts no mail”
Many domains are used only for websites or are parked and never receive email. Without any statement, senders may waste time trying their A records. RFC 7505 defines a clear signal:
example.com. 3600 IN MX 0 .
A single MX record with preference 0 pointing to . is a Null MX. It means the domain explicitly accepts no email. Senders should not attempt delivery, and RFC 7505 recommends rejecting such recipients with the code 556 5.1.10. For a verifier this is conclusive: every address at that domain is undeliverable.
You can see a real Null MX on example.com, the domain reserved for documentation, which publishes exactly this record.
How to check a domain yourself
On macOS or Linux, dig shows the records:
dig +short MX example.org
dig +short A mx1.example.org
On Windows, nslookup -type=mx example.org does the same. Look for:
- No answer and an NXDOMAIN status: the domain does not exist.
0 .: a Null MX; the domain accepts no mail.- One or more host names: check that each host resolves to an address.
- No MX but an A record: the implicit MX fallback applies.
What this means for verification
DNS checks are the fastest way to remove addresses that cannot work:
| DNS finding | Verification result |
|---|---|
| Domain does not exist | Undeliverable (low) |
| Null MX | Undeliverable (low) |
| No MX, A or AAAA record | Undeliverable (low) |
| Every MX host is missing | Undeliverable (low) |
| Working mail route | Continue to the mailbox check |
| DNS timeout or SERVFAIL | Retry; report uncertain if it persists |
A working mail route says the domain can receive mail; it does not say a particular mailbox exists. That needs the next step, a conversation with the mail server, described in how email verification works.
BounceRill reports these cases with stable reason codes such as domain_not_found, null_mx, no_mail_route and mail_route_not_found. See the full list of reason codes.
Verify your list with BounceRill
Three honest answers for every address, with the reason and the date of the evidence. Request access to the pilot.
Related guides
Catch-all email domains: what they are and how to handle them
A catch-all domain accepts mail for any address, so verification cannot confirm the mailbox. Learn how to detect accept-all domains and what to do with them.
Disposable and role-based email addresses explained
What disposable and role-based addresses (info@, sales@) are, how to detect them, and why they should be flagged for review rather than treated as invalid.
Hard bounce vs soft bounce: the difference and what to do
Hard bounces are permanent, soft bounces are temporary. Learn to read SMTP bounce codes, which bounces to suppress, which to retry and how to prevent them.