Skip to content

SPF Checker

Free, with no sign-up. Look up the SPF record a domain publishes and test it for the errors that make SPF fail or let anyone send: duplicate records, too many DNS lookup terms, +all and ?all, and the deprecated ptr mechanism. Each finding comes with its fix, and the same scan grades DKIM, DMARC and the rest of the domain's email security.
Start a check
  • 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

Every test reads the record the domain publishes in DNS. It checks the record, not a message: it does not test a sending server's IP address against it.
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

MxToolbox, dmarcian, EasyDMARC, Red Sift and Kitterman all offer free SPF checks. Each is better at something; pick by what you need to find out.
How it compares with other free SPF checkers
ToolBest forCompared with this checker
Vigilbase SPF CheckerChecking 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.
MxToolboxA 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 SurveyorUntangling a long chain of includes.Expands each include into a tree, so you can see which sender uses which lookups.
Red Sift and EasyDMARCPlain-language explanations of each mechanism.Draw the include tree and count void lookups, which this checker does not count.
Kitterman SPF validatorTesting 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

The result leads with the SPF record, then grades the rest of the domain's email security.
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

The record starts at 100 and loses points for each problem. 80 or more is good, 50 to 79 is a warning and below 50 is bad. SPF carries 20 of the 100 points in the overall email security grade.
+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

These are the problems this checker detects, with the change that fixes each one.

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

When a receiver checks a message against your record, it gets one of seven results (RFC 7208, section 2.6). For DMARC, only pass counts.
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

Fix what breaks SPF first, then tighten it, then check the records that build on it.
  1. 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. 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. 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. 4

    Run the check again

    After your DNS host publishes the change, scan again to confirm the record and the lookup count.

Sources

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.

Questions

SPF checker FAQ

What does an SPF checker do?

It looks up the TXT record starting with v=spf1 at a domain and checks it for problems that break or weaken SPF: a missing record, more than one record, too many DNS lookups, a permissive all qualifier and the deprecated ptr mechanism. This one also runs the full email security scan.Email Security AnalyzerCompare the public security checks

Does the checker count the lookups inside includes?

Yes. Like receivers, it follows every include and redirect and adds the lookups in the records they point to, so the count is the total that counts against the limit of 10. A record with 8 includes can already be at 10 once the included records' own terms are counted.The checker does not count void lookups: lookups that return no answer. RFC 7208 says receivers should return permerror after more than two (section 4.6.4).About email authentication

What do SPF permerror and temperror mean?

permerror means the receiver could not interpret the domain's SPF record, for example because the domain publishes two SPF records or the record needs more than 10 DNS lookups; it takes a DNS change to fix. temperror means a temporary DNS error during the check, and a later retry may succeed (RFC 7208, sections 2.6.6 and 2.6.7).This checker flags two permerror causes: more than one SPF record, and more than 10 DNS lookups across the record and the records it includes. If DNS does not answer during the scan, the result says the check could not complete; run it again.About email authentication

What is SPF flattening?

Replacing include terms with the ip4 and ip6 ranges they resolve to, so the record needs fewer DNS lookups. It gets the record under the limit of 10, but the ranges go stale when a provider changes them, so the record has to be updated whenever they do. Removing services you no longer use, or moving some senders to a subdomain with its own SPF record, avoids that upkeep.About email authentication

Should an SPF record end in -all or ~all?

-all tells receivers that unlisted servers are not authorized; ~all says they probably are not, and receivers should not reject on that alone (RFC 7208, section 8.5). Start with ~all while you confirm every service that sends for you, then move to -all.For DMARC, fail and softfail both count as SPF not passing, so the qualifier matters most for receivers that act on SPF directly.About email authenticationEmail Security Analyzer

Is SPF enough to stop spoofing?

No. SPF checks the envelope sender (the Return-Path address), not the From address people see. DMARC ties SPF and DKIM results to the visible From domain and tells receivers what to do when both fail, so check DKIM and DMARC as well.About email authenticationEmail Security Analyzer

Can I check SPF through an API?

Yes. POST {"target":"example.com"} to https://api.vigilbase.com/tools/v1/agent/tools/email-security/execute. The response holds the full email security result, with the SPF analysis under result.details.records.spf.Run a check through the public APIAPI authentication and rate limits