DEV Community

DNSFix
DNSFix

Posted on Originally published at dnsfix.com

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:reports@dnsfix.com

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) or reject (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 reject once 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, d or s.
  • Tag t: test mode. With t=y, inboxes apply your policy one step softer: reject is handled as quarantine, and quarantine as none. Reports still arrive. The default is n.
  • 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

  1. Week 1 to 2: p=none. Read the reports. Make sure every real service passes SPF or DKIM.
  2. Week 3: p=quarantine. Fakes go to spam.
  3. Week 4 or later: p=reject. Fakes are refused. To try it first, publish p=reject; t=y for a week: inboxes handle it as quarantine while you check the reports, then remove t=y.

Fix common mistakes

  • Only one DMARC record, at _dmarc, not at the root.
  • v=DMARC1 must come first.
  • If reports go to another domain, that domain must allow it (we handle that for reports@dnsfix.com).

First published on DNSFix. Check your own domain free at dnsfix.com.

Top comments (0)