Cybersecurity · Email

Email Security Beyond Spam Filters: Auditing SPF, DKIM and DMARC

Your domain has a DMARC record, so the box is ticked. But if the policy says "none", you have asked the world to watch spoofed mail arrive, not to stop it.

$ play · 7 min · AI narrated

In October 2023 Google announced that, from February 2024, anyone sending more than 5,000 messages a day to Gmail addresses would need to authenticate their mail with SPF, DKIM and DMARC. Yahoo set similar rules for the same date. In November 2025 Google said it was ramping up enforcement, with non compliant mail facing temporary and permanent rejection.

Many organisations responded by publishing a DMARC record and moving on. That met the requirement. Both providers accept a minimum policy of "none". But a policy of none asks receivers to take no particular action on failing mail, leaving spoofed mail to their normal filtering and simply reporting it. It is a monitoring setting, not a defence.

What the three controls do

SPF (Sender Policy Framework) is a DNS record listing the servers allowed to send mail for a domain. DKIM (DomainKeys Identified Mail) adds a digital signature to each message, checked against a public key published in DNS. Neither, on its own, protects the "From" address that people actually see.

DMARC (Domain based Message Authentication, Reporting and Conformance) closes that gap. It checks that the visible From domain matches, or "aligns with", the domain that passed SPF or DKIM. It then tells receivers what to do when a message fails: nothing (p=none), send it to spam (p=quarantine) or refuse it (p=reject). It also asks receivers to send daily aggregate reports showing who is sending mail in the domain's name. In May 2026 RFC 9989 replaced the original specification on the standards track, dropping the pct tag and adding an np tag for non existent subdomains.

Why spoofing still works

Stuck at none

Moving to enforcement means finding every legitimate sender first: the marketing platform, the HR system, the invoicing tool, the payroll provider. That takes effort, and nobody wants to be blamed for blocking real mail. So the record stays at none for years.

Reports nobody reads

DMARC reports arrive as XML files. Without a tool or an owner, they pile up in a mailbox, or the record has no reporting address at all.

Forgotten domains

Old brand names, campaign domains and country domains often have no records. Attackers can spoof any of them.

What DMARC cannot do

DMARC protects your own domain and its subdomains. It does not stop lookalike domains, a display name that says "Chief Executive" over an outside address, or mail sent from a genuinely compromised account. It is one layer, not the whole answer.

The gap is rarely technology. It is ownership.

What good looks like

Every domain the organisation owns is listed, with an owner. Each sending domain has SPF and DKIM, and both align with the From domain. DMARC reports go to a monitored tool, and someone reviews them. The policy moves from none to quarantine and then to reject, in steps, as legitimate senders are fixed. The UK National Cyber Security Centre calls a reject policy on all domains the best way to prevent spoofing. Domains that send no mail are locked down with, at minimum, an SPF record of v=spf1 -all and a DMARC policy of reject, and ideally an empty DKIM record and a null MX record. This is not a new idea: US federal agencies were required to reach reject on their domains by October 2018 under CISA's Binding Operational Directive 18 01. New email services go through change control, so authentication is ready before launch.

What auditors should test

1. Look up the records yourself

These are public DNS records, so no access is needed. Run dig TXT _dmarc.example.com and dig TXT example.com, or use a reputable online lookup. Note the DMARC policy (p), the subdomain policies (sp and np) and the reporting address (rua).

2. Cover every domain

Get the domain list from the registrar, not from memory. Check each one, including domains that send no mail.

3. Check that reports are used

Ask to see the latest DMARC reports and the last action taken because of them. An unread mailbox is a finding.

4. Test SPF quality

The SPF standard caps a record at ten DNS lookups, and a record that exceeds the cap returns a permanent error, so SPF cannot pass. Records that end in "?all" or "+all" give weak or no protection.

5. Review the path to reject

If the policy is still none, ask for the plan, the owner and the target date. Years at none with no plan is a governance issue, not a technical one.

Four questions for leadership

SPF, DKIM and DMARC are not new, and they are not expensive. The gap is rarely technology. It is ownership, and the patience to move from watching to blocking. Few security controls can be checked from outside in minutes, which makes these a good place to start.

References and further reading

  1. Google, New Gmail protections for a safer, less spammy inbox (October 2023)
  2. Google, Email sender guidelines and Email sender guidelines FAQ
  3. Yahoo, Sender best practices
  4. IETF, RFC 9989 Domain Based Message Authentication, Reporting, and Conformance (DMARC) (May 2026)
  5. IETF, RFC 7208 Sender Policy Framework (SPF) and RFC 6376 DomainKeys Identified Mail (DKIM) Signatures
  6. UK NCSC, Reject spoof emails, part of the Email security and anti spoofing collection
  7. GOV.UK, Protect domains that do not send email
  8. CISA, Binding Operational Directive 18 01: Enhance Email and Web Security
Muhammad Asim Minhas IT audit and information security professional. CISSP, CISM, CISA. This is a personal article; views are my own and do not represent my employer. Back to portfolio · Take the AI readiness check · LinkedIn