RFC 7505: A Null MX No Service Resource Record for Domains That Accept No Mail

Defines the Null MX (0 .) record that explicitly signals a domain accepts no incoming mail, preventing delivery loops.

Alaa Touil
Email infrastructure specialist, 8+ years in SMTP and deliverability
8 min read Updated Nov 3, 2026 254 views
RFC 7505 A Null MX No Service Resource Record for Domains That Accept No Mail - SMTPedia reference
RFC 7505
A Null MX No Service Resource Record for Domains That Accept No Mail

Current standard

Domain
SMTP
Published
June 2015
Supersedes
First in series
SMTP relevance
high

↗ Read on rfc-editor.org

What this RFC defines

RFC 7505 defines the Null MX record, a DNS resource record that explicitly signals that a domain does not accept incoming email. Before this RFC, domains without mail service either had no MX record (which some servers tried to deliver to the A record as a fallback) or a dummy MX record, both of which caused unnecessary delivery attempts and bounce loops.

Where you see it in practice

If your company uses yourdomain.com for web only and a different domain for email, adding a Null MX record (0 .) to yourdomain.com prevents mail servers from attempting delivery and generating backscatter bounces when they inevitably fail. When you try to send email to an address at a domain with a Null MX, a properly configured MTA will immediately reject the delivery attempt rather than retrying for days.

The Null MX concept

RFC 7505 defined the Null MX record for domains that accept no email. Published in June 2015, the standard specifies that a domain can publish an MX record pointing to “.” (a single dot, indicating no valid host) to declare that it does not accept mail. A submission or relay server that refuses a recipient because of a null MX SHOULD answer with reply code 556 (domain does not accept mail, defined in RFC 7504) and enhanced status code 5.1.10 (Recipient address has null MX). The sender learns at once that the address will never work, instead of hours or days later.

Why null MX helps

Before RFC 7505, domains that did not want to receive email had two options: omit the MX record entirely (in which case receivers would fall back to the A record and try to deliver, producing timeouts) or point the MX to a dummy host that would reject all mail (which required maintenance and produced ambiguous error messages). Null MX is unambiguous: the domain has explicitly declared no-email-here. It also protects the domain from being used as the return-path for spam campaigns, since bounces cannot be delivered.

The two status codes RFC 7505 defines

SituationReply codeEnhanced status codeMeaning
You send to a domain with null MX5565.1.10Recipient address has null MX: the domain accepts no mail
You send from a domain with null MX (MAIL FROM or From)5505.7.27Sender address has null MX: the receiver refuses mail it could never reply to

The second row is the trap: a null MX also tells receivers that the domain cannot get replies or bounces, so mail sent from it is likely to be rejected.

Quick Reference

RFC 7505 (June 2015) defines the Null MX record: a DNS convention for domains that do not receive email. Format: example.com. IN MX 0 . (target is a bare dot). Sending MTAs recognize this and fail with 556 5.1.10 instead of retrying; mail sent from a null MX domain can be refused with 550 5.7.27. Reduces useless bounce processing, decreases attack surface (no mail server means no mail-related exploits), and provides clear signal that a domain is intentionally mail-less. Widely supported; recommended for any domain not intended to receive mail.

RFC 7505 at a glance

AspectDetail
PurposeSignal that a domain does not accept email
DNS recordexample.com. IN MX 0 .
Reply codes556 5.1.10 for a recipient at a null MX domain; 550 5.7.27 for a sender from a null MX domain
Sender actionReject the send with permanent failure; do not retry
RuleA domain with null MX MUST NOT publish any other MX record
PublishedJune 2015

Null MX vs alternatives

ApproachSemanticsSender behavior
Null MX (RFC 7505)Definitive: this domain does not accept mailImmediate 5.1.10 reject, no retry
No MX record, A record presentFall back to A record per RFC 5321 (implicit MX)Attempt SMTP to A record IP; often accepted or ambiguously rejected
MX pointing to invalid hostConfiguration errorTemporary failure retries for days; wasted resources
MX pointing to blackholeAccepts and discardsSilent data loss; sender does not know

Null MX DNS configuration

Adding Null MX to DNS
Zone file format:
example.com. IN MX 0 .

The critical elements:
– Preference 0 (RFC 7505 specifies 0)
– No other MX record at the same name
– Target is a single dot (the DNS root, semantically “nowhere”)

At a DNS provider UI (Cloudflare, Route 53, etc.):
Type: MX
Name: @ (or the domain)
Priority: 0
Target: . (single dot)

Some UIs reject the bare dot; workarounds:
– Enter . directly
– Enter empty (some UIs accept)
– Use Terraform/API for direct DNS records

Verification:
dig example.com MX
; Should return:
; example.com. 3600 IN MX 0 .

Effect at SMTP time:
Sender’s MTA looks up MX for example.com; sees Null MX.
Sender immediately fails the send with 556 5.1.10:
Recipient address has null MX

Companion record for a domain that sends no mail (SPF, RFC 7208):
example.com. IN TXT “v=spf1 -all”

When to use Null MX

