What it does
SPF (Sender Policy Framework) is a TXT record that lists which servers may send mail using your domain. Receivers check the sending IP against that list during SMTP. This tool parses the record, resolves its mechanisms and shows the failure modes that silently break authentication.
How it works
The record is read from DNS as a TXT value beginning with v=spf1. Exactly one such record may exist. Two records are not merged: receivers treat the result as permerror, which usually means no SPF protection at all.
Mechanisms are evaluated left to right and the first match decides the result. Each has a qualifier: + for pass (the default when omitted), - for fail, ~ for softfail and ? for neutral. ip4 and ip6 match literal addresses or CIDR blocks; a and mx resolve to addresses using DNS; include expands another domain's policy; exists tests for a name; all matches everything.
The protocol allows at most ten DNS lookups caused by include, a, mx, ptr, exists and redirect. Each include can itself contain includes, so nested providers consume the budget quickly. Exceeding ten is a permerror, and many receivers then treat the mail as unauthenticated.
A record ending in +all or all authorises the entire internet to send as your domain. It is common in misconfigured defaults and is effectively an invitation to spoofing. ~all is a soft failure: receivers may still accept the message but should treat it with suspicion. -all is the intended strict policy once the list is correct.
SPF authenticates the envelope sender's domain, not the visible From header. That is why DMARC exists: it checks alignment between the two and gives receivers a policy for failures.
When to use it
- Verify a new mail provider's include mechanism before switching production traffic.
- Find the lookup that pushes a domain over the ten-lookup limit after adding one more vendor.
- Catch a +all or ?all record left over from an old template.
- Audit acquired domains that were never configured for email.
Glossary
- SPF
- A TXT policy listing the hosts allowed to send mail for a domain.
- Mechanism
- A rule such as ip4, include, a or mx that SPF evaluates against the sending IP.
- Qualifier
- The +, -, ~ or ? prefix that says what a matching mechanism means.
- DNS lookup limit
- The ten-lookup cap SPF places on mechanisms that require DNS resolution.
- Envelope sender
- The MAIL FROM address used in SMTP, which SPF checks — not necessarily the From header.
- Permerror
- A permanent SPF evaluation error, often caused by duplicate records or too many lookups.
Frequently asked questions
Is a passing SPF enough for deliverability?+
No. SPF only authenticates the envelope domain. DMARC alignment, DKIM signing, reputation, content and list hygiene all matter. Many receivers require DMARC to pass, not just SPF.
Why do I have two SPF records?+
Usually a provider template added one without checking. Two v=spf1 records cause permerror. Merge them into a single record and keep the mechanisms you actually need.
How do I stay under ten lookups?+
Count every include, a, mx, ptr, exists and redirect, including lookups inside included records. Remove unused providers, replace a and mx with explicit ip4/ip6 blocks where stable, and consider SPF flattening — but re-check it when providers change.
Does SPF cover subdomains?+
Only if they have their own record or the policy uses mechanisms that match them. SPF does not inherit automatically from the parent domain, although DMARC's sp tag can set subdomain policy.
What should the record end with?+
Use -all once every legitimate sender is listed. Use ~all only as a transitional state while you monitor reports. Never use +all.
API & MCP
The same result envelope is available over REST and MCP. Replace the sample value with your own target.
curl "https://100www.dev/api/v1/tools/spf-checker?d=github.com"Shareable result
https://100www.dev/tools/spf-checker?d=github.com

100www engineering
EditorialReviewed by Steve · · Report an error
Tested from the 100www probe network; results vary by location and network.


