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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dmarc_report-1.1.0.tar.gz.
File metadata
- Download URL: dmarc_report-1.1.0.tar.gz
- Upload date:
- Size: 27.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f9210acfd02bc0705af03cf5559e5a4c99fa0952290835e9c194c78b92a93ba
|
|
| MD5 |
7f30918cea9fe0874000f345dc920402
|
|
| BLAKE2b-256 |
792e30cc640e76c2c2ac93acc0f5c9b623dd00add6f117075f8bdac565dd1ecc
|
Provenance
The following attestation bundles were made for dmarc_report-1.1.0.tar.gz:
Publisher:
ci.yml on stuartmaxwell/dmarc-report
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dmarc_report-1.1.0.tar.gz -
Subject digest:
1f9210acfd02bc0705af03cf5559e5a4c99fa0952290835e9c194c78b92a93ba - Sigstore transparency entry: 154989611
- Sigstore integration time:
-
Permalink:
stuartmaxwell/dmarc-report@95f6dde20857a7e5d753b3e1f11060902dbc4366 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/stuartmaxwell
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@95f6dde20857a7e5d753b3e1f11060902dbc4366 -
Trigger Event:
release
-
Statement type:
File details
Details for the file dmarc_report-1.1.0-py3-none-any.whl.
File metadata
- Download URL: dmarc_report-1.1.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b6c98675587d26304a9cf4b108358b74b4b80fe438af09b0acf3fcab55ee2ed
|
|
| MD5 |
ef05fdb82d612e0ca347da694ea5196c
|
|
| BLAKE2b-256 |
04811477f0812b17067016f09c5836b7900d11b5daa8667dc33a85f95399bdf8
|
Provenance
The following attestation bundles were made for dmarc_report-1.1.0-py3-none-any.whl:
Publisher:
ci.yml on stuartmaxwell/dmarc-report
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dmarc_report-1.1.0-py3-none-any.whl -
Subject digest:
0b6c98675587d26304a9cf4b108358b74b4b80fe438af09b0acf3fcab55ee2ed - Sigstore transparency entry: 154989612
- Sigstore integration time:
-
Permalink:
stuartmaxwell/dmarc-report@95f6dde20857a7e5d753b3e1f11060902dbc4366 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/stuartmaxwell
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@95f6dde20857a7e5d753b3e1f11060902dbc4366 -
Trigger Event:
release
-
Statement type: