All posts

How to Read a DMARC Aggregate Report

··3 min read

A DMARC aggregate report is one mail provider's daily summary of every message that claimed your domain, grouped by sending IP. To read it, check each row's source IP and message count, then whether DKIM and SPF passed and aligned with your domain. Rows from your own services that fail are what you fix first.

The reports arrive as compressed XML attachments to the address in your rua= tag, often several a day once Google, Microsoft, Yahoo and others start sending. Nobody reads them raw for long. But knowing what each part means makes any summary tool far more useful.

The anatomy of a report

The format is defined in RFC 7489, Appendix C. A trimmed example, with documentation IP addresses:

<feedback>
  <report_metadata>
    <org_name>receiver.example</org_name>
    <report_id>1234567890</report_id>
    <date_range><begin>1764460800</begin><end>1764547199</end></date_range>
  </report_metadata>
  <policy_published>
    <domain>example.com</domain>
    <adkim>r</adkim><aspf>r</aspf>
    <p>none</p><sp>none</sp><pct>100</pct>
  </policy_published>
  <record>
    <row>
      <source_ip>198.51.100.7</source_ip>
      <count>412</count>
      <policy_evaluated>
        <disposition>none</disposition>
        <dkim>pass</dkim><spf>fail</spf>
      </policy_evaluated>
    </row>
    <identifiers><header_from>example.com</header_from></identifiers>
    <auth_results>
      <dkim><domain>example.com</domain><selector>s1</selector><result>pass</result></dkim>
      <spf><domain>bounce.esp-example.net</domain><result>pass</result></spf>
    </auth_results>
  </record>
</feedback>

Section by section:

  • report_metadata. Who sent the report and the period it covers. The dates are Unix timestamps in UTC.
  • policy_published. Your DMARC record as the receiver saw it. If this does not match what you think you published, you have a DNS problem.
  • row. One sending IP, how many messages came from it, what the receiver did (disposition) and the DMARC-level DKIM and SPF verdicts, which already account for alignment.
  • identifiers. The From domain those messages used.
  • auth_results. The raw SPF and DKIM results and the domains they were evaluated for, before alignment.

Reading a row

The example row is worth working through. Under auth_results, SPF passed, but for bounce.esp-example.net, the platform's envelope domain. That does not align with example.com, so under policy_evaluated SPF shows fail. DKIM passed for example.com with selector s1, which does align, so DKIM shows pass. One aligned pass is enough: these 412 messages passed DMARC.

That distinction between raw results and aligned results is the one that confuses most people. Read policy_evaluated for the verdict and auth_results for the reason.

Sorting rows into groups

Go through the sending IPs and put each one in a bucket. The DMARC report analyzer does the parsing and groups results by IP, which saves most of the effort.

Group How to recognise it What to do
Your services, passing Known provider IPs, aligned DKIM or SPF pass Nothing
Your services, failing Known provider, DKIM signed with their domain or missing, SPF unaligned Set up custom DKIM or a custom return-path
Forwarded mail SPF fails, aligned DKIM passes, IP belongs to a forwarder or mailing list Usually nothing
Unknown sources IPs you cannot tie to any service you use Investigate; possible spoofing

To identify an IP, a reverse DNS lookup usually names the hosting company or provider. If it resolves to a platform you have never signed up for, ask around before assuming abuse: a colleague's tool is a more common answer than an attacker.

What to fix, in order

  1. Your own failing senders. For each, enable DKIM with your domain in that platform's settings, and use the DKIM selector finder to confirm the key is published. Watch the next week of reports to confirm the rows turn to pass.
  2. Mismatched published policy. If policy_published shows something unexpected, check for duplicate or malformed DMARC records.
  3. Unknown sources sending real volume. Once your own mail passes, these are what a stricter policy will stop.

When you are ready to tighten

When almost every message from your own services passes DMARC across a few weeks of reports, you can move to p=quarantine and then p=reject. Our guide to moving DMARC from none to reject covers the steps and how to use pct= to stage the change.

Keep an eye on the other side, too

DMARC reports tell you whether receivers trust that mail is yours. They say nothing about whether the addresses you mail exist, and bounces to dead mailboxes hurt the same domain you just secured.

Sign in with Google and your first 100 email checks are free, no card; plans for bigger lists are on the pricing page.

Common questions

What is a DMARC aggregate report?

An XML file that a receiving mail provider sends to the address in your DMARC record's rua= tag. It summarises, per sending IP, how many messages claimed your domain and whether they passed SPF, DKIM and DMARC. RFC 7489 sets a default reporting interval of 86,400 seconds, so most arrive daily.

Why does a row show DKIM pass but DMARC fail?

Look at the domain in auth_results. DKIM can pass for the sending platform's own domain, which does not match your From domain. DMARC needs an aligned pass, so a valid signature from the wrong domain still counts as a failure.

Why does SPF fail for mail I know I sent?

Usually because the message was forwarded, so it reached the receiver from the forwarder's IP, or because the sending service uses its own envelope domain. If DKIM passes aligned on those rows, DMARC still passes and there is nothing to fix.

Do DMARC reports contain the emails themselves?

No. Aggregate reports contain IP addresses, counts, domains and authentication results. Failure (ruf) reports can include message details, but many large providers do not send them.

How do I open a .xml.gz or .zip DMARC report?

Unzip it to get the XML, then open it in a text editor or drop the file into a DMARC report analyzer, which parses it into a table. Ours runs in your browser and does not upload the file.

Check your list before you send

Real mailbox checks over SMTP, and nothing is sent to the address. Sign in with Google and your first 100 email checks are free, no card. Plans for bigger lists are on the pricing page.

5.0 on G2