Free SPF record checker
SPF record checker
Check a domain's SPF record, count its DNS lookups against the limit of 10, and see every include it pulls in.
Finds the faults that quietly break SPF: too many lookups, two records, includes that no longer exist, and an all that lets anyone send. Public DNS lookups only.
What SPF does
SPF is a list, published in your DNS, of the servers allowed to send email for your domain. Receiving servers compare the server that delivered a message with that list. On its own, SPF checks a hidden sender address rather than the From line people see, so it needs DMARC to stop spoofing. Together they do.
An SPF record is a TXT record on the domain itself. For a domain that sends only through Microsoft 365:
v=spf1 include:spf.protection.outlook.com -all
For Google Workspace, the include is include:_spf.google.com.
The 10-lookup limit
Every include, a, mx, ptr, exists and redirect makes the receiving server do a DNS lookup, and so do the ones inside each include. The SPF standard (RFC 7208) allows 10 in total. At 11, receivers treat the whole record as broken, so even your real email fails SPF.
This is the most common SPF fault we see. It creeps up as a business adds a mailing tool, a CRM, a helpdesk and an accounts package, each with its own include. The breakdown in the result shows where every lookup comes from.
To get back under 10: remove services you no longer use, replace includes with the ip4 and ip6 ranges where a provider publishes fixed ones, or send marketing email from a subdomain with its own SPF record.
How the record should end
| Ending | Meaning | Verdict |
|---|---|---|
-all | Mail from any other server fails | Strongest |
~all | Mail from any other server soft-fails | Fine with DMARC at quarantine or reject |
?all | Neutral: no opinion | No protection |
+all or all | Every server in the world passes | Dangerous: change it now |
Other faults this check finds
- Two SPF records. A domain may publish only one. With two, SPF fails. Merge them.
- An include that no longer exists. A provider changed its address, or you left them. Receivers treat this as broken too.
- ptr. Slow and discouraged by the standard. Replace it.
- No SPF record. Receivers cannot check your senders at all.
SPF is one of three records that work together. Check the other two with our DMARC checker and the full Domain Health Check, and see our DKIM, DMARC and SPF guide for Microsoft 365.
Common questions
Should SPF end in -all or ~all?
Either works once DMARC is at quarantine or reject, because DMARC makes the final decision. -all is stricter. Never use +all or a bare all, which lets anyone send as your domain.
What counts as a DNS lookup in SPF?
Each include, a, mx, ptr, exists and redirect, including the ones inside every include. ip4, ip6 and all do not count. The limit is 10.
How do I fix too many SPF lookups?
Remove services you no longer use, replace includes with ip4 and ip6 ranges where the provider publishes fixed ones, or move bulk email to a subdomain with its own SPF record.
Can a domain have two SPF records?
No. Two records make SPF fail. Combine them into one record with all the includes and a single all at the end.
Does SPF stop people spoofing my domain?
Not on its own. SPF checks a hidden sender address, not the From line people see. DMARC ties the two together, so you need both.
SPF over the limit, or not sure?
We untangle SPF, DKIM and DMARC for every service that sends email as you, without breaking the ones you rely on. We reply within one working day.