A DMARC analyzer written in rust.
It will fetch the reports directly from an IMAP accounts INBOX.
The reports are extracted, parsed and stored in a local SQLite database.
The results are shown in a simple web based interface.
Successfully processed emails are moved to the store_folder
.
For now, this is still very much in progress an there is not too much to see besides some basic stats and a listing of all the reports.
I tested the parser against over 500 reports that I had at hand. Mostly from Google and Yahoo. A few from other services as well. If it fails parsing a report, I would be happy if you could make it available to me so I can adapt the parser.
- SQLite 3.6.8 or newer
- OpenSSL
- Clone this repository
- Adapt the
config.cfg
file to point to your IMAP account that has the DMARC reports. - run
cargo run
- Fetch reports either via the GUI or by running
curl http://localhost:8000/fetch
To change the listening port or address, change it in the Rocket.toml
file.
- Use Rocket 0.5-rc1
- Move processed emails to
store_folder
- Handle empty mailboxes
Add line plots for the last 30 days
Reworked around Rocket to provide a web interface.
Fetch, parse and store reports