Search code examples
dnsspfdkimdmarc

SPF and DMARC for domain that should not send any emails


I have a domain that is used for some purposes, but not for any incoming or outgoing emails.

How should the DNS be configured to mark that all received emails from this domain are spoofed and should be ignored?


Solution

  • You should add:

    • SPF: TXT record on your main domain with v=spf1 -all
    • DMARC: TXT record on the _dmarc subdomain with v=DMARC1; p=reject (you can also add a reporting address, of course)

    Optionally (if you want to allow others to bounce messages immediately):

    • MX record on your main domain with 0 . (see RFC 7505)