Inboxlogy Free Tools
SPF Record Checker
Validate your SPF record in seconds โ syntax, the all policy, and whether you've blown past the 10-lookup limit that silently breaks SPF.
How it works
Enter your sending domain
Use the domain in your envelope sender, the one SMTP carries in MAIL FROM. For many sending platforms that is a subdomain or a custom return-path, not the domain in your visible From header. Check both if they differ.
Record is fetched and parsed
We pull the TXT records at that name, pick the one starting with v=spf1, and walk every mechanism in order: ip4, ip6, a, mx, include, exists, redirect, and the final all qualifier.
Lookup count and verdict
Every DNS-querying mechanism is counted recursively, nested includes included, so you see the real total against the limit of 10. You also get the all qualifier, duplicate record warnings, and any syntax that would return a permanent error.
Why SPF breaks at 10 DNS lookups
SPF is a single TXT record on your domain that lists who may send mail using it. A receiver reads it and evaluates each mechanism left to right until one matches. Some mechanisms cost a DNS query: include, a, mx, ptr, exists, and the redirect modifier. RFC 7208 caps those at 10 per evaluation. The cap exists to stop SPF being used to amplify DNS traffic at a third party.
Cross the cap and the result is permerror, not fail. Most receivers, Google and Microsoft included, treat permerror as if no usable SPF exists, so DMARC loses its SPF leg and alignment has to come from DKIM alone. The count is recursive: _spf.google.com is one include that pulls in three more, so Google Workspace alone costs four. RFC 7208 also advises failing after two void lookups, which includes any mechanism pointing at a hostname that no longer resolves.
Common mistakes
Publishing two SPF records
A domain may have exactly one v=spf1 TXT record. Two records make the evaluation a permerror and both get ignored. When you add a new sending platform, merge its include into the existing record rather than publishing a second line.
Using +all or ptr
+all tells receivers that anyone may send as your domain, which defeats the point of SPF. The ptr mechanism is deprecated in RFC 7208 because it is slow and unreliable, and some receivers skip it. Remove both and list ip4 ranges or includes instead.
Forgetting the sending subdomain
SPF does not inherit. A record on example.com does nothing for mail.example.com or send.example.com. If your platform sends with a custom return-path subdomain, that exact name needs its own SPF record, or the check returns none and DMARC has nothing to align.
Fixing SPF and ignoring alignment
SPF can pass while DMARC still fails. DMARC requires the SPF-authenticated domain to align with the From header domain. Platforms using their own bounce domain pass SPF for themselves, not for you, so you need DKIM signed with your domain to align.
Frequently asked questions
What happens if my SPF record has too many lookups?
Receivers return permerror and treat your domain as unauthenticated for SPF. The record is not partially evaluated; the whole check fails, including senders listed before the limit was hit. If DMARC is published and DKIM also fails or misaligns, the message is handled by your p= policy, so quarantine or reject. Remove or flatten includes to get back under 10.
Should my SPF record end in -all or ~all?
-all, once you are confident the record is complete. Hard fail tells receivers to discard unauthorized mail outright. ~all is a softfail, which asks them to accept and mark it, and is the safer setting while you are still discovering legitimate senders. ?all is neutral and achieves nothing. Never publish +all.
Does SPF stop people spoofing my domain?
Not on its own. SPF validates the envelope MAIL FROM domain, which recipients never see. An attacker can pass SPF on their own domain and still put your name in the visible From header. Stopping that needs DMARC, which requires the authenticated domain to align with the From domain, plus a policy of p=quarantine or p=reject.
How long does an SPF change take to work?
As long as the record's TTL, typically 300 to 3600 seconds. DNS does not push changes; resolvers simply stop serving the old answer when their cached copy expires. Lower the TTL to 300 before planned edits. To confirm a change immediately, query one of the domain's authoritative nameservers directly instead of a public resolver.
Can SPF flattening fix the lookup limit?
Yes, but it needs maintenance. Flattening replaces includes with the literal ip4 and ip6 ranges they currently resolve to, dropping your lookup count to zero for those sources. The problem is that providers change IP ranges without telling you, and a stale flattened record starts failing legitimate mail. Re-check it on a schedule or use a service that updates it automatically.