Skip to content
Dorian FINKEL
EmailDNSDMARCLessons learned · 2026 · 4 min read · Updated 9 October 2026

DMARC without breaking your mail: watch, then tighten

SPF, DKIM and DMARC stop people spoofing a domain, but a policy that is too strict too early also makes legitimate mail disappear. The method: publish in monitoring mode, read the reports, then tighten step by step.

01Three mechanisms, one goal

SPF lists the servers allowed to send for the domain, and applies to the envelope address (the one bounces go to), invisible to the reader. DKIM signs each message with a key published in DNS. DMARC ties both to the address visible in the From field: a message passes if it passes SPF or DKIM with a domain aligned with the displayed sender’s. Otherwise DMARC tells the receiver what to do with it.

02Start by watching

The p=none policy blocks nothing: it only asks mailbox providers to send aggregate reports (rua), usually daily. They show who sends on behalf of the domain, and whether those messages pass SPF and DKIM.

One SPF rule to know: evaluation must not exceed 10 DNS lookups (include, a, mx…). Every provider include uses some, and beyond that the result is an error.

Example · DNS
example.com.         TXT  "v=spf1 include:_spf.mx.example.net ~all"
_dmarc.example.com.  TXT  "v=DMARC1; p=none; rua=mailto:dmarc@example.com"

03Read the reports

Two to four weeks are enough to see every regular sender go by: the site’s form, notifications, replies. Every legitimate source must show up aligned. A failing source is either something missing from SPF or DKIM, or spoofing. Reports are XML: a reader (Cloudflare offers a free one) makes them legible.

The classic trap: replying from a personal mailbox with an address on the domain (“Send mail as”). The message leaves from the mailbox provider’s servers, signed with its own domain: neither SPF nor DKIM is aligned, and it fails DMARC. Either send through an authorised server that signs with the domain’s key, or don’t tighten.

04Tighten step by step

Once the reports are clean, move to p=quarantine (failing messages go to spam), watch again, then p=reject if everything stays clean.

On the SPF side, many practitioners keep ~all even with DMARC at reject: with -all, some receivers reject on the SPF failure alone, before even looking at a valid DKIM signature, which loses forwarded messages.

A subdomain that never sends mail, or a whole domain, is protected with v=spf1 -all and p=reject. The new version of DMARC (RFC 9989, May 2026) remains compatible with existing v=DMARC1 records.

Example · DNS
_dmarc.example.com.  TXT  "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com"

05DNSSEC on top

DNSSEC signs the zone: an attacker can no longer forge DNS answers, SPF, DKIM and DMARC records included, towards resolvers that validate signatures.

06Verify

The headers of a received message (Authentication-Results) give the result of each check: spf=pass, dkim=pass, dmarc=pass. On the DNS side, a few queries are enough to read back what is published; the DKIM selector appears in the DKIM-Signature header (s=).

Example · Bash
dig +short TXT _dmarc.example.com
dig +short TXT example.com | grep spf
dig +short TXT selector._domainkey.example.com   # DKIM public key

Key takeaways

  • DMARC requires SPF or DKIM aligned with the displayed address.
  • Start at p=none and read the reports before blocking anything.
  • “Send mail as” from a third-party mailbox fails DMARC.
  • Tighten step by step: quarantine, then reject; ~all remains a sensible choice.
  • SPF: 10 DNS lookups at most.

Documentation-reserved domains.

Official sources