Skip to content

A DMARC analyzer that fetches report via IMAP and provides a simple integrated web interface

Notifications You must be signed in to change notification settings

aaronlauterer/dmarc_analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DMARC Analyzer

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.

Dependencies

  • SQLite 3.6.8 or newer
  • OpenSSL

Installation

  1. Clone this repository
  2. Adapt the config.cfg file to point to your IMAP account that has the DMARC reports.
  3. run cargo run
  4. 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.

Changelog:

0.4.0

  • Use Rocket 0.5-rc1
  • Move processed emails to store_folder
  • Handle empty mailboxes

0.3.0

Add line plots for the last 30 days

0.2.0

Reworked around Rocket to provide a web interface.

0.1.0

Fetch, parse and store reports

About

A DMARC analyzer that fetches report via IMAP and provides a simple integrated web interface

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published