Skip to main content

DMARC Report Tool

Displays a nicely formatted report in your terminal from a DMARC XML report.

Installation

This works best when installed with uv tool or pipx.

# With uv:
uv tool install dmarc-report

# Or with pipx:

pipx install dmarc-report

You can also run the tool without installing it:

# With uvx:
uvx dmarc-report long-dmarc-report-filename.xml

Usage

Run the dmarc-report command-line utility followed by a DMARC report file. The DMARC report can have one of the following file extensions:

  • .xml.gz
  • .zip
  • .xml
dmarc-report long-dmarc-report-filename.xml.gz
# or
dmarc-report long-dmarc-report-filename.xml
# or
dmarc-report long-dmarc-report-filename.zip

Note: if using a zip file, it will only parse the first xml file found in the zip file.

You'll see a nicely formatted report in your terminal:

╭────────────────────────── DMARC Report for example.com ──────────────────────────╮
│                               DMARC Policy Details                               │
│ ╭───────────────────────┬──────────────────────────────────────────────────────╮ │
│ │ Domain                │ example.com                                          │ │
│ │ DKIM Alignment        │ r                                                    │ │
│ │ SPF Alignment         │ r                                                    │ │
│ │ Policy                │ quarantine                                           │ │
│ │ Subdomain Policy      │ reject                                               │ │
│ │ Percent               │ 100%                                                 │ │
│ ╰───────────────────────┴──────────────────────────────────────────────────────╯ │
│                              DMARC Report Metadata                               │
│ ╭───────────────────────┬──────────────────────────────────────────────────────╮ │
│ │ Org name              │ Google, Inc.                                         │ │
│ │ Email                 │ noreply-dmarc-support@google.com                     │ │
│ │ Extra contact info    │ https://support.google.com/a/answer/2466580          │ │
│ │ Report ID             │ 1234567890                                           │ │
│ │ Date range            │ 2020-01-01 00:00:00 UTC to 2020-01-01 23:59:59 UTC   │ │
│ ╰───────────────────────┴──────────────────────────────────────────────────────╯ │
│                                     Summary                                      │
│ ╭───────────────────────┬──────────────────────────────────────────────────────╮ │
│ │ Total Messages        │ 2                                                    │ │
│ │ Unique Sources        │ 1                                                    │ │
│ │ DKIM Pass Rate        │ 0.0%                                                 │ │
│ │ SPF Pass Rate         │ 0.0%                                                 │ │
│ ╰───────────────────────┴──────────────────────────────────────────────────────╯ │
│                                 Message Records                                  │
│ ╭─────────────────┬─────────┬────────┬────────┬────────────────────────────────╮ │
│ │ Source IP       │ Count   │ DKIM   │ SPF    │ Auth Results                   │ │
│ ├─────────────────┼─────────┼────────┼────────┼────────────────────────────────┤ │
│ │ 203.0.113.1     │ 2       │ pass   │ pass   │ dkim: example.com (pass)       │ │
│ │                 │         │        │        │ spf: example.com (pass)        │ │
│ ╰─────────────────┴─────────┴────────┴────────┴────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────╯

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dmarc_report-2.2.1.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dmarc_report-2.2.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file dmarc_report-2.2.1.tar.gz.

File metadata

  • Download URL: dmarc_report-2.2.1.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.28.0 CPython/3.14.6 Linux/6.17.0-1020-azure

File hashes

Hashes for dmarc_report-2.2.1.tar.gz
Algorithm Hash digest
SHA256 224a50453b5bd08b4bf66fb6e68f58a528ff91f790909290a29e1bb46c0ee40d
MD5 f3b390edf20cf076d1e25531459800b0
BLAKE2b-256 3eaa1e328a83d7c20f54b32a92c8c837fbc2b2adb2ba03370717b87a218e1f86

See more details on using hashes here.

File details

Details for the file dmarc_report-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: dmarc_report-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.28.0 CPython/3.14.6 Linux/6.17.0-1020-azure

File hashes

Hashes for dmarc_report-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11f9dd732ee13ecf2dbc865187d0d418ad1393a9c26fad1514bae5f2c35c9086
MD5 7476b298be1e0e0ba249cac08750a0cd
BLAKE2b-256 708ecc95d518270dbc1033099ef2408d4140d4a997450638500d26dda74fc417

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page