SPF Checker
- DNS-Based Scan
- Non-Intrusive Analysis
A free SPF record checker
This SPF checker is free and needs no sign-up: enter a domain, pass a quick bot check and read the result on the page, with a report by email only if you want one. It finds the domain's SPF record and tests it for the problems that make SPF fail: no record, more than one record, more than 10 DNS lookups once every include is followed, +all or ?all, and the deprecated ptr mechanism. The same scan grades DKIM, DMARC and the rest of the domain's email security.
An SPF (Sender Policy Framework) record is a DNS TXT record, starting with v=spf1, that lists the servers allowed to send mail for a domain. Receiving servers compare the sending server's IP address with that list and get a result such as pass, fail or softfail (RFC 7208).
This SPF checker reads the record at the domain, checks it for the problems below and runs the full Email Security scan, so you also see DKIM, DMARC, MX, DNSSEC, MTA-STS, TLS-RPT and BIMI results. It reads public DNS only: it does not send mail or change records.
What the SPF checker tests
- One SPF record
- Finds the TXT records at the domain that start with v=spf1. None means receivers get the result none; more than one means permerror, so SPF fails for every message.
- The 10 DNS lookup limit
- Counts the include:, a:, mx:, ptr:, exists: and redirect= terms in the record and in every record its include: and redirect= terms point to, against the limit of 10. It warns at 9 and 10, where one more sender would break SPF, and fails the record above 10, where receivers return permerror.
- The all qualifier
- Reads how the record treats servers it does not list: -all (fail), ~all (softfail), ?all (neutral) or +all (pass). +all lets any server pass, and ?all gives no protection.
ptr- Flags the ptr mechanism, which RFC 7208 says not to publish.
- Void lookups
- Not tested. The checker does not count void lookups (lookups that return no answer), which receivers limit to two.
How it compares with other free SPF checkers
| Tool | Best for | Compared with this checker |
|---|---|---|
| Vigilbase SPF Checker | Checking SPF and the rest of a domain's email security in one scan, with a fix for each finding and a free API for scripts and agents. | Gives the total lookup count rather than a tree of includes, does not count void lookups and does not test a sending IP against the record. |
| MxToolbox | A fast SPF lookup next to blocklist, MX and other DNS checks. | Checks your mail server IPs against public blocklists, which this checker does not do, and sells ongoing monitoring. |
| dmarcian SPF Surveyor | Untangling a long chain of includes. | Expands each include into a tree, so you can see which sender uses which lookups. |
| Red Sift and EasyDMARC | Plain-language explanations of each mechanism. | Draw the include tree and count void lookups, which this checker does not count. |
| Kitterman SPF validator | Testing a record before you publish it. | Validates a draft record and tells you whether a given IP address would pass, which this checker does not test. |
How to read the SPF result
- Status and score
- GOOD, WARNING, BAD or MISSING, with a score out of 100. The next section lists what costs points.
- SPF records published
- Should be 1. With 2 or more, receivers return permerror until you merge them into one record.
- DNS lookups, including nested records
- The DNS lookups the record costs, out of 10, counting the lookups inside every include and redirect as receivers do. Counting stops once it passes 10, so a number above 10 means at least that many.
- Default for other servers
- The all mechanism that ends the record. With no all mechanism and no redirect=, servers the record does not list get neutral, as with ?all.
- Published record
- The SPF record as DNS returned it. If the domain publishes more than one, each is shown, separated by |.
- Analysis and What to fix
- Each problem the check found, and the DNS change that fixes it.
- Rest of the email security report
- The domain's A+ to F email security grade, with DKIM, DMARC, MX, DNSSEC, MTA-STS, BIMI and TLS-RPT. SPF carries 20 of the 100 points.
How the SPF check scores the record
+all- Costs 50 points: any server on the internet passes SPF.
?all- Costs 30 points: neutral gives no protection.
~all- Costs 10 points: softfail is weaker than -all.
- More than 10 DNS lookups
- The record scores at most 30 and is rated bad, because receivers return permerror. 9 or 10 lookups cost 10 points and make the record a warning. The count includes the lookups inside included and redirected records.
ptr- Costs 10 points: RFC 7208 says not to publish it.
- More than one SPF record
- The record scores 30, because receivers return permerror.
Common SPF errors and how to fix them
No SPF record
Without SPF, receivers get the result none and cannot tell which servers may send for the domain.
Fix: Publish one TXT record at the domain that lists your mail services and ends in ~all or -all. If the domain sends no mail, publish v=spf1 -all.
v=spf1 include:_spf.example.net ~all
More than one SPF record
A domain must not publish more than one SPF record; receivers return permerror and SPF fails (RFC 7208, sections 3.2 and 4.5). It often happens when a new mail service is set up with its own record.
Fix: Merge the mechanisms into a single record and delete the others.
v=spf1 include:_spf.example.net include:mail.example.org -all
Too many DNS lookups
include, a, mx, ptr, exists and redirect each cost a DNS lookup, and SPF allows 10 in total, counting the lookups inside included records. Over the limit, receivers return permerror (RFC 7208, section 4.6.4).
Fix: Remove services you no longer use, or move some senders to a subdomain with its own SPF record. Replacing includes with ip4 and ip6 ranges also works, but you must then update the record whenever the provider's ranges change.
+all lets anyone send
+all matches every server, so any host on the internet passes SPF for the domain.
Fix: Replace it with -all, or with ~all while you confirm every sender is listed.
?all gives no protection
?all returns neutral for unlisted servers: the domain makes no statement about them (RFC 7208, section 2.6.2).
Fix: Use -all, or ~all while you test.
~all instead of -all
~all (softfail) is a weak statement that unlisted servers are probably not authorized. Receivers should not reject mail on softfail alone, but may treat it with more suspicion (RFC 7208, section 8.5).
Fix: Once DMARC reports show every legitimate sender passing, change ~all to -all.
Deprecated ptr mechanism
RFC 7208 says ptr should not be published: it is slow, less reliable when DNS errors occur and puts a heavy load on the reverse DNS servers (section 5.5).
Fix: Replace ptr with ip4, ip6, a or include for the servers it was meant to cover.
SPF results receivers return
pass- The sending server is authorized for the domain.
fail- The server is not authorized, which is what -all returns. Receivers may reject the message.
softfail- The server is probably not authorized, which is what ~all returns. Receivers should not reject on this alone.
neutral- The domain makes no statement about the server, which is what ?all returns.
none- The domain publishes no SPF record.
temperror- A temporary DNS error during the check. A later retry may succeed.
permerror- The record could not be interpreted, for example because there are two SPF records or more than 10 lookups. It takes a DNS change to fix.
What to do about the results
- 1
Fix permerror first
More than one SPF record, or more than 10 DNS lookups, makes SPF fail for every message. Merge the records, or remove senders you no longer use, before anything else.
- 2
Remove +all and ?all
Both let mail from unlisted servers through. End the record with ~all while you confirm every sender is listed, then -all.
- 3
Check DKIM and DMARC
SPF alone does not stop spoofing of the From address people see. Read the DKIM and DMARC results in the same report, or open the DMARC checker.
- 4
Run the check again
After your DNS host publishes the change, scan again to confirm the record and the lookup count.
Sources
More email authentication tools
- DMARC CheckerCheck a domain's DMARC policy and reporting address.
- DKIM CheckerFind DKIM public keys under common selectors.
- BIMI CheckerCheck a BIMI record and its DMARC requirement.
- MTA-STS CheckerCheck the MTA-STS policy, its mode and TLS-RPT.
- SPF Record GeneratorBuild an SPF record and count its DNS lookups.
- DMARC Record GeneratorBuild a DMARC record with the right tags.
- Email Security AnalyzerGrade every email authentication record at once.
Beyond DNS records
These records stop other people sending mail as your exact domain. They do not stop phishing from lookalike domains or from compromised accounts, which send authenticated mail. Vigilbase OS connects the security tools you already pay for, including Microsoft 365, Google Workspace, Proofpoint and Mimecast. The Vigil agent investigates high-severity incidents and Vigilbase analysts handle exceptions.