I manage over three hundred email mailing lists. Recently, I noticed a spike in bounced messages. Fixing that required setting up DMARC email authentication for my domains. Now I get daily reports from email providers like Fastmail, Gmail, Microsoft, and Yahoo about how they're handling mail for my domains. I wrote an Emacs package for reviewing those reports.
All this started for me when Microsoft made an accidental configuration change to its email rules. The change made messages sent to outlook.com and other Microsoft domains more likely to be treated as spam if the sending domain didn't have DMARC configured. After I noticed that the bounce rate had gone up for some of the mailing lists I manage for the Scheme Requests for Implementation project, I configured DMARC for the SRFI domain. (SRFI uses the excellent Simplelists mailing list hosting service, but I still have to manage DMARC.)
By the time the dust settled, I had also configured my domains to request daily DMARC reports from email providers. The reports show what each provider is doing with messages that claim to have been sent by my domains. That way, I can watch out for delivery problems. The reports arrive via email with a special XML attachment.
For a while, I used dmarc-report-converter to review them. It's a nice tool, but I wanted something better integrated with my workflow.
I made dmarc-report, an Emacs package that hooks into your email client, extracts DMARC
report messages, parses the XML attachments, and displays them in a
table. For now, it expects the messages to be in a folder on disk, but
there's a simple API for adding new back ends so that you can use any
email client you choose. For example, it wouldn't be much work to add
support for Mu4e or Notmuch. I have a custom back end for my
as-yet-unpublished Tabel email client. It automatically extracts all
messages that are labeled dmarc.
To use dmarc-report, I wait for DMARC reports to accumulate, then run M-x dmarc-report, which shows the table of results. I press the f key, which toggles the results so that only failed deliveries are
shown. If there are any failures, I dive in, trying to figure out
whether they represent spam, or whether legitimate email was
mislabeled.
The dmarc-report package is now on GitHub. I plan to submit it to MELPA once the repo has been public for thirty days. If it is accepted by
MELPA, I'll update this post.
Issues and pull requests are welcome.