← RFC Reference

RFC 7505: Null MX — No Service for Domain

Standards Track DNS & Mail Routing Published June 2015
ELI5: Some houses don’t have mailboxes because they don’t want to receive mail. Before Null MX, the mail carrier would still walk up to the door, knock, wait, get no answer, and walk back — wasting time for everyone. Null MX is a sign on the lawn that says “No mailbox here. Don’t bother.” The carrier sees the sign and moves on immediately.

Why This Exists

Not every domain receives email. A domain used purely for a website, an API, a CDN, or a brand-protection registration has no need for inbound mail. But before RFC 7505, there was no clean way to declare "this domain does not accept email" in DNS.

Without an explicit signal, sending servers encountering mail addressed to a no-mail domain would:

RFC 7505 introduces the Null MX record: a single MX entry with preference 0 and a target of . (the root domain). This tells any sending server: "This domain does not have a mail service. Don't try."

How It Works

The Null MX Record

; Null MX — declares that no-mail.example.com does not accept email no-mail.example.com. IN MX 0 .

The record has two defining characteristics:

Sender Behavior

When a sending server looks up the MX records for a recipient domain and finds a Null MX:

  1. It recognizes the . target as a Null MX.
  2. It immediately generates a permanent failure (5.1.0 — "Other address status") without attempting any SMTP connection.
  3. The sender returns a bounce to the original sender (or discards the message if it was a bounce itself).
# What a sending server does when it encounters Null MX: # 1. DNS lookup dig MX no-mail.example.com no-mail.example.com. IN MX 0 . # 2. Immediate rejection — no SMTP connection attempted # DSN generated with status code 5.1.0: 550 5.1.0 <user@no-mail.example.com>: Domain does not accept mail

Contrast: Without Null MX

Without a Null MX, here's what happens when mail is sent to a domain with no MX records:

# DNS lookup — no MX records found dig MX web-only.example.com (no answer) # RFC 5321 fallback: try the A record dig A web-only.example.com web-only.example.com. IN A 93.184.216.34 # Attempt SMTP connection to the web server telnet 93.184.216.34 25 (connection refused or timeout after 30+ seconds) # Queue for retry, try again in 15 minutes, 1 hour, 4 hours... # Eventually give up after 1-5 days and bounce

Key Technical Details

Rules for Null MX

Combined with SPF and DMARC

For domains that don't send or receive email, Null MX should be part of a complete no-email DNS configuration:

; Complete "no email" DNS configuration for a domain ; 1. Null MX — reject inbound mail immediately no-mail.example.com. IN MX 0 . ; 2. SPF — no servers are authorized to send no-mail.example.com. IN TXT "v=spf1 -all" ; 3. DMARC — reject anything claiming to be from this domain _dmarc.no-mail.example.com. IN TXT "v=DMARC1; p=reject; sp=reject; rua=mailto:dmarc@example.com" ; 4. Empty DKIM key (optional, signals no signing) *._domainkey.no-mail.example.com. IN TXT "v=DKIM1; p="

This combination provides comprehensive protection: Null MX stops inbound delivery attempts, SPF -all tells receivers to reject spoofed outbound mail, and DMARC p=reject enforces the policy with reporting.

SMTP Response Codes

Status Code Meaning
5.1.0 550 Other address status — domain does not accept mail (Null MX)
5.1.2 550 Bad destination system address — alternative code some implementations use
5.1.10 550 Recipient address has null MX (defined in RFC 7505 specifically)

Impact on SMTP VRFY and EXPN

If a server is asked to verify or expand an address at a Null MX domain, it should return a permanent failure. There are no valid recipient addresses at a domain that doesn't accept mail.

Common Mistakes

Deliverability Impact

Related RFCs