# `bird email tools analyze-dmarc-report`

## Usage

```bash
bird email tools analyze-dmarc-report <report-xml> [flags]
```

## Description

Analyze a DMARC aggregate report

Analyze a DMARC aggregate (RUA) report and get back totals, a per-source-IP breakdown, and plain-language findings. These are the XML reports mailbox providers email to the address in your DMARC `rua=` tag; pass the XML in `report_xml`. The tool reports the overall pass rate, which sources are passing or failing SPF and DKIM alignment (and which domains a failing source is sending as — usually a forwarder), and flags the things worth acting on. Use this to read a DMARC report you can't make sense of, or to find which senders are failing before you tighten your policy. Offline — nothing is looked up or sent. Public — no authentication required.

Build the request from the &lt;report_xml> argument, a JSON AnalyzeDmarcReportRequest body via
--body-file ("-" reads stdin), or both — an inline value overrides the matching
body field. Run --example to print a ready-to-edit body, or --dry-run to print
the resolved request without sending it.

## Examples

```bash
# print the body shape (no credentials needed)
bird email tools analyze-dmarc-report --example
```

## Options

#### Request

| Name                | Description                                                  |
| ------------------- | ------------------------------------------------------------ |
| `--body-file`       | Read the JSON request body from this file; "-" reads stdin   |
| `--example`         | Print a complete example request body, then exit             |
| `--dry-run`         | Print the resolved request without sending it, then exit     |
| `--idempotency-key` | Deduplication key; a retry with the same key won't act twice |

#### Options

| Name                | Description                                      |
| ------------------- | ------------------------------------------------ |
| `--response-schema` | Print the fields this command returns, then exit |

## Related

| Name                                                                                    | Description                                      |
| --------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [`bird email tools analyze-headers`](/docs/cli/reference/email-tools-analyze-headers)   | Analyze raw email headers                        |
| [`bird email tools audit`](/docs/cli/reference/email-tools-audit)                       | Audit a domain's email authentication            |
| [`bird email tools split-dns-record`](/docs/cli/reference/email-tools-split-dns-record) | Split a long DNS TXT value into 255-octet chunks |
| [`bird email tools validate-bimi`](/docs/cli/reference/email-tools-validate-bimi)       | Validate a BIMI record                           |
| [`bird email tools validate-dmarc`](/docs/cli/reference/email-tools-validate-dmarc)     | Validate a DMARC record                          |