What does an RFC 7505 null MX record tell sending MTAs about a parked domain that must accept no mail, and how do they react?
answer
- a single record, an empty exchange
- preference 0 and a dot
- stops the implicit MX fallback
- fail on the first attempt
- 556 with 5.1.10, 550 with 5.7.27
basics
~20 sA null MX is a single MX record with preference 0 and exchange ".", declaring that the domain accepts no mail. Senders fail such recipients at once, with reply 556 and status 5.1.10 per RFC 7505, instead of queuing and retrying.
solid answer
~50 sRFC 7505 (June 2015) defines the null MX as **one** MX record with preference 0 and the exchange `.`, and a domain that publishes it MUST NOT publish any other MX. Because an MX record now exists, senders never treat the domain's `A` or `AAAA` record as an implicit MX, so a parked domain can keep its web address without attracting delivery attempts. A submission or relay server that refuses a recipient for this reason SHOULD answer `556` (from RFC 7504, "domain does not accept mail") with enhanced code `5.1.10`. A message already queued fails on the first attempt instead of being retried for days. Receivers may also refuse mail whose `MAIL FROM` or `From` domain has a null MX, with `550` and `5.7.27`, so the RFC says not to publish one on a domain you still send from.
code
dns · 3 lines; retired domain: no mail accepted, website kept
example.net. 3600 IN MX 0 .
example.net. 3600 IN A 203.0.113.80go deeper
Recall the shape: one MX record, preference 0, exchange a single dot. It means the domain accepts no mail, and senders give up at once instead of retrying.
Explain why deleting MX records is not enough: the implicit MX sends mail to the A record. Then give the codes: 556 with 5.1.10 for recipients, 550 with 5.7.27 for sender domains.
Before publishing, prove the domain sends nothing. Receivers may refuse mail from a null-MX sender domain, so a forgotten application using it as the envelope sender starts failing.
Make a null MX, a no-send SPF policy and a reject DMARC policy the standard state for every parked or retired domain, and own the inventory that keeps it true.
## The problem a null MX solves SMTP has no way to say "this domain takes no mail" unless the domain says it explicitly. Under RFC 5321 §5.1, a domain with no MX records is treated as its own **implicit MX**, so senders connect to its `A` or `AAAA` address. For a parked domain, a retired brand or a website-only name, that address is usually a web server with nothing listening on port 25. Every message, whether a typo, a forged return address or an old contact, is then retried. RFC 7505 says a sending MTA typically keeps trying for about a week before it gives up. The sender learns late, and both sides spend resources on it. RFC 7505 (Standards Track, June 2015) defines the **No Service MX**, informally the **null MX**. It makes every delivery attempt to the domain fail immediately, and the domain does not need to run a dummy SMTP listener to achieve that. ## The record and its rules ```dns ; a retired domain that keeps its web address and accepts no mail example.net. 3600 IN MX 0 . example.net. 3600 IN A 203.0.113.80 ``` - The domain publishes a **single** MX record with **preference 0** and a **zero-length exchange**, written `.` in zone files. - `.` is not a valid host name, so a null MX **cannot be confused** with an ordinary MX record. - A domain with a null MX **MUST NOT publish any other MX record**. A null MX beside a backup exchange is a misconfiguration, not a fallback. - The `A` record can stay. MX records now exist, so RFC 5321 forbids using the domain's own address records for mail, and the web address is never tried. Within DNS a null MX is an ordinary MX record. It brings no new security issues and can be signed like any other record. ## What senders and receivers do with it | Who sees the null MX | Situation | Reply and enhanced code (RFC 7505) | |---|---|---| | Submission or relay server | A recipient address is in a null-MX domain | `556` + `5.1.10` (SHOULD) | | Receiving server | The `MAIL FROM` or `From` domain has a null MX | `550` + `5.7.27` (SHOULD) | | Contrast: a dummy SMTP server | A host that never accepts mail, answering at connection time | `521` (RFC 7504) | The `556` code was created by RFC 7504 for this purpose, with the text "Domain does not accept mail". The client treats it like any other permanent negative reply. For a message already sitting in a queue, the effect is the same: the first attempt fails permanently and a bounce goes back at once, with no days of retries. The `521` code is a different tool. It is the greeting of a host that never accepts mail, and it only works if you keep a listener running to send it. Postfix shows the receiving side. Its `reject_unknown_recipient_domain` restriction, used when Postfix is not the final destination, answers `556` for a null MX (Postfix 3.0 and later). Its `reject_unknown_sender_domain` answers `550` for a sender domain with a null MX. ## Retiring a parked domain A null MX is the last step of a short checklist, not the first: 1. **Confirm the domain sends nothing.** Search outbound logs and application settings for the domain in envelope senders and `From` addresses. RFC 7505 says systems SHOULD NOT publish a null MX for domains used in `MAIL FROM` or `From`, because receivers may refuse that mail. 2. **Remove the existing MX records**, then publish the single null MX record. 3. **Declare that it sends no mail** with the sender-policy records (an SPF `-all` policy, as RFC 7505 itself suggests, and a DMARC policy). Those records are covered with SPF and DMARC. 4. **Keep the web records** if the name still serves a redirect. The null MX keeps mail away from them. 5. **Watch for fallout.** Bounces with `5.1.10` from your own relays show internal systems still addressing the old domain. ## What a null MX is not - It is **not a null reverse-path**. `MAIL FROM:<>` on a bounce is unchanged by RFC 7505. - It is **not a temporary measure**. Senders treat it as permanent and bounce, so do not use it while you migrate a domain that should receive mail again soon. - It **does not stop anyone forging the domain**. It tells receivers the domain cannot receive replies, and many receivers reject a sender address that cannot receive them. Explicit refusal of forged mail comes from the sender-authentication policies. The syntax of an ordinary MX record and how preference orders several exchanges are covered with DNS record types. What a null MX changes is the sender's routing decision.
- How does a 556 reply differ from a 521 reply for a domain that takes no mail?`556` (RFC 7504) is returned by a submission or relay server that learned from DNS, through a null MX, that the recipient domain accepts no mail. It never opens a connection to that domain. `521` is the greeting a host sends at connection time when it never accepts mail, so it needs a listener running. The null MX makes that listener unnecessary.
- A team proposes a null MX on a domain used only as the bounce address of a newsletter. What do you tell them?Don't. RFC 7505 says domains used in `MAIL FROM` or `From` SHOULD NOT publish a null MX, because receivers may refuse such mail with `550` and `5.7.27`. A bounce domain must receive bounces anyway, so it needs a working MX.
- A null MX means pointing the MX record at localhost or 127.0.0.1.
- Deleting every MX record is enough to stop mail to a domain.
- A null MX can sit beside a backup MX record for safety.
- Senders keep retrying a null-MX domain like any unreachable host.
- A null MX is fine on a domain you still send newsletters from.