parsedmarc is an open source DMARC report analyzer which can parse the reports from IMAP and output them as JSON or send them to Elasticsearch and much more.
See all the features from the official documentation https://domainaware.github.io/parsedmarc
All the credits to the original author of parsedmarc seanthegeek
$ docker run -it --rm xbblabs/parsedmarc parsedmarc --help
version: '2.2'
services:
parsedmarc:
container_name: "parsedmarc"
image: "xbblabs/parsedmarc:latest"
volumes:
- ./parsedmarc.ini:/etc/parsedmarc.ini
- geoip-data:/usr/share/GeoIP:ro
command: ["parsedmarc", "-c", "/etc/parsedmarc.ini"]
init: true
restart: "unless-stopped"