Python script for generating human-readable HTML summaries with a chart for aggregated DMARC reports.
Web-Based version: DMARC Analyzer web-based
https://muninn.ovh/github/DMARC-Aggregate-Report/
pip install matplotlib- Place all the XML reports (or zip/gz archive) in a folder named
dmarc_reports. - Run
report.bat(or the improved powershell version).
You can edit the report.bat file to change the title of the DMARC report:
python.exe REPORT_Full.py "Customer Example"If no parameter is provided, the script will prompt the user to enter a value interactively.
The Python script will create a folder with today's date and generate a report with all the data found in the provided XML files.
When the report is generated, all files in the working folder dmarc_reports will be automatically deleted.
If you don’t want the files in the working directory to be deleted, simply remove this line from the Report.bat script.
powershell -Command "Remove-Item -Path '%folder%\*' -Recurse -Force"You can easily automate the creation of reports upon receiving a DMARC email by scripting it within an email client (eg, Thunderbird with FiltaQuilla addon).
The HTML report has two modes:
- The first mode uses the classic Dracula theme.
- The second mode is print-friendly with a white background to save toner/ink.
The script is configurable to add a name to the title. For example:
python.exe REPORT_Full.py "Test S.r.l"