ScenarioWhy Null MX helps
Domain used only for HTTPS (marketing site, static content)Signal that mail attempts should not be retried; reduces backscatter
Legacy domain that once had mail but no longer doesPrevents spurious mail delivery attempts to expired addresses
Test domain not intended for production mailDefinitive rejection, and receivers can refuse mail forged from it (5.7.27)
Vanity subdomain (blog.example.com) with mail served from parentExplicit Null MX on the subdomain prevents accidental delivery attempts
Anti-phishing hardening for a critical brand domainComplements DMARC p=reject; makes fake mail delivery even more difficult

Common Null MX mistakes

Emitting Null MX on a domain that still needs to receive mail. Null MX means “no mail here.” If any address at the domain should still receive (support@, admin@, DMARC reports at dmarc@), Null MX blocks them. Verify no mail-sending or mail-receiving flows depend on the domain before setting Null MX.
Not implementing on subdomains that need it. The parent domain’s Null MX does not automatically apply to subdomains. Each subdomain has its own MX lookup path. Configure Null MX on each subdomain that should not receive mail (or configure explicit MX records if they should).
Using a hostname target instead of the dot. The target must be a single dot (the root). Some administrators try MX 0 nullmx.example.com or similar; this creates a valid MX pointing at nullmx.example.com and mail is delivered there. Only MX 0 . is Null MX.
Missing 5.1.10 handling in sender code. Older MTAs may not recognize null MX and treat the dot as an unresolvable host, retrying until the message expires. Check that your MTA version handles null MX and logs 5.1.10 distinctly, so bounce processing can suppress the address right away.
Assuming DMARC replaces Null MX. They serve different purposes. DMARC (RFC 7489) is about outbound protection (preventing spoofed From). Null MX is about inbound signaling (do not attempt delivery). Both together provide layered protection for a domain that does not send or receive mail.
SMTP-side standards

  • RFC 5321: SMTP (defines MX record processing)
  • RFC 5248: Enhanced status codes registry (5.1.10 and 5.7.27 registered here)
  • RFC 7504: SMTP 521 and 556 reply codes
  • RFC 3464: DSN (bounce format)
Authentication complements

  • RFC 7208: SPF (paired for domains that do send)
  • RFC 7489: DMARC (paired for full domain protection)
SMTPedia companion guides

Frequently asked questions

Should every non-mail domain use Null MX?

Recommended for domains that will not receive mail. Benefits: reduces backscatter (retries of mail that will never succeed), clarifies intent to sender infrastructure, reduces attack surface (no phantom mail servers to test). Costs: nothing except a small DNS record. Verify no mail flow depends on the domain before setting.

What is the difference between Null MX and no MX record?

No MX: sender falls back to the A record per RFC 5321 implicit MX rules; may attempt delivery to the A record’s IP address. Null MX: sender sees definitive “no mail here” signal; immediate permanent failure with 5.1.10. Null MX is unambiguous; no MX is fallback behavior that varies by sender implementation.

Does Null MX affect DMARC reporting?

Yes. If your DMARC record specifies rua=mailto:dmarc@example.com and example.com has Null MX, the DMARC reports cannot be delivered. Either set the DMARC report addresses to a domain that accepts mail, or ensure the reporting-address domain does not have Null MX. Common pattern: use a separate reporting subdomain with real MX (dmarc-reports.example.com) while marketing/apex domain has Null MX.

How do I test my Null MX configuration?

DNS lookup: dig example.com MX should return example.com. IN MX 0 . (target is a dot). Send-test: send a test message to any@example.com; expect an immediate 556 5.1.10 rejection (or a bounce citing it) from your sending MTA. Third-party checkers: various DNS analysis tools recognize Null MX and confirm.

Can I use Null MX on a domain that only sends mail?

No, avoid it. RFC 7505 section 4.2 says mail systems SHOULD NOT publish a null MX for domains they use in the MAIL FROM or From address, because receivers reject mail whose return address cannot receive replies or bounces (550 5.7.27, Sender address has null MX). A domain that sends but should not receive human replies still needs a working MX for bounces; route it to a mailbox or bounce processor instead. Null MX is meant for domains that neither send nor receive, paired with v=spf1 -all.

Did this guide save you time?

SMTPedia is free and independent. A coffee helps keep every guide accurate.

Buy SMTPedia a coffee

See SMTPedia first on Google

Add us as a preferred source in Top Stories.

Add as preferred source

About the Author

Alaa - SMTPedia author

Alaa ยท LinkedIn

Email infrastructure specialist with 8+ years of hands-on experience in SMTP, deliverability, and email verification. Iโ€™ve configured and troubleshot mail systems across Postfix, Exchange, and cloud relays, managed IP reputation and warmup campaigns, and built verification pipelines processing millions of addresses. My work spans DNS authentication (SPF, DKIM, DMARC, BIMI), bounce handling, blocklist monitoring, and compliance frameworks including CAN-SPAM and GDPR. I write every article on SMTPedia to give email professionals, developers, and marketers the accurate, RFC-grounded reference they need.


About SMTPedia

SMTPedia is an independent email industry reference covering SMTP, IMAP, POP3, email deliverability, marketing platforms, DNS authentication, and email verification. Every article is researched from official provider documentation, IETF RFCs, and industry best practices. Settings and configurations are verified quarterly.

We are cited as a source by ChatGPT, Microsoft Copilot, and thousands of email professionals worldwide. Learn more about our editorial process.