How to set up DMARC (and fix "No DMARC record found")
DMARC is one TXT record at _dmarc.yourdomain that tells inboxes what to do with fakes and sends you reports. Start here v=DMARC1; p=none; rua=mailto:[email protected] Add it as a TXT record with host _dma
DMARC is one TXT record at _dmarc.yourdomain that tells inboxes what to do with fakes and sends you reports.
Start here
v=DMARC1; p=none; rua=mailto:[email protected]
Add it as a TXT record with host _dmarc. p=none blocks nothing; it only turns on reports so you can see who sends as you.
Every DMARC tag
-
Tag v: the version, always
DMARC1, and it must come first. -
Tag p: the policy for your domain:
none(only report),quarantine(spam folder) orreject(refuse). -
Tag sp: the policy for subdomains. Without it, subdomains follow
p. -
Tag np: the policy for subdomains that don't exist at all. Set it to
rejectonce you can. -
Tag rua: where daily summary reports go (
mailto:addresses). An address at another domain needs that domain's permission record. - Tag ruf: where failure samples go. Few providers send them.
-
Tag adkim: DKIM alignment:
r(relaxed, the default) lets a subdomain match;s(strict) needs the exact domain. - Tag aspf: SPF alignment, same idea as adkim.
-
Tag fo: when failure samples are sent:
0(default),1,dors. -
Tag t: test mode. With
t=y, inboxes apply your policy one step softer:rejectis handled asquarantine, andquarantineasnone. Reports still arrive. The default isn. - Tag psd: marks a public suffix domain. Leave it out.
Retired tags. The current DMARC standard (RFC 9989, May 2026) dropped pct, rf and ri, and inboxes ignore tags they don't know. Remove them when you next edit your record; to step up gently, use t=y instead of a low pct.
The safe plan
- Week 1 to 2:
p=none. Read the reports. Make sure every real service passes SPF or DKIM. - Week 3:
p=quarantine. Fakes go to spam. - Week 4 or later:
p=reject. Fakes are refused. To try it first, publishp=reject; t=yfor a week: inboxes handle it as quarantine while you check the reports, then removet=y.
Fix common mistakes
- Only one DMARC record, at
_dmarc, not at the root. -
v=DMARC1must come first. - If reports go to another domain, that domain must allow it (we handle that for [email protected]).
First published on DNSFix. Check your own domain free at dnsfix.com.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.