pyrua: DMARC Report Toolset

Pyrua is a Python toolset for working with DMARC aggregate reports (RUA reports). It consists of three tools:

What pyrua is not: pyrua does not provide integrations into mail servers. It does not perform DMARC message validation and does not generate reports.

Features

Usage

$ python3 -m pyrua.validator schema/rua.xsd report.xml
Validating report.xml ... OK

Caveats with XSD Validation

Bottom line: Both schemata are garbage. Use rua_fixed.xsd or rfc7489_fixed.xsd instead.

Other Usages

$ python3 -m pyrua.xmlextract report.eml

See example input and output.

$ python3 -m pyrua.analyzer reports-folder/

See example output.

Installation

Prerequisites

Download