<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kazi Golam Arefin</title>
    <description>The latest articles on DEV Community by Kazi Golam Arefin (@kazi_golamarefin_799eb31).</description>
    <link>https://dev.to/kazi_golamarefin_799eb31</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4262415%2Fa62c045f-99c0-46a7-9e4e-923323564f11.jpg</url>
      <title>DEV Community: Kazi Golam Arefin</title>
      <link>https://dev.to/kazi_golamarefin_799eb31</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kazi_golamarefin_799eb31"/>
    <language>en</language>
    <item>
      <title>How to read DMARC aggregate (rua) reports, field by field</title>
      <dc:creator>Kazi Golam Arefin</dc:creator>
      <pubDate>Tue, 24 Nov 2026 10:51:34 +0000</pubDate>
      <link>https://dev.to/kazi_golamarefin_799eb31/how-to-read-dmarc-aggregate-rua-reports-field-by-field-5025</link>
      <guid>https://dev.to/kazi_golamarefin_799eb31/how-to-read-dmarc-aggregate-rua-reports-field-by-field-5025</guid>
      <description>&lt;p&gt;You published a DMARC record with &lt;code&gt;p=none&lt;/code&gt; and a &lt;code&gt;rua=&lt;/code&gt; 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 &lt;strong&gt;DMARC aggregate report&lt;/strong&gt; 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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a DMARC aggregate report?
&lt;/h2&gt;

&lt;p&gt;When your DMARC record contains &lt;code&gt;rua=mailto:dmarc@example.com&lt;/code&gt;, receivers that support reporting send a summary to that address, usually once a day. The attachment is a &lt;code&gt;.zip&lt;/code&gt; or &lt;code&gt;.gz&lt;/code&gt; containing one XML file. It holds counts and authentication results, not message content, subjects or recipients. (Forensic or &lt;code&gt;ruf&lt;/code&gt; reports are a different thing, and most large providers don't send them.)&lt;/p&gt;

&lt;p&gt;Every report has three parts: who sent the report, the policy they saw for your domain, and one or more &lt;code&gt;record&lt;/code&gt; blocks with the actual results.&lt;/p&gt;

&lt;h2&gt;
  
  
  The report header: who reported and for which day
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;report_metadata&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;org_name&amp;gt;&lt;/span&gt;google.com&lt;span class="nt"&gt;&amp;lt;/org_name&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;email&amp;gt;&lt;/span&gt;noreply-dmarc-support@google.com&lt;span class="nt"&gt;&amp;lt;/email&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;report_id&amp;gt;&lt;/span&gt;1234567890123456789&lt;span class="nt"&gt;&amp;lt;/report_id&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;date_range&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;begin&amp;gt;&lt;/span&gt;1794700800&lt;span class="nt"&gt;&amp;lt;/begin&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;end&amp;gt;&lt;/span&gt;1794787199&lt;span class="nt"&gt;&amp;lt;/end&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/date_range&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/report_metadata&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;policy_published&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;domain&amp;gt;&lt;/span&gt;example.com&lt;span class="nt"&gt;&amp;lt;/domain&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;adkim&amp;gt;&lt;/span&gt;r&lt;span class="nt"&gt;&amp;lt;/adkim&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;aspf&amp;gt;&lt;/span&gt;r&lt;span class="nt"&gt;&amp;lt;/aspf&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;none&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;sp&amp;gt;&lt;/span&gt;none&lt;span class="nt"&gt;&amp;lt;/sp&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;pct&amp;gt;&lt;/span&gt;100&lt;span class="nt"&gt;&amp;lt;/pct&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/policy_published&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The dates are Unix timestamps in UTC. &lt;code&gt;policy_published&lt;/code&gt; 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  The record block: where the real information is
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;record&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;row&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;source_ip&amp;gt;&lt;/span&gt;198.51.100.24&lt;span class="nt"&gt;&amp;lt;/source_ip&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;count&amp;gt;&lt;/span&gt;412&lt;span class="nt"&gt;&amp;lt;/count&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;policy_evaluated&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;disposition&amp;gt;&lt;/span&gt;none&lt;span class="nt"&gt;&amp;lt;/disposition&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;dkim&amp;gt;&lt;/span&gt;fail&lt;span class="nt"&gt;&amp;lt;/dkim&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;spf&amp;gt;&lt;/span&gt;fail&lt;span class="nt"&gt;&amp;lt;/spf&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/policy_evaluated&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/row&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;identifiers&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;header_from&amp;gt;&lt;/span&gt;example.com&lt;span class="nt"&gt;&amp;lt;/header_from&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/identifiers&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;auth_results&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;dkim&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;domain&amp;gt;&lt;/span&gt;mailvendor.net&lt;span class="nt"&gt;&amp;lt;/domain&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;result&amp;gt;&lt;/span&gt;pass&lt;span class="nt"&gt;&amp;lt;/result&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/dkim&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;spf&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;domain&amp;gt;&lt;/span&gt;bounces.mailvendor.net&lt;span class="nt"&gt;&amp;lt;/domain&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;result&amp;gt;&lt;/span&gt;pass&lt;span class="nt"&gt;&amp;lt;/result&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/spf&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/auth_results&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/record&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;What it tells you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;source_ip&lt;/td&gt;
&lt;td&gt;The server that delivered the mail. Look it up to find out whose it is.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;count&lt;/td&gt;
&lt;td&gt;How many messages from that IP matched this exact combination of results.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;policy_evaluated &amp;gt; dkim / spf&lt;/td&gt;
&lt;td&gt;The DMARC result: did it pass and align with the From domain?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;disposition&lt;/td&gt;
&lt;td&gt;What the receiver did: none, quarantine or reject.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;header_from&lt;/td&gt;
&lt;td&gt;The domain in the visible From address.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;auth_results&lt;/td&gt;
&lt;td&gt;The raw SPF and DKIM checks, with the domain each one was checked against.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;






&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


## 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/).*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>security</category>
      <category>email</category>
      <category>dmarc</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
