Problem 1: more than one SPF record
A domain may publish only one TXT record starting with v=spf1. Two records cause a permanent error. Merge them:
v=spf1 include:_spf.google.com -all
v=spf1 include:sendgrid.net -all
→ v=spf1 include:_spf.google.com include:sendgrid.net -allTry it Validate an SPF record
Full tool: SPF Record Checker
Problem 2: too many DNS lookups
SPF allows at most 10 mechanisms that require DNS lookups, counted across every nested include. Above that, receivers return permerror and treat SPF as failed. To get back under:
- Remove includes for services you no longer use.
- Replace
aandmxwith the exactip4:ranges if they rarely change. - Move bulk or marketing mail to a subdomain with its own SPF record.
- Avoid manual "flattening" into IP lists unless you can keep them updated automatically; providers change their ranges.
Problem 3: a weak ending
+all authorizes every server on the internet; ?all makes no statement. Use ~all (soft fail) while you confirm every sender, then -all. With DMARC enforced, either works; -all is stricter.
Problem 4: legitimate mail fails SPF
Find the failing service in DMARC reports or message headers, then add the include its documentation specifies. SPF checks the envelope sender (Return-Path), so some services also need a custom return-path or bounce domain on your domain to align for DMARC.
Syntax mistakes
include: example.comwith a space is invalid.ip4:takes addresses or CIDR ranges, not hostnames.- Records over 255 characters must be split into several quoted strings in the same record; most DNS panels do this automatically.
ptris discouraged by RFC 7208; replace it.
Verify the fix
Re-run the checker, confirm one record and 10 or fewer lookups, then send a test message and look for spf=pass in the Authentication-Results header.
See the whole picture
Run the full Recon Snapshot to check DNS, email authentication, certificates, hosting, exposed services, security headers and lookalike domains together, with a plain-English fix for every finding.
Run a full snapshotReferences
About this guide
Drafted with AI assistance and checked against the primary sources listed above; its embedded tool was tested against live domains before publication. It was last checked on November 25, 2026; standards and provider requirements change, so confirm critical settings against the references. Found an error? Tell us.
Related guides
- SPF vs. DKIM vs. DMARC: What Each One DoesSPF authorizes servers, DKIM signs messages, DMARC ties both to the From address and sets a policy. See how they work together, with a free checker.
- How to Fix Common DMARC ProblemsFix the most common DMARC problems: legitimate mail failing, no reports arriving, stuck at p=none, forwarding failures and subdomain gaps. Step-by-step.