What is an SPF record?
SPF (Sender Policy Framework) is a TXT record that lists the servers allowed to send email for your domain. Receiving mail servers compare the sending server against that list. On its own, SPF doesn't stop spoofing of the visible From address; that's what DMARC adds on top.
The 10 DNS lookup limit
SPF evaluation may perform at most 10 DNS lookups (RFC 7208). Every include:, a, mx, ptr, exists and redirect counts, including those nested inside the providers you include. Go over 10 and SPF returns a permanent error, which means it stops protecting you. Startups often hit this after adding a CRM, a support desk and a marketing tool.
To get back under the limit, remove providers you no longer use, replace a and mx mechanisms with ip4:/ip6: ranges where possible, and send marketing email from a subdomain with its own SPF record.
A typical startup SPF record
Google Workspace plus a transactional email provider:
v=spf1 include:_spf.google.com include:sendgrid.net ~allEnding the record: -all vs ~all
"-all" (fail) tells receivers to reject unlisted senders. "~all" (softfail) marks them suspicious, and is common and acceptable when DMARC is enforcing. Never use "+all", which authorises every server, or "?all", which gives no protection.
Frequently asked questions
Can I have more than one SPF record?
No. A domain must have exactly one v=spf1 TXT record. Two or more cause a permanent error and SPF fails. Merge all senders into a single record.
Does SPF stop email spoofing?
Not by itself. SPF checks the hidden envelope sender, not the From address people see. Combine SPF and DKIM with a DMARC policy of quarantine or reject to stop spoofing of your visible domain.
What happens if I exceed 10 SPF lookups?
Receivers return a permerror, and most treat your SPF as failed. Legitimate email may then fail DMARC and land in spam or be rejected.
More free security tools
DMARC Checker
Check your domain's DMARC record instantly. See your policy (none, quarantine, reject), reporting addresses and exactly what to fix so attackers can't spoof your email.
OpenSubdomain Finder
Find a domain's subdomains from public Certificate Transparency logs. Spot exposed staging, admin and internal hosts before attackers do, without sending any traffic to the target.
OpenSSL Checker
Check any website's SSL/TLS certificate: validity, expiry date, issuer, covered hostnames (SANs), TLS version and cipher. Catch expiring or misconfigured certificates before users do.
Open