How to read a DMARC report (with an example)
A DMARC aggregate report is an XML file (usually gzipped) that a mailbox provider emails to the rua address in your DMARC record, normally once a day. Each record is one sending IP with a message count, the DMARC verdict (policy_evaluated) and the raw SPF and DKIM results (auth_results). Read it by asking, for every source IP: is this a service I use, and does it pass in alignment?
- Publish a rua address Add rua=mailto:[email protected] to your DMARC record, ideally a mailbox used only for reports.
- Open a report Unzip the .xml.gz attachment and pretty-print the XML.
- Go record by record For each source_ip, note the count, the aligned results in policy_evaluated and the domains in auth_results.
- Name every source Match IPs and DKIM domains to services you use; anything aligned-fail from a known service needs DKIM on your domain.
- Tighten the policy When only recognised, aligned sources remain, move from p=none to quarantine and then reject.
What a DMARC report is
There are two kinds. Aggregate reports (requested with rua=) are counts, not messages: which IPs sent mail with your domain in the From header, how many, and how they authenticated. RFC 9990 says they come daily or more often, and the period typically covers one UTC day. Failure reports (ruf=) describe individual failing messages; RFC 9991 notes that many large providers limit or disable them for privacy reasons, so most of what you receive will be aggregate.
To get reports, add rua to your DMARC record. If the address is on a different domain from the one publishing the record, that domain has to agree by publishing a record of its own, or receivers will not send:
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:[email protected]"
; reports sent to another domain need its consent, published there:
example.com._report._dmarc.reports.example.net. TXT "v=DMARC1;"Reports arrive as email attachments named receiver!policy-domain!begin!end.xml.gz, with a subject such as Report Domain: example.com Submitter: mail.receiver.example.
A DMARC report example
A one-day report from one receiver for example.com, in the RFC 9990 format. Reports built to the older RFC 7489 layout have no namespace and may include a pct element, but the fields you need are the same.
<feedback xmlns="urn:ietf:params:xml:ns:dmarc-2.0">
<version>1.0</version>
<report_metadata>
<org_name>mail.receiver.example</org_name>
<email>[email protected]</email>
<report_id>8f3c2a1e9b7d</report_id>
<date_range>
<begin>1795478400</begin>
<end>1795564799</end>
</date_range>
</report_metadata>
<policy_published>
<domain>example.com</domain>
<p>none</p>
<sp>none</sp>
<adkim>r</adkim>
<aspf>r</aspf>
</policy_published>
<record>
<row>
<source_ip>192.0.2.25</source_ip>
<count>1840</count>
<policy_evaluated>
<disposition>none</disposition>
<dkim>pass</dkim>
<spf>pass</spf>
</policy_evaluated>
</row>
<identifiers>
<header_from>example.com</header_from>
<envelope_from>pm-bounces.example.com</envelope_from>
</identifiers>
<auth_results>
<dkim>
<domain>example.com</domain>
<selector>20230601123456pm</selector>
<result>pass</result>
</dkim>
<spf>
<domain>pm-bounces.example.com</domain>
<result>pass</result>
</spf>
</auth_results>
</record>
<record>
<row>
<source_ip>198.51.100.7</source_ip>
<count>212</count>
<policy_evaluated>
<disposition>none</disposition>
<dkim>fail</dkim>
<spf>fail</spf>
</policy_evaluated>
</row>
<identifiers>
<header_from>example.com</header_from>
<envelope_from>bounce.billing.example.net</envelope_from>
</identifiers>
<auth_results>
<dkim>
<domain>billing.example.net</domain>
<selector>k1</selector>
<result>pass</result>
</dkim>
<spf>
<domain>bounce.billing.example.net</domain>
<result>pass</result>
</spf>
</auth_results>
</record>
</feedback>How to read it, field by field
| Element | What it tells you |
|---|---|
org_name, date_range | Who sent the report and the period, in seconds since 1970 (UTC). 1795478400 is 24 November 2026, 00:00 UTC. |
policy_published | The DMARC record the receiver saw. Check it matches what you think you published. |
source_ip, count | One sending IP and how many messages it sent in the period. |
policy_evaluated | The DMARC view: dkim and spf here are aligned results, and disposition is what the receiver did (none, quarantine, reject, or in RFC 9990 pass). |
identifiers | header_from is your From domain; envelope_from is the Return-Path domain SPF checked. |
auth_results | The raw results, before alignment: the DKIM d= domain and selector, and the SPF domain. |
reason | Only when the receiver overrode your policy: local_policy, mailing_list, trusted_forwarder, policy_test_mode or other. |
The key comparison is auth_results against policy_evaluated. In the second record, DKIM and SPF both pass in auth_results, but for billing.example.net, so the aligned results are fail. That is a billing tool sending as you without your DKIM: the classic DMARC fail with SPF and DKIM passing.
What to look for
| Pattern | Usually means | Action |
|---|---|---|
| Your provider's IPs, both aligned results pass | Set up correctly | None |
| Known service, raw pass, aligned fail | Third party signing with its own domain | Set up DKIM for your domain in that service |
| Your provider, DKIM aligned pass, SPF aligned fail | No custom Return-Path | Optional: add a custom Return-Path |
| Unknown IPs, everything fails | Spoofing, or a forgotten system | Identify it before you tighten the policy |
| DKIM pass, SPF fail, varied IPs | Forwarding | Nothing; aligned DKIM covers it |
Once a few weeks of reports show only aligned passes from sources you recognise, move to p=quarantine and then p=reject.
Viewing reports for free
Use a dedicated mailbox for rua: busy domains get many reports a day. For a handful, unzip and pretty-print them:
gunzip -k 'mail.receiver.example!example.com!1795478400!1795564799.xml.gz'
xmllint --format 'mail.receiver.example!example.com!1795478400!1795564799.xml' | lessBeyond that, a DMARC report analyser (hosted or open source) parses the XML and groups sources for you. Reports contain sending IPs, counts and domains, not message content, but treat failure reports as sensitive: they can include headers and parts of messages.
Questions
What is a DMARC report?
An XML summary a mailbox provider sends to the rua address in your DMARC record, listing every IP that sent mail as your domain with counts and SPF, DKIM and DMARC results.
Why does my DMARC report show DKIM fail when the email passed?
policy_evaluated shows aligned results. DKIM can pass for another domain in auth_results and still count as fail for DMARC because that domain is not aligned with your From address.
How often are DMARC reports sent?
RFC 9990 describes daily or more frequent reports, typically covering one UTC day. Each receiver sends its own.
Do I need ruf failure reports?
Usually not. Many large providers limit or disable them for privacy reasons, and aggregate reports are enough to find failing sources.
Related
- Why DMARC fails, even when SPF or DKIM passesDMARC fails when no SPF or DKIM pass is aligned with the From domain. A pass on your provider's domain doesn't count. The causes and fixes.
- SPF, DKIM and DMARC explained, with a working setupSign with DKIM on your domain, align SPF via a custom Return-Path, start DMARC at p=none. The records for Postmark, Mailgun, SendGrid and Resend.
- DKIM fail: what it means and how to fix each causedkim=fail means a signature did not verify: the body changed, signed headers changed, or the key is missing from DNS. Find the reason and fix it.
- SPF fail, softfail and neutral: what they meanSPF fail: the sending IP isn't in the Return-Path domain's SPF record and it ends in -all. Softfail (~all) is weaker, neutral (?all) says nothing.
- Custom Return-Path domain: why and how to set it upA custom Return-Path puts bounces on your own subdomain so SPF aligns for DMARC. On Postmark: CNAME pm-bounces.example.com to pm.mtasv.net, then verify.