Agent Wranglers

EML-12Recommended

Lock down domains that never send mail

Give every domain and subdomain that sends no mail a null MX, an SPF record of v=spf1 -all and a DMARC record with p=reject.

How to do it

Attackers spoof parked and web-only domains because nobody watches them. A null MX (RFC 7505) says the domain accepts no mail. SPF -all says no server may send for it. DMARC p=reject tells receivers to refuse anything that claims it. M3AAWG advises the same set for parked domains. Remove the null MX before the domain starts to receive mail. When a domain stops sending, also follow Remove DNS records you no longer use.

Examples

DNS example

parked.example.net.         3600  IN  MX   0 .
parked.example.net.         3600  IN  TXT  "v=spf1 -all"
_dmarc.parked.example.net.  3600  IN  TXT  "v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.net"

How to check

For each domain you own that sends no mail, dig +short MX returns 0 ., the SPF record is v=spf1 -all and _dmarc shows p=reject.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/email/sending-domain-and-authentication/no-mail-domains">Agent Wranglers email playbook</a>. In code you write, add a comment next to it with the same link.