Lab note · Email authentication
SPF and DMARC mistakes I keep seeing on small-business domains
When I look at small-business domains from the outside, the same email authentication mistakes come up again and again. None of them are exotic. Most come from someone adding a record for a new tool without looking at what was already there. The result is that real mail lands in spam, and fake mail claiming to be from the business gets through.
Everything below can be checked with free command-line tools. No business is named here; these are patterns, not case studies.
A quick refresher
- SPF is a TXT record on the domain listing which servers may send mail for it.
- DKIM adds a signature to each message, checked against a public key in DNS.
- DMARC is a TXT record at
_dmarcthat tells receivers what to do when a message fails, and where to send reports.
To see what a domain publishes:
dig +short example.co.uk TXT | grep -i spf
dig +short _dmarc.example.co.uk TXT
1. Two SPF records
This is the most common one. The business moves to a new mail provider, or adds a newsletter tool, and the setup guide says "add this TXT record". So now there are two records starting with v=spf1.
The SPF standard is clear: there must be only one. With two, receivers return a permerror, which means SPF is treated as broken for every message, including the genuine ones. It looks fine in the DNS panel because both records are "there".
Fix: merge them into one record with all the includes, and one ending:
v=spf1 include:_spf.provider-one.example include:mail.tool-two.example -all
Keep an eye on the 10 DNS lookup limit. Every include, a, mx and redirect counts, and nested includes count too. Go over 10 and you get a permerror again.
2. Two DMARC records
Same story, different record. Someone adds a DMARC record from one guide, then later a second from a reporting service. With more than one DMARC record at _dmarc, receivers are told to ignore DMARC entirely. Your policy, however strict, does nothing.
Fix: one record only. Combine the reporting addresses into the single rua= tag, separated by commas.
3. SPF that does not include the real mail provider
The SPF record was written years ago for an old host. The business now sends through a different provider, but nobody updated SPF. Or SPF covers the main mailbox but not the booking system, invoicing tool or website contact form, which all send "from" the domain.
The symptom is genuine invoices and booking confirmations going to spam, and nobody knowing why.
Fix: make a list of everything that sends mail as the domain. Check real message headers (the Authentication-Results line) from each one. Add the missing senders, and remove senders the business no longer uses. A long-dead include is just extra attack surface.
4. DMARC at p=none forever
p=none is the right place to start. It means "do nothing, just send me reports", so you can see who is sending as you without breaking anything. The mistake is never moving on. Many domains publish p=none with no rua= address at all, so nobody is even reading reports. That record gives no protection and no information.
Fix: a calm, staged move:
p=nonewith a reporting address. Read the reports for a few weeks.- Fix SPF and DKIM for every genuine sender you find.
p=quarantine, optionally withpct=to start with a share of mail.p=rejectonce reports show only genuine mail passing.
5. Softfail used as a comfort blanket
Many records end in ~all (softfail) because a guide said it was "safer". On its own that is fine while DMARC does the enforcing. The problem is when there is no DMARC record at all, so ~all is the only signal and receivers treat it as a weak hint.
Domains that send no mail
Parked and spare domains are spoofing targets too. If a domain never sends mail, say so: v=spf1 -all, a null MX (MX 0 .) and p=reject in DMARC.
The short checklist
- Exactly one SPF record, under 10 lookups, listing every real sender.
- DKIM switched on at every provider that supports it.
- Exactly one DMARC record, with a reporting address someone actually reads.
- A plan, with dates, to move from none to quarantine to reject.