How it works

When you check a domain, our server (running on Cloudflare) looks up its email records through Cloudflare’s public DNS resolver, 1.1.1.1, and grades each one. The records are read live, so the report shows what receiving mail servers see now.

  • MX: the mail servers for the domain, in priority order. We check that the four highest-priority servers have an address and aren’t aliases (CNAMEs), and name the provider when the host names match a known service, such as Google Workspace, Microsoft 365, Proofpoint or Mimecast. A null MX (a single record pointing to ”.”, RFC 7505) passes: it says the domain takes no mail.
  • SPF: the one TXT record starting with v=spf1 (two or more is an error). We check the syntax, read how it ends (-all, ~all, ?all or +all), and follow every include and redirect to count DNS lookups against the limit of 10 and lookups that find nothing (“void lookups”) against the limit of 2, both from RFC 7208. The count is the worst case: every term before “all” counted, as if no earlier one matched (terms after “all” are never reached, so they don’t count). Macros (%{…}) count as one lookup and aren’t expanded.
  • DKIM: keys at the selectors google, selector1, selector2, k1, s1, s2 and default, plus one you enter. For each key we read the type and length: RSA keys under 1024 bits fail (receivers must reject them, RFC 8301), 1024-bit keys get a warning because 2048 is recommended, and an empty key means the selector was revoked.
  • DMARC: the record at _dmarc.<domain>, with each setting in plain language: the policy (p), subdomain policy (sp), percentage (pct), report addresses (rua, ruf) and alignment (adkim, aspf). If a subdomain has no record of its own, we check its organizational domain (the registered domain, such as example.com for mail.example.com), where receivers look next. We work that out from a list of common public suffixes and hosting platforms (.co.uk, .com.au, github.io and others) rather than the full Public Suffix List. For a name registered under a suffix we don’t know, the report may show a parent’s policy as covering it; the finding says when that assumption is made.
  • MTA-STS, TLS-RPT and BIMI: whether the records exist and are well formed. The MTA-STS policy itself is a file on an HTTPS web server; we read only the DNS record that announces it.

Grading. Fail means mail is likely to be rejected, spoofable or misdirected as things stand. Warning means it works but something is weak, incomplete or close to a limit. MTA-STS, TLS-RPT and BIMI are optional, so a missing record shows as “Not set up (optional)” and isn’t counted as a warning or a failure. “Not checked” means a DNS query timed out; run the check again.

What it can’t tell you. A DNS check shows what a domain publishes, not whether a given message passes. SPF and DKIM results depend on the server that sent the message and the signature it carries, and DMARC needs one of them to pass for your domain (alignment). To see that for real mail, read your DMARC aggregate reports or the Authentication-Results header of a delivered message.

Worked example

Say the report for example.com reads example.com: 3 passed, 1 warning, 0 failed, with these checks:

  • MX: Pass. One record, 0 example-com.mail.protection.outlook.com, so mail is handled by Microsoft 365, and the server resolves.
  • SPF: Pass. v=spf1 include:spf.protection.outlook.com include:servers.mcsv.net ~all uses 2 of 10 DNS lookups (in this example both included records list only IP ranges) and ends in ~all.
  • DKIM: Pass. selector1 and selector2 each hold an RSA 2048-bit key.
  • DMARC: Warning. v=DMARC1; p=none; rua=mailto:dmarc@example.com is valid and sends reports, but p=none only monitors: spoofed mail still gets through.
  • MTA-STS, TLS-RPT, BIMI: Not set up (optional).

The fix that matters is DMARC. Read the aggregate reports for a few weeks; once Microsoft 365 and the newsletter service both pass with example.com, move to p=quarantine and then p=reject. MTA-STS and TLS-RPT are worth adding after that. (example.com is a name reserved for documentation; the records here are illustrations.)

Email authentication in brief

Anyone can put any address in the From line of an email. Three DNS records let receivers check it:

  • SPF lists the servers allowed to send mail for a domain. It checks the envelope sender (the bounce address), which the recipient doesn’t see.
  • DKIM adds a cryptographic signature to each message; the public key to verify it is published in DNS under a selector.
  • DMARC ties them to the From address people see. A message passes DMARC when SPF or DKIM passes for a domain that matches the From domain (alignment), and the policy tells receivers what to do with mail that fails.

Without an enforced DMARC policy, a criminal can send mail that shows your exact domain in the From line, the starting point for many business email compromise and phishing attacks. Large mailbox providers also expect it: Google’s email sender guidelines require SPF, DKIM and DMARC from anyone sending more than 5,000 messages a day to Gmail accounts.

Email authentication covers the domain. Filtering what arrives, from phishing to malware, is the job of a secure email gateway or the protection built into Microsoft 365 and Google Workspace, and security awareness training helps people spot what gets through.

Getting to DMARC enforcement

  1. Publish p=none with a rua address. Reports arrive daily from the large mailbox providers, as XML; a DMARC reporting service turns them into readable summaries.
  2. Find every sender. Reports list each source sending as your domain: your mailbox provider, marketing and CRM platforms, billing and ticketing systems, scanners. Some will be forgotten or unknown.
  3. Fix each one. Turn on DKIM signing with your domain at each service, and add SPF includes only where needed, watching the 10-lookup limit. Move bulk senders to a subdomain if SPF runs out of room.
  4. Enforce. Go to p=quarantine, then p=reject. pct lets you apply the policy to part of failing mail while you watch for problems.
  5. Lock down unused domains. A domain that sends no mail should publish a null MX, v=spf1 -all and a DMARC reject policy, so it can’t be spoofed either.