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:     │ quarantine                                           │ │
│ │ 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                                                    │ │
│ │ DMARC Pass Rate:      │ 100.0%                                               │ │
│ │ DKIM Alignment:       │ 100.0%                                               │ │
│ │ SPF Alignment:        │ 100.0%                                               │ │
│ ╰───────────────────────┴──────────────────────────────────────────────────────╯ │
│                                 Message Records                                  │
│ ╭─────────────┬───────┬──────────────┬─────────────┬───────────────────────────╮ │
│ │ Source IP   │ Count │ DKIM Aligned │ SPF Aligned │ Authentication Results    │ │
│ ├─────────────┼───────┼──────────────┼─────────────┼───────────────────────────┤ │
│ │ 123.0.456.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.2.tar.gz (19.0 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.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dmarc_report-2.2.2.tar.gz
  • Upload date:
  • Size: 19.0 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.2.tar.gz
Algorithm Hash digest
SHA256 22120f49e8cc37143c89f8a7a48c64c0a7e11286b5429569b3e2527259eb0d92
MD5 a28303d199c788febe3257336235e82d
BLAKE2b-256 618d82b2306a24ae9d0bbfcaaa0c6d9519e5e80649336994a62eba4ce7d169d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dmarc_report-2.2.2-py3-none-any.whl
  • Upload date:
  • Size: 10.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 12f30f5c3771e49d57c0ad763132b9461d744f99efd9258c19ddac09e303c77d
MD5 45593e6d595a79867e86f0946095e55a
BLAKE2b-256 171fb80ae7489309d1c5f0c1d9c44a6ec25ccc5e8a155833820b58c2eb780857

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