Skip to main content

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

Project description

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)        │ │
│ ╰─────────────────┴─────────┴────────┴────────┴────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────╯

Project details


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-1.0.4.tar.gz (27.6 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-1.0.4-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dmarc_report-1.0.4.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for dmarc_report-1.0.4.tar.gz
Algorithm Hash digest
SHA256 3145bbbd8ac3b0dd5938082f3ce8044da47ba3e0b98cd96f7ff603c4de61f36e
MD5 561f32b448b6f1e1b27aaededaeb800b
BLAKE2b-256 f392f1f33c631277377134a8835d2ff095018d24ca4f4355cd3262b5e5dba20e

See more details on using hashes here.

Provenance

The following attestation bundles were made for dmarc_report-1.0.4.tar.gz:

Publisher: ci.yml on stuartmaxwell/dmarc-report

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: dmarc_report-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for dmarc_report-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7ce85153cefee2aa4141e6e164447228ab96b1d5d5d079efbe88d8f3a9bdce4d
MD5 f1bce2a594f374c0953bd3ec6df061bc
BLAKE2b-256 e3cbc509e196a735a6a39713540574ef85d2dc4c7713fcde268047cd51c3f0ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for dmarc_report-1.0.4-py3-none-any.whl:

Publisher: ci.yml on stuartmaxwell/dmarc-report

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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