Sub topic 7
DMARC: publishing a policy and reading reports
This chapter assumes you can read DNS TXT records and raw email headers, and that SPF and DKIM are already set up for your sending domain. It builds on the alignment chapter.
What DMARC adds
DMARC (Domain-based Message Authentication, Reporting and Conformance) is a DNS-published policy that does three things:
- It requires that SPF or DKIM pass and align with the visible From domain.
- It tells receivers what to do with mail that fails: nothing, quarantine, or reject.
- It asks receivers to send you reports about mail claiming to be from your domain.
DMARC passes when at least one of SPF or DKIM passes with an aligned domain. You do not need both.
Gmail, Yahoo, and Microsoft all require bulk senders to publish at least a DMARC record. A policy of p=none meets the baseline.
Publish a starting record
DMARC lives in a TXT record at _dmarc. plus your domain. Start in monitoring mode.
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:[email protected]"| Tag | Meaning |
|---|---|
| `v=DMARC1` | Version. It must come first. |
| `p=` | Policy for failing mail: `none`, `quarantine`, or `reject`. |
| `rua=` | Where receivers send aggregate reports. |
| `pct=` | Optional. Percentage of failing mail the policy applies to. |
| `sp=` | Optional. Policy for subdomains. |
Check that it is published:
dig +short TXT _dmarc.example.comRead the result in a message
A receiver records its DMARC verdict in the Authentication-Results header.
Authentication-Results: mx.example.net;
spf=pass smtp.mailfrom=bounce.example.com;
dkim=pass header.d=example.com header.s=mail1;
dmarc=pass (p=NONE) header.from=example.comHere SPF passes, but for bounce.example.com, which differs from the From domain, so SPF is not aligned. DKIM passes with header.d=example.com, which matches the From domain. DMARC therefore passes through DKIM alignment.
Aggregate reports
Receivers send aggregate reports (the rua data) as compressed XML attachments, usually once a day. Each report lists the source IP addresses that sent mail using your domain, how many messages each sent, and the SPF, DKIM, and DMARC results. Reports contain no message content.
Reading them tells you:
- Which of your own services send mail but fail alignment, such as a forgotten CRM or ticketing tool.
- Which unknown sources are spoofing your domain.
- When it is safe to move to a stricter policy.
Raw XML is tedious at volume. Many teams route reports to a DMARC reporting service or parse them with a script.
A staged rollout
Moving to quarantine or reject is optional for the bulk sender rules, but it protects your domain from spoofing. Move slowly, because a stricter policy applied while a legitimate sender still fails will block your own mail. Using pct lets you apply the policy to a fraction of failing mail first.
Common errors
- Publishing more than one DMARC record on
_dmarc. Receivers may ignore all of them. - Putting the record on the wrong name, such as
dmarc.example.comwithout the leading underscore. - Forgetting that third-party senders must sign with your domain, or use a bounce domain you control, to align.
- Jumping to
p=rejectbefore reading any reports.
Exercise
A message shows spf=pass smtp.mailfrom=bounce.vendor.net, dkim=pass header.d=example.com, and header.from=example.com. Does DMARC pass, and why?
Show answer
Yes. SPF passes but is not aligned, because bounce.vendor.net does not match example.com. DKIM passes and its signing domain, example.com, matches the From domain. DMARC needs only one aligned pass, so it passes through DKIM.
Exercise
You publish p=none with an rua address and, a week later, receive no reports. Name two things to check.
Show answer
Check that the record is a single TXT record at _dmarc.yourdomain with correct syntax, and that the rua mailbox exists and can receive attachments. If the rua address is on another domain, check that the domain authorizes receiving your reports. Also allow a few days, since some receivers send reports only once a day.