# DMARC Report Analyzer: Read Aggregate Reports (RUA XML)

Summarise a DMARC aggregate report (RFC 7489 XML, up to 2 MB, one decompressed string). Returns the domain and the published policy, the reporting period, the reporters, message totals (DMARC, SPF and DKIM aligned, disposition), and one row per sending IP with its message count and share, SPF and DKIM alignment results with the domains and selectors, a kind (aligned, dkim-only, spf-only, list-or-forward, unlisted, unknown, rejected), receiver override reasons and a one-sentence reading. The verdict is one of ready, not-yet, enforced or not-enough-data (under 3 days or under 100 messages), counted by messages, with the sources that would be refused at p=reject. A failure (forensic) report, a file with a DOCTYPE and text that is not XML are refused. Optional lookups name up to 25 public addresses for reverse DNS and network owner. Nothing is stored.

**Not for:** Checking the published DMARC record (use dmarc_check) or building one (use dmarc_generate).

- Tool id: `dmarc-report-parse`
- Category: email
- Execution: network
- MCP tool `dmarc_report_parse` at https://lookupowl.com/mcp
- REST `GET https://lookupowl.com/api/v1/tools/dmarc-report-parse` (or POST a JSON body)
- OpenAPI: https://lookupowl.com/api/openapi.json

## Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `xml` | string | yes |  | One DMARC aggregate report as XML, up to 2 MB, already decompressed. Never stored. The web page also opens .xml, .gz and .zip files in your browser. min length 1, max length 2097152 |
| `lookups` | string[] | no | `[]` | Public IP addresses from the reports to look up (reverse DNS name and network owner), at most 25. Private addresses are refused. Nothing else leaves the page. max 25 items |

## Output

Results are wrapped in an envelope: `tool`, `version`, `requestId`, `data`, `summary`, `meta` (cache status, timing), `permalink`. `data` has these fields:

| Field | Type | Description |
|---|---|---|
| `schema` | "rfc7489" \| "rfc9990" | Which report format the file used. |
| `domain` | string |  |
| `policy` | object |  |
| `period` | object |  |
| `reporters` | object[] |  |
| `totals` | object |  |
| `sources` | object[] |  |
| `verdict` | object |  |
| `findings` | object[] |  |
| `dropped` | number | Records left out because the reports name more than 5,000 sending addresses. When this is above 0 the totals cover only part of the data and the verdict is not-enough-data. |
| `daily` | object[] | Messages and failing messages per UTC day, by the day each report starts. |
| `files` | object[] | The browser fills this in. REST and MCP take one XML string, so it is empty. |
| `skipped` | object[] |  |
| `lookups` | object[] | One row for each address asked about in `lookups`, whether or not it is in the report. |
| `otherDomains` | object[] | Other domains in the same text, biggest first. The answer above is for the biggest. |
| `refused` | string | The text was not read: a failure (forensic) report, a file that declares its own entities, or not XML. |

## Examples

### A small made-up report with a forwarder and a forgotten server

```json
{"xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?><feedback><report_metadata><org_name>receiver.example.net</org_name><report_id>8841207330</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><record><row><source_ip>198.51.100.24</source_ip><count>933</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><result>pass</result><selector>mailer1</selector></dkim><spf><domain>bounce.mailer.example.net</domain><result>pass</result></spf></auth_results></record><record><row><source_ip>203.0.113.9</source_ip><count>41</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><spf><domain>unknown.example</domain><result>fail</result></spf></auth_results></record></feedback>","lookups":[]}
```

```bash
curl 'https://lookupowl.com/api/v1/tools/dmarc-report-parse?xml=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3Cfeedback%3E%3Creport_metadata%3E%3Corg_name%3Ereceiver.example.net%3C%2Forg_name%3E%3Creport_id%3E8841207330%3C%2Freport_id%3E%3Cdate_range%3E%3Cbegin%3E1794700800%3C%2Fbegin%3E%3Cend%3E1794787199%3C%2Fend%3E%3C%2Fdate_range%3E%3C%2Freport_metadata%3E%3Cpolicy_published%3E%3Cdomain%3Eexample.com%3C%2Fdomain%3E%3Cadkim%3Er%3C%2Fadkim%3E%3Caspf%3Er%3C%2Faspf%3E%3Cp%3Enone%3C%2Fp%3E%3Csp%3Enone%3C%2Fsp%3E%3Cpct%3E100%3C%2Fpct%3E%3C%2Fpolicy_published%3E%3Crecord%3E%3Crow%3E%3Csource_ip%3E198.51.100.24%3C%2Fsource_ip%3E%3Ccount%3E933%3C%2Fcount%3E%3Cpolicy_evaluated%3E%3Cdisposition%3Enone%3C%2Fdisposition%3E%3Cdkim%3Epass%3C%2Fdkim%3E%3Cspf%3Efail%3C%2Fspf%3E%3C%2Fpolicy_evaluated%3E%3C%2Frow%3E%3Cidentifiers%3E%3Cheader_from%3Eexample.com%3C%2Fheader_from%3E%3C%2Fidentifiers%3E%3Cauth_results%3E%3Cdkim%3E%3Cdomain%3Eexample.com%3C%2Fdomain%3E%3Cresult%3Epass%3C%2Fresult%3E%3Cselector%3Emailer1%3C%2Fselector%3E%3C%2Fdkim%3E%3Cspf%3E%3Cdomain%3Ebounce.mailer.example.net%3C%2Fdomain%3E%3Cresult%3Epass%3C%2Fresult%3E%3C%2Fspf%3E%3C%2Fauth_results%3E%3C%2Frecord%3E%3Crecord%3E%3Crow%3E%3Csource_ip%3E203.0.113.9%3C%2Fsource_ip%3E%3Ccount%3E41%3C%2Fcount%3E%3Cpolicy_evaluated%3E%3Cdisposition%3Enone%3C%2Fdisposition%3E%3Cdkim%3Efail%3C%2Fdkim%3E%3Cspf%3Efail%3C%2Fspf%3E%3C%2Fpolicy_evaluated%3E%3C%2Frow%3E%3Cidentifiers%3E%3Cheader_from%3Eexample.com%3C%2Fheader_from%3E%3C%2Fidentifiers%3E%3Cauth_results%3E%3Cspf%3E%3Cdomain%3Eunknown.example%3C%2Fdomain%3E%3Cresult%3Efail%3C%2Fresult%3E%3C%2Fspf%3E%3C%2Fauth_results%3E%3C%2Frecord%3E%3C%2Ffeedback%3E'
```

Web page: https://lookupowl.com/dmarc-report-analyzer

### A failure (forensic) report is refused, not read

```json
{"xml":"<?xml version=\"1.0\"?><feedback><feedback_type>auth-failure</feedback_type><original_mail_from>a@example.com</original_mail_from></feedback>","lookups":[]}
```

```bash
curl 'https://lookupowl.com/api/v1/tools/dmarc-report-parse?xml=%3C%3Fxml+version%3D%221.0%22%3F%3E%3Cfeedback%3E%3Cfeedback_type%3Eauth-failure%3C%2Ffeedback_type%3E%3Coriginal_mail_from%3Ea%40example.com%3C%2Foriginal_mail_from%3E%3C%2Ffeedback%3E'
```

Web page: https://lookupowl.com/dmarc-report-analyzer

## Web pages

- https://lookupowl.com/dmarc-report-analyzer

## Limits and caching

- Cost: from 1 unit up, depending on the input (a registry lookup counts every upstream request); 1 unit for a cached result. Budgets are per network and published in the `RateLimit` response headers.
- Cache: results are never cached.
- Timeout: 20 s.

## Related tools

- [DMARC Record Checker](https://lookupowl.com/tools/dmarc-checker.md): Look up and validate a domain's DMARC policy, report addresses and alignment settings.
- [DMARC Record Generator](https://lookupowl.com/tools/dmarc-generator.md): Build a valid DMARC record, with report authorization records and a step-by-step rollout plan.
- [SPF Flattener and Lookup Limit Fixer](https://lookupowl.com/tools/spf-optimize.md): Fix an SPF record that needs more than 10 DNS lookups: see what each include costs, pick the safest fixes and get the new record.
- [Email Health Checker and Spoofing Test](https://lookupowl.com/tools/email-health.md): Check a domain's whole mail setup in one report: mail servers, SPF, DKIM, DMARC, BIMI, MTA-STS, TLS-RPT and blocklists, with the fixes to make first.
- [Email Header Analyzer](https://lookupowl.com/tools/email-header-analyze.md): Read the headers of an email: the route it took, the delay at each hop and whether it passed SPF, DKIM and DMARC, without storing anything.
- [DKIM Record Checker](https://lookupowl.com/tools/dkim-checker.md): Find and check a domain's DKIM public keys, even when you do not know the selector.

## Guide: DMARC report analyzer

Drop your DMARC report files here, kept on your device, and see which servers send mail as your domain, which would fail, and whether your policy can tighten.

### What a DMARC report holds

When you publish a DMARC record with a `rua` address, mail providers such as Gmail, Microsoft and Yahoo send that address a report every day. It is an XML file, usually compressed, that lists every server that sent mail claiming to be your domain: its IP address, how many messages, and whether SPF and DKIM passed in a way that counts for DMARC.

Nobody reads those files by hand. The analyzer opens `.xml`, `.gz` and `.zip` files, as many as you like, adds the messages up for each sending address and tells you in plain words which senders are fine, which are forwarded or list mail, and which would be refused if you moved to `p=reject`.

- Who sends: each source address with its message count and share, the reporters that saw it, and a name for it when the report holds one.
- What passes: SPF and DKIM for each source, each marked aligned, passed but not aligned, failed or not signed.
- What it looks like: a plain name for each source, such as passes on its own, passes through DKIM only, list or forwarded mail, or a forgotten server. No source is called malicious.
- What to do: the few steps that matter, in order, ending with whether to move to `p=quarantine` or `p=reject`.

### Your reports stay on your device

A report lists the addresses of other organisations, and some belong to small senders. So this page is built to keep them to itself. With JavaScript on, your files are opened and read inside your browser. Nothing is uploaded, saved or put in a link, there is no limit from us and no sign-up.

One extra needs our servers, so it is off until you ask. "Look up this sender" on a row sends that one public IP address, and nothing else, to find its reverse DNS name and network owner. You can ask for up to 25 a run, and the page lists what it would send before the bigger lookup.

> **Without JavaScript** The form posts the XML you paste to our server for that one request, up to 2 MB. We read it, show the result and don't keep it. The answer is never cached and the page address has no query. To open compressed files, turn JavaScript on.

### How the verdict is worked out

The verdict is counted by messages, not by sources and not weighted. A message passes DMARC when SPF or DKIM passes and the domain it passes for lines up with the domain in the From header. One aligned result is enough, so a source that passes through DKIM alone is fine.

| Verdict | When |
|---|---|
| Ready to tighten | Nothing fails except forwarded or list mail, and that is under 1% of all messages. At `p=none` the next step is `p=quarantine`; at `p=quarantine` it is `p=reject`. |
| Not yet | Some source fails and would be refused. The page lists each one and what it would lose. |
| Already enforced | Your policy is `p=reject`. The page shows what the receivers refused. |
| Not enough data | The reports cover under 3 days or under 100 messages. A monthly sender may not have shown up yet. |

We never say "safe". We say that nothing in these reports would be refused, and name the days they cover. The 1% allowance for forwarded and list mail is our own rule of thumb, and the page says so under the answer.

### Why SPF can pass and DMARC still fail

A report holds two sets of results. `auth_results` is what the receiver saw: SPF and DKIM passed for some domain. `policy_evaluated` is what counted for DMARC: whether that domain lines up with the From domain. The gap between the two is the part people misread most.

A mail service that sends for you often passes SPF for its own bounce domain. That is a pass, but for a different domain, so it does not count. Each row has a "How this row was judged" strip that shows the From domain, the SPF and DKIM domains, and whether each one is the same domain, in words.

### Files and limits

Both report formats are read: the older one from RFC 7489 and the newer one from RFC 9990. The page says which one a file is. Reports from Google, Microsoft, Yahoo and most others arrive as `.xml.gz` or `.zip` files, and both open here.

- In your browser: up to 50 MB and 500 files at once, and up to 200 MB once zip files are unpacked.
- Without JavaScript, over REST or from an MCP client: one decompressed report, or a few pasted one after another, up to 2 MB.
- A failure (forensic) report holds copies of message headers. It is not read, and the page says so.
- A file that declares its own entities (a DOCTYPE) is skipped. Real reports never have one, and reading them could be abused.
- A file that ends early is read as far as it goes, and the rows before the break are counted.

### Frequently asked questions

**How many reports do I need before I can enforce?**

At least three days and a hundred messages, and ideally a few weeks, so that a monthly sender shows up. With less, the page says there is not enough data to judge.

**Why does forwarded mail fail DMARC?**

A forwarder or mailing list often changes the message or sends it from its own server, which breaks SPF and sometimes DKIM. The page marks such sources and does not count them against you when they are under 1% of your mail.

**Are my reports uploaded?**

No. With JavaScript on, the files are read in your browser and nothing is sent. The only thing that can leave is one public IP address, and only when you press a lookup button for it. Without JavaScript, the XML you paste goes to our server for that one request and is not kept.

**How do I get DMARC reports?**

Add a `rua=mailto:` address to your DMARC record, for example `rua=mailto:dmarc-reports@example.com`. Providers then send a report each day. The DMARC checker shows whether your record has one.

**What should I do about a source I do not know?**

Copy its address and ask who runs it. If it is yours, add it to your SPF record or sign its mail with DKIM. If it is not, leave it failing: at `p=reject` the receivers refuse it. The row has a link to report it.
