Dev.to Security ๐Ÿ” Cybersecurity ๐Ÿ‘ 0 ๐Ÿ“– 6 min read

How to read DMARC aggregate (rua) reports, field by field

You published a DMARC record with p=none and a rua= address, and now a mailbox fills up with zip files from Google, Microsoft and Yahoo every morning. Each one holds an XML file that looks unreadable at first. It isn't.

You published a DMARC record with p=none and a rua= address, and now a mailbox fills up with zip files from Google, Microsoft and Yahoo every morning. Each one holds an XML file that looks unreadable at first. It isn't. A DMARC aggregate report is a tally: for one day, which IP addresses sent mail claiming to be your domain, how many messages, and whether SPF and DKIM lined up.

Reading these reports is how you get from monitoring to enforcement without blocking your own invoices. Here is what each part means and how to make decisions from it.

What is a DMARC aggregate report?

When your DMARC record contains rua=mailto:[email protected], receivers that support reporting send a summary to that address, usually once a day. The attachment is a .zip or .gz containing one XML file. It holds counts and authentication results, not message content, subjects or recipients. (Forensic or ruf reports are a different thing, and most large providers don't send them.)

Every report has three parts: who sent the report, the policy they saw for your domain, and one or more record blocks with the actual results.

The report header: who reported and for which day

<report_metadata>
  <org_name>google.com</org_name>
  <email>[email protected]</email>
  <report_id>1234567890123456789</report_id>
  <date_range>
    <begin>1794700800</begin>
    <end>1794787199</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>

The dates are Unix timestamps in UTC. policy_published is the record the receiver actually found. Check it against what you think you published. If it shows an old policy days after a change, a DNS cache or a second, conflicting record is the usual cause.

The record block: where the real information is

<record>
  <row>
    <source_ip>198.51.100.24</source_ip>
    <count>412</count>
    <policy_evaluated>
      <disposition>none</disposition>
      <dkim>fail</dkim>
      <spf>fail</spf>
    </policy_evaluated>
  </row>
  <identifiers>
    <header_from>example.com</header_from>
  </identifiers>
  <auth_results>
    <dkim>
      <domain>mailvendor.net</domain>
      <result>pass</result>
    </dkim>
    <spf>
      <domain>bounces.mailvendor.net</domain>
      <result>pass</result>
    </spf>
  </auth_results>
</record>
Field What it tells you
source_ip The server that delivered the mail. Look it up to find out whose it is.
count How many messages from that IP matched this exact combination of results.
policy_evaluated > dkim / spf The DMARC result: did it pass and align with the From domain?
disposition What the receiver did: none, quarantine or reject.
header_from The domain in the visible From address.
auth_results The raw SPF and DKIM checks, with the domain each one was checked against.



## Why does SPF pass but DMARC fail?

This is the question almost everyone hits first, and the example above shows it. Both raw checks passed, yet `policy_evaluated` says fail. The reason is **alignment**. DMARC only counts SPF or DKIM if the domain it passed for matches the From domain. Here SPF passed for `bounces.mailvendor.net` and DKIM signed as `mailvendor.net`, but the From address was `example.com`. Neither aligns, so DMARC fails.

That pattern almost always means a legitimate third-party sender that hasn't been set up for your domain yet: a newsletter tool, a CRM, a billing system. The fix is in that vendor's settings, usually "authenticate your domain" or "custom DKIM", which gives you a CNAME or TXT record to publish. Once DKIM signs as `example.com`, the row turns to pass.

DKIM alignment is the one to aim for. SPF alignment breaks whenever mail is forwarded, because the forwarding server's IP isn't in your SPF record. DKIM signatures usually survive forwarding.

## How do I tell spoofing from my own senders?

Group the rows by source IP and sort by count, then put each IP in one of three buckets:

1. **Yours and passing.** Microsoft 365, Google Workspace and properly configured vendors. Nothing to do.

2. **Yours and failing.** The IP belongs to a service you actually use (reverse DNS and the auth_results domain give it away). Fix its DKIM or SPF before you tighten the policy, or you will block your own mail.

3. **Not yours.** Residential ranges, cheap hosting providers, countries you don't do business in, with no DKIM or a DKIM domain unrelated to you. That is spoofing, and it is exactly what `p=reject` stops.


Two things that look alarming but usually aren't: small counts from mailing lists and forwarders (they modify messages, so DKIM can break), and rows where SPF fails but DKIM aligns. DMARC needs only one of the two to pass, so the second case is fine.

When the "yours and failing" bucket is empty for a few weeks, you are ready to move up. Our [p=none to p=reject rollout guide](https://tools.opsvantage.net/guides/dmarc-none-to-reject/) covers the steps from there.

## Reading the XML without a paid service

A handful of reports a day is manageable by hand. For a quick summary of one file, PowerShell works:



```powershell
[xml]$r = Get-Content .\google.com!example.com!1794700800!1794787199.xml
$r.feedback.record | ForEach-Object {
  [pscustomobject]@{
    IP    = $_.row.source_ip
    Count = [int]$_.row.count
    DKIM  = $_.row.policy_evaluated.dkim
    SPF   = $_.row.policy_evaluated.spf
    From  = $_.identifiers.header_from
  }
} | Sort-Object Count -Descending | Format-Table
```



Use a dedicated mailbox or alias for `rua`, never a person's inbox. A busy domain gets dozens of reports a day. If you send reports to an address on a different domain (for example a reporting service), that domain has to publish an authorisation record such as `example.com._report._dmarc.reportingservice.com` with `v=DMARC1`, or receivers won't send to it.

## FAQ

### Why am I not getting any DMARC reports?

Check that the record has a valid `rua=mailto:` address and that only one DMARC record exists at `_dmarc.yourdomain`. Reports usually take a day or two to start. If the address is on another domain, the authorisation record above is missing more often than not.

### Do DMARC reports contain email content?

No. Aggregate reports hold IPs, counts, domains and pass or fail results only. They don't include subjects, bodies or recipient addresses.

### Why does the same IP appear in several records?

Each record is one combination of results. If some messages from an IP passed DKIM and others didn't, you get two rows. Add the counts together to see the total volume from that sender.

### Does Microsoft send DMARC aggregate reports?

Yes, for mail delivered to its consumer services such as Outlook.com. Google, Yahoo and many other providers send them too, so most domains get reports from several organisations each day.

---

*Originally published at [https://tools.opsvantage.net/guides/read-dmarc-aggregate-reports/](https://tools.opsvantage.net/guides/read-dmarc-aggregate-reports/). The free tools mentioned here run in your browser at [tools.opsvantage.net](https://tools.opsvantage.net/).*
๐Ÿ“ฐ Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.