paulobrien.dev
All posts

DMARC report reader: a deep dive

Paul O'Brien · 3 min read

If you've set up DMARC with a reporting address, you'll know the feeling. Every day Google, Microsoft and others send you a zip file full of XML, and nobody reads it. The DMARC report reader turns those files into a plain English list of every service sending email as your domain, how much of it passed and what to fix.

Contents

Why I built it

DMARC is the record that tells inboxes what to do with email that claims to be from you but isn't. Most people set it to p=none, which only watches, and never move on, because turning it up to quarantine or reject feels risky. What if the invoicing app or the website's contact form stops getting through?

The reports answer that question, but only if you can read them. I wanted a reader that names each sender in words you'd recognise, such as Google Workspace, Mailchimp or Xero, says which ones are failing and why, and tells you when it's safe to turn DMARC up.

How it works

The reader runs on Cloudflare Workers, with D1 keeping count of your daily allowance.

  • Drop in up to 10 files at a time. It takes .xml, .xml.gz and .zip, the formats the reports arrive in.
  • Read and thrown away. Files are read on the spot and nothing from them is kept.
  • Senders named. Mail servers are matched to the services behind them, so you see names instead of IP addresses.
  • Advice, not just numbers. Each failing service comes with the SPF or DKIM setting it needs, step by step.

What it reads

What you seeWhat it means
Senders by nameEvery service that sent email using your domain
Pass and fail countsHow many of each sender's emails passed DMARC
SPF and DKIM alignmentWhether each sender proves it's allowed to send as you
Forwarded mailEmail that failed only because someone forwarded it
Unknown serversSenders it doesn't recognise, which might be you or might be someone pretending
Policy adviceWhether it's safe to move to quarantine or reject

A real report

This one is a real report for a business domain I look after. I've hidden the domain's name, so it shows as example.co.uk.

A DMARC summary for example.co.uk: 99% of 354,522 emails passed DMARC from 11 senders, with 2 to check, 8 passing and 1 not recognised, above a chart of the last 30 days
A real report, with the domain hidden

It covers 12 November to 1 December, from reports sent by Google, Outlook.com, Enterprise Outlook, GoDaddy and Zoho Mail. In that time 354,522 emails were sent as the domain, and 99% of them passed DMARC.

The policy is already p=reject, so anything that fails is refused. That makes the small print matter. Of the 11 senders, 8 are passing, 2 are worth checking and 1 isn't recognised. The one at the top of the list to check is Microsoft 365, with 261 emails and 95% passing. The failures are most likely mail forwarded on by someone's forwarding rule or a mailing list, which changes the message, so the advice is to keep an eye on it and make sure every account sending from Microsoft 365 signs with DKIM.

That's the whole point of the reader. Hundreds of thousands of rows of XML come down to three things to look at, each with what to do about it.

Who it's for

Anyone stuck on p=none. If your DMARC record has been watching for months, this tells you whether you can turn it up.

Businesses with lots of senders. A website, a newsletter app, an accounting app and a help desk all send as your domain. The reader shows whether each one is set up properly.

People who look after domains for clients. Drop in a client's reports and see straight away what needs fixing.

Good to know

  • It's free for subscribers to paulobrien.dev, up to 20 report files a day, 10 MB each.
  • If you don't get any reports, your DMARC record needs a rua= address. The DNS checker shows your record and the line to add.

Try it

The DMARC report reader is on the tools page. Tomorrow it's the last in the series, the QR code checker.

As always, sharing the love.

Stay in the loop

Subscribe for updates.

Leave your email and I'll tell you when there's a new version of one of my apps, or a new project to try. You can also use every tool on this site, free.

That didn't work. Please check your email address and try again.

One email to confirm. Unsubscribe with one click. Your address is only used for these updates.