BLOG // April 19, 2022

Mark a domain as not for sending with DMARC, DKIM and SPF

If you have several domains that are used for side-projects or receive email but do not send mail you may be interested in completely blocking any email from those domains using SPF, DKIM and DMARC.

The following DNS records will indicate that a domain should never send email - it can still be configured to receive mail.

TXT			"v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s"
TXT 	*		"v=DKIM1; p="
TXT					"v=spf1 -all"

In particular, the SPF record lists no sources and the DMARC policy indicates that SPF fails should be rejected.


Subscribe to new articles

If you enjoy my content, consider subscribing. You will only receive new blog stories, no other email.



© 2022 Dave Blakey. All rights reserved.

Development, startup and tech tips from Gatsby to Laravel, Strapi to PHP.