Tools
SPF Checker
SPF (Sender Policy Framework) lists the servers allowed to send email for a domain. Receivers compare the connecting IP with the SPF record. This tool parses the record and highlights the parts that usually break: too many lookups, a permissive all qualifier, or missing includes.
Run the check
Enter a domain.
What you get
- The raw SPF record and every mechanism, decoded.
- The all qualifier and what it means for unauthorised senders.
- Includes and redirect targets.
- An estimated DNS lookup count against the limit of 10.
How SPF is evaluated
The receiving server takes the domain from the envelope sender, fetches its TXT records and looks for one that starts with v=spf1. It then evaluates the mechanisms from left to right. The first mechanism that matches decides the result; nothing after it is read.
An include mechanism restarts the evaluation with another domain's record. That is how a provider authorises its own sending infrastructure: the customer publishes include:_spf.provider.example, and the provider keeps the IP ranges current. The include result is pass only if the included domain returns pass; a neutral or softfail inside an include does not authorise the sender.
The 10-lookup limit
RFC 7208 limits a single SPF evaluation to 10 DNS-querying mechanisms: include, a, mx, ptr, exists and redirect. Nested includes count toward the same budget, so a chain of providers can exhaust it without any single record looking large.
This checker counts the mechanisms it can see and flags records that are close to the limit. Exceeding it produces a permerror, and a permerror is not a pass: receivers that enforce DMARC will treat the message as unauthenticated. Flattening a record into static ip4 and ip6 entries removes the lookups but goes stale when the provider changes ranges, so it needs its own refresh process.
Qualifiers and results
A qualifier in front of a mechanism decides what a match means. With no qualifier the default is pass.
- + (pass): the host is authorised.
- - (fail): the host is explicitly not authorised.
- ~ (softfail): probably not authorised; receivers may flag but usually accept.
- ? (neutral): no assertion either way.
- all on its own matches every sender that reached it, which is why it normally sits last.
Common SPF mistakes
Two v=spf1 records at the same name are the most common failure. RFC 7208 allows exactly one, and receivers return permerror when they find two, which is worse than having none. The fix is to merge the mechanisms into a single record.
The second most common is authorising a domain that does not publish SPF. include:example.com where example.com has no v=spf1 record is a permerror, not a pass. The third is forgetting IPv6: a record full of ip4 entries does nothing for a sender that connects over IPv6.
SPF alone does not stop spoofing
SPF authenticates the envelope sender, not the visible From header. A message can pass SPF for a bounce domain while displaying your address in From. That gap is exactly what DMARC closes, by requiring the authenticated domain to align with the From domain.
Check the SPF record here, then check DMARC. A domain with a correct SPF record and no DMARC record still has no published instruction for receivers when authentication fails.
Frequently asked questions
What is SPF?
SPF is a TXT record that starts with v=spf1. It lists the IP addresses and services authorised to send email for the domain.
What do -all, ~all, ?all and +all mean?
Fail, softfail, neutral and pass. Use -all when the list is complete and you want unauthorised senders rejected. ~all is a softer signal, ?all is neutral, and +all effectively disables SPF protection.
Why is the 10-lookup limit important?
RFC 7208 allows at most 10 DNS-querying mechanisms and modifiers per SPF check. Going over causes a permerror, and receivers may stop treating the record as valid protection.
Does SPF alone stop spoofing?
No. SPF checks the envelope sender or HELO identity, not the visible From header. DMARC links SPF or DKIM to the From domain and tells receivers what to do when both fail.
Can I have more than one SPF record?
No. Multiple v=spf1 records are invalid. Merge them into one record and keep each sender service as an include or an ip4/ip6 mechanism.
What does permerror mean?
The record is syntactically valid DNS but invalid SPF: two v=spf1 records, too many lookups, or an include that does not resolve to an SPF record. Receivers cannot evaluate it, so the message is unauthenticated.
Does SPF check the From header?
No. SPF checks the envelope sender, the domain used in MAIL FROM during the SMTP conversation. DMARC is the standard that ties authentication to the visible From domain.
Should the record end in -all or ~all?
-all is the stronger choice once every legitimate sender is listed. ~all is a migration state: it marks unauthorised mail as softfail instead of rejecting it, which is useful while you are still discovering senders.
Why is my provider's include not enough?
An include only authorises the domains the provider publishes. If you also send from a CRM, a helpdesk or a transactional service, each one needs its own include or IP range in the same record.