Skip to main content
New SPF lookups must resolve in milliseconds — why a DMARC tool's add-on isn't enough Learn Why → →

Free SPF Record Validator

Check any SPF record for syntax errors, DNS lookup limit violations, void lookups, deprecated mechanisms, and full RFC 7208 compliance - instantly and free.

Type a domain to see its published SPF record, a mechanism-by-mechanism breakdown, and a live DNS lookup count.

What Does This SPF Validator Check?

Syntax validation

Correct v=spf1 prefix, valid mechanisms, proper qualifiers

DNS lookup count

Must be ≤ 10 per RFC 7208 §4.6.4

Void lookup detection

Includes resolving to empty responses (≤ 2 allowed)

Deprecated mechanism warnings

Flags ptr usage (not recommended by RFC 7208 §5.5)

Macro detection

Identifies SPF macro syntax for dynamic resolution

Recursive include expansion

Full mechanism tree showing nested lookup chains

Why It Matters

Why Use the Free SPF Validator?

Catch Errors Before Receivers Do

A record that looks fine can still fail validation on a duplicate tag, a stray character, or a lookup count of eleven. The validator surfaces the exact fault the way a mailbox provider would evaluate it.

Validated Against the Actual RFC

Every check maps to a rule in RFC 7208 - syntax, the 10-lookup limit, the 2 void-lookup limit, deprecated mechanisms - so a pass here means a pass at Gmail, Outlook, and Yahoo.

See the Full Include Tree

The validator expands every nested include so you can see which third-party provider is quietly adding the lookups that push you over the limit.

Instant and Free

Paste a domain, get a verdict - no signup, no install, and nothing sent to a server you do not control.

Validation Explained

Understanding SPF Validation

Validating an SPF record means checking it against the rules receiving mail servers actually enforce - the Sender Policy Framework specification (RFC 7208). A record can look correct and still be rejected, so here is what "valid" means and how to fix the faults this validator finds.

What "Valid" Means Under RFC 7208

A valid SPF record satisfies every one of these conditions at once: it is the only v=spf1 TXT record on the domain, it starts with the v=spf1 tag, it uses only recognized mechanisms and qualifiers, it resolves in ten or fewer DNS lookups, it produces no more than two void lookups, and it ends with an all qualifier. Miss any one and receivers may return a PermError and treat the record as if it were never published.

Syntax Rules the Validator Enforces

  • One record only. RFC 7208 permits exactly one v=spf1 record per domain. A second one is an automatic PermError - both are ignored.
  • Correct order. The v=spf1 version tag must come first and the all mechanism must come last.
  • Valid mechanisms and qualifiers only. Allowed mechanisms are include, a, mx, ip4, ip6, exists, and all; each may carry a +, -, ~, or ? qualifier. Typos like ip: or includes: fail.
  • String length. Any single character-string in the TXT record must stay within 255 characters, and the whole record within 512 bytes, or DNS truncates it.

The 10-Lookup and 2-Void-Lookup Limits

Two numeric limits catch most "valid syntax, still failing" records. The first is the well-known cap of ten DNS-querying mechanisms per evaluation - every include, a, mx, ptr, and exists counts, and nested includes count recursively. The second, less familiar limit is void lookups: no more than two mechanisms may resolve to an empty DNS answer. Blow past either and the result is a PermError. If your record is over the ten-lookup limit, AutoSPF flattens the includes into a compact record that validates cleanly and re-scans every 15 minutes - see too many DNS lookups for the details.

Deprecated and Risky Mechanisms

The validator warns on two things that are technically parseable but should be avoided. The ptr mechanism is deprecated by RFC 7208 (§5.5) because it is slow and unreliable - replace it with ip4/ip6 or an include. And +all authorizes the entire internet to send as your domain, defeating the purpose of SPF entirely; a valid record should end in -all or ~all.

How to Fix an Invalid SPF Record

Most validation failures map to one of four fixes:

  • Two SPF records? Merge every sender into a single v=spf1 record.
  • Over 10 lookups? Replace lookup-heavy includes with ip4/ip6 entries, or flatten the record automatically with AutoSPF.
  • Deprecated ptr? Remove it and authorize those hosts by IP or include instead.
  • Missing or wrong qualifier? Ensure the record starts with v=spf1 and ends with -all (or ~all while you test).

Rebuilding from scratch is often easier than patching - the free SPF record generator produces a syntactically clean record you can validate here in one step.

Where SPF Sits Alongside DKIM and DMARC

A valid SPF record is necessary but not sufficient. DKIM signs the message body and DMARC ties SPF and DKIM to the visible From domain and sets the enforcement policy. After your SPF record validates, confirm the other two with the free DMARC checker and DKIM lookup. Re-validate SPF whenever you add or remove a sending service, and audit it at least once a quarter - and remember each sending subdomain needs its own valid record.

SPF validation failed?

AutoSPF automatically fixes the 10-lookup limit, keeps your record valid, and re-scans every 15 minutes. Enterprise SLAs, SSO/SAML, audit logs included.

Rated 5/5 on G2 · Trusted since 2018

What Our Customers Say

"AutoSPF Flattens SPF Records Seamlessly & Keeps Changes Logged - I am quite pleased with the product"

It does what it promises to do, and does it very well. I appreciate that it keeps a log of changes made, which prevents many mistakes. A client's SPF record would have way too many lookups, but AutoSPF makes that problem go away. The length of the SPF record is typically not the issue; it's the amount of lookups in the record that are. AutoSPF "flattens" the record, automatically expanding the defined lookups to IP addresses or ranges. And it auto-updates the record when the un-flattened lookups change.
PJ

Peter J.

President · Small-Business (50 or fewer emp.)

"Helped us go beyond capacity"

AutoSPF did exactly as described, it helped us get past our 10 lookup limit. Afterwards, we hit another limit regarding overall capacity and when contacted, they quickly provided us with a new solution to eliminate capacity issues entirely going forward, so now we can add as many SPF records as needed. They also provided us with a personalized support video explaining their new method in its entirety using our instance as the example.
VU

Verified User

Financial Services · Mid-Market (51-1000 emp.)