What does an RFC 9990 DMARC aggregate report contain, and how does it reach the domain owner's rua address?
answer
- one file per policy domain
- metadata, published policy, records
- row: source_ip, count, policy_evaluated
- aligned verdict versus raw auth_results
- gzip attachment with a fixed filename
basics
~20 sAn RFC 9990 aggregate report is XML, usually gzip-compressed and mailed daily to the rua address: report metadata, the policy the receiver saw, and per source IP a message count, the disposition, aligned DKIM and SPF verdicts and the raw results.
solid answer
~40 sThe root `feedback` element holds `report_metadata` (the reporter's `org_name` and contact `email`, a unique `report_id`, and a `date_range` in epoch seconds, typically one UTC day), then `policy_published` (`domain`, `p`, and the `sp`, `np`, `adkim`, `aspf`, `fo`, `testing` and `discovery_method` values in force), then one or more `record` elements. Each `record` has a `row` with `source_ip`, `count` and `policy_evaluated` - the `disposition` plus `dkim` and `spf` as DMARC **alignment** verdicts - followed by `identifiers` (`header_from`, optionally `envelope_from`) and `auth_results`, the raw DKIM results with `domain`, `selector` and `result` and the SPF result for the MAIL FROM domain. The XML SHOULD be gzip-compressed, attached as `application/gzip` under a name like `receiver!policy-domain!begin!end.xml.gz`, and the report message must itself pass DMARC aligned.
code
xml · 19 lines<record>
<row>
<source_ip>198.51.100.25</source_ip>
<count>230</count>
<policy_evaluated>
<disposition>pass</disposition>
<dkim>pass</dkim>
<spf>fail</spf>
</policy_evaluated>
</row>
<identifiers>
<header_from>example.com</header_from>
<envelope_from>example.com</envelope_from>
</identifiers>
<auth_results>
<dkim><domain>example.com</domain><selector>s2026a</selector><result>pass</result></dkim>
<spf><domain>example.com</domain><scope>mfrom</scope><result>fail</result></spf>
</auth_results>
</record>go deeper
Recall that the report is XML, arrives by email at the rua address, and lists sending IPs with counts and pass or fail results.
Walk through report_metadata, policy_published and record, and explain the difference between the aligned verdicts in policy_evaluated and the raw results in auth_results.
Read a record aloud correctly: raw SPF pass with aligned fail, DKIM selector and d= as evidence, override reasons, and why one period can mix two policies after a change.
Decide how reports are ingested and kept: a parser hardened against compressed and XML bombs, deduplication by Report-ID, and retention that matches what the data is used for.
## How the report travels A receiver that evaluates DMARC for incoming mail and finds a `rua` tag in the domain's DMARC record builds **one report per DMARC Policy Domain** (the domain at which the record was found) for each reporting period. Mail from a subdomain with no record of its own is reported inside the parent's report as its own `record`; a subdomain that publishes its own record gets a separate report. Delivery by email follows RFC 9990 section 3.5.2: - The XML SHOULD be **gzip-compressed** and attached as `application/gzip`; uncompressed it is `text/xml`. - The attachment name follows `receiver!policy-domain!begin-timestamp!end-timestamp[!unique-id].xml.gz`, for example `mx.example.net!example.com!1791417600!1791503999.xml.gz`. - The Subject has the form `Report Domain: example.com Submitter: mx.example.net Report-ID: <...>`. - The report message itself MUST produce an aligned DMARC pass, which helps the consumer reject fraudulent reports. - Unless the URI says otherwise, the receiver SHOULD deliver over TLS (SMTP with STARTTLS). - A resent report MUST reuse the original filename, and the Report-ID lets the consumer spot duplicates. ## The top of the file `report_metadata` names the reporter (`org_name`, a contact `email`, optional `extra_contact_info`), a unique `report_id`, and a `date_range` whose `begin` and `end` are seconds since the epoch. They mark the reporting period, typically one UTC day starting at 00:00 UTC - not the first and last message seen. An optional `error` element carries problems found in your record, such as an invalid `rua` or two DMARC records at one name, and `generator` names the reporting software. `policy_published` is what the receiver saw: `domain` and `p` are required; `sp`, `np`, `adkim`, `aspf`, `fo`, `testing` (the value of `t`) and `discovery_method` (`psl` for the RFC 7489 Public Suffix List method, `treewalk` for RFC 9989) are optional, and tags you did not publish appear with their defaults. Comparing this block with what you believe you published is the fastest way to catch a stale or mistyped record. ## Inside a record | Element | Child | Meaning | |---|---|---| | `row` | `source_ip` | the connecting IP address | | `row` | `count` | how many messages received this evaluation | | `row` | `policy_evaluated` | `disposition`, `dkim`, `spf`, optional `reason` | | `identifiers` | `header_from` | the RFC 5322 From domain (required) | | `identifiers` | `envelope_from` | the MAIL FROM domain SPF checked (optional; may be empty for a null reverse-path) | | `identifiers` | `envelope_to` | the recipient domain (optional) | | `auth_results` | `dkim`, zero or more | `domain` (the `d=` tag), `selector` (`s=`), `result` | | `auth_results` | `spf`, zero or one | `domain`, `scope` (only `mfrom`), `result` | ## Aligned verdict against raw results The most common misreading treats the two `dkim`/`spf` pairs as one thing. 1. Inside `policy_evaluated`, `dkim` and `spf` are **DMARC verdicts**, `pass` or `fail`: did this mechanism produce a pass **aligned** with the From domain? 2. Inside `auth_results`, results are **uninterpreted**: the DKIM result for each signature's `d=` domain and selector, and the SPF result for the MAIL FROM domain, using RFC 8601 result names (`pass`, `fail`, `softfail`, `neutral`, `none`, `policy`, `temperror`, `permerror`). So a row can show a raw SPF `pass` and an aligned SPF `fail`: SPF passed, but for a domain that does not align with the From domain. DMARC passes when either aligned verdict is `pass`. When a message carries several signatures, RFC 9990 asks for no more than 100 per row, preferring strictly aligned passes, then relaxed aligned passes, then other passes, then failures. ## Disposition and override reasons `disposition` records what the receiver applied: `none`, `quarantine`, `reject`, or `pass` (DMARC passed under an enforcing policy) - `pass` is new in RFC 9990's schema; RFC 7489 allowed only the first three. If alignment failed and the applied policy differs from the published one, a `reason` MUST be included, with a `type` of `local_policy`, `mailing_list`, `trusted_forwarder`, `policy_test_mode` (the `t=y` testing flag) or `other`, plus an optional `comment`. RFC 7489's `sampled_out` (tied to the removed `pct` tag) and `forwarded` types are gone. ## Handling the files Aggregate reports are meant to be machine-parsed. RFC 9990 warns that the decompressor and XML parser of a report processor are exposed to zip bombs and XML bombs, that reports can contain forged data, and that a receiver may send duplicates or mix two policies in one period after a record change. Load them into a store that can be queried by source IP, domain and date, and weigh each reporter's data accordingly.
- Why can a DMARC aggregate report's policy_published disagree with the record you changed this morning?Receivers cache DNS and may notice a change during the period, at its end, or in a later one. RFC 9990 allows a single report whose dispositions mix the old and new policy under one `policy_published`, or separate reports per policy, so owners should expect mixed reports while a change propagates.
- If news.example.com has no DMARC record of its own, where does its traffic appear in aggregate reports?In the report for the policy domain whose record applied, typically `example.com`, as separate `record` elements with `header_from` set to `news.example.com`. If `news.example.com` publishes its own record, receivers produce a separate report for it, because each report covers exactly one DMARC Policy Domain.
- What should you do when a DMARC aggregate report's report_metadata contains an error element?Treat it as the receiver telling you your DMARC record has a problem. RFC 9990 gives examples such as an invalid `rua` or `sp` value, or more than one DMARC record at the same name, in which case none of them applies. Fix the record, then check in the next reports that `policy_published` shows what you meant and the error is gone.
- spf pass inside policy_evaluated just means the SPF check passed.
- auth_results lists only the DKIM signature that aligned.
- date_range marks the first and last message the receiver saw.
- One report covers every domain and subdomain the owner publishes records for.
- Reports arrive as plain XML in the message body, never compressed.