Index of /rddmarc

Icon  Name                    Last modified      Size  Description
[PARENTDIR] Parent Directory - [   ] dmarcagg.py 2024-02-09 16:41 11K [   ] dmarcfail.py 2017-10-20 10:24 4.3K [   ] mkdmarc 2016-05-01 17:47 3.6K [   ] mkdmarc-update 2016-05-01 17:44 1.8K [TXT] mysql_ip6.c 2011-05-15 11:48 2.9K [   ] rddmarc 2016-05-01 17:44 8.2K

These are little scripts to parse DMARC reports.

The first, dmarcagg.py, is a python script that take an incoming DMARC summary report email, extracts and unpacks the gzip or ZIP file, parses the XML, and puts the parts about received mail into a MySQL database. The database is set up to handle reports about multiple domains from multiple reporters. It's handling reports from Google, Yahoo, xs4all and Netease.

It takes filenames on the command line, each of which contains a mail message, or reads the message from stdin if there are no names.

It works great on FreeBSD, can probably be made to work on linux with modest effort, no clue about other systems.

The second is a python script to parse failure reports. It expects file names on the command line, or if no arguments, it reads stdin. It needs the usual MySQLdb module. It handles reports from Netease, which are currently the only ones I'm getting.

UPDATE: Thanks to John Bieling for some updates to rddmarc to log the policy_published and policy_evaluated fields