Free · no sign-up
SPF check: free SPF record lookup and validator
Look up a domain’s SPF record and find problems that break email authentication — multiple records, too many DNS lookups and unsafe “all” policies.
How the SPF checker works
We fetch the TXT records published at the domain, find the one that starts with v=spf1, and check it the way a receiving mail server would:
- exactly one SPF record exists;
- every mechanism and modifier is valid (
ip4,ip6,include,a,mx,exists,redirect,all); - the record stays within the 10 DNS lookup limit, following nested includes;
- the record ends with a safe
~allor-allpolicy.
How to do an SPF lookup without tools
An SPF lookup is a DNS query for the domain's TXT records. On macOS or Linux run dig TXT example.com +short; on Windows run nslookup -type=TXT example.com. Look for the line that starts with v=spf1. A command-line lookup shows the record but does not follow nested includes or count DNS lookups, which is what the checker above does for you.
Common SPF errors and how to fix them
- Two SPF records: merge them into one, keeping every
include. - More than 10 DNS lookups: remove services you no longer use, or replace includes with
ip4/ip6ranges your provider documents. - Missing sender: if mail from a service fails SPF, add that service's
include. +allor noall: end the record with~allor-all.
An example SPF record
v=spf1 include:_spf.example-provider.com ip4:192.0.2.10 ~all
This allows the provider’s servers and one IP address to send for the domain, and asks receivers to treat everything else with suspicion. SPF works best together with DKIM and DMARC — see our plain-English guide to SPF, DKIM and DMARC.
Set up SPF automatically
When you add a sending domain to InboxRoads, we generate the exact SPF, DKIM and DMARC records for you and check them automatically — no guesswork.
Frequently asked questions
SPF (Sender Policy Framework) is a DNS TXT record that lists the servers allowed to send email for your domain. Receiving mail servers check it to detect forged senders.
SPF allows at most 10 mechanisms that need a DNS query — include, a, mx, ptr, exists and redirect — counted across all nested includes. If a record needs more, SPF returns a permanent error and authentication fails.
"~all" (soft fail) asks receivers to accept but mark mail from unlisted servers; "-all" (fail) asks them to reject it. Both are acceptable once your record is complete. Never use "+all", which lets anyone send as your domain.
No. A domain must have exactly one SPF record. If you use several services, combine their includes into a single record.
Enter your domain above to look up and validate the record. Then send a test email to a Gmail address, open it, choose "Show original" and confirm it says SPF: PASS. Both checks together show that the record exists and that your real sending servers are covered.
Check SPF here, then run the DKIM checker with your selector (for example "s1" or "google"). The quickest end-to-end test is a real email: the message headers in Gmail or Outlook show the SPF, DKIM and DMARC result for that exact message.
Verify your whole list, not just one address
Upload a CSV and InboxRoads checks every address, removes duplicates for free and gives you clean files to download.