EML

SPF Record Checker

Enter a domain to read its SPF record, follow every include, and check it against the 10 DNS lookup limit and common mistakes.

Queries go straight from your browser to the resolver you pick.

How it works

SPF (Sender Policy Framework) is a DNS TXT record that lists which servers may send email for a domain. This tool fetches the record over DNS-over-HTTPS, then follows every include and redirect to build the full picture, because the lookups inside those records count too.

It checks that there is exactly one SPF record, that each term is valid, that the total stays within the limit of 10 DNS lookups and 2 void lookups, and how the record ends. The tree below the findings shows each record, what each term means and which domain pulled it in.

TermCounts as a DNS lookup?
include, a, mx, ptr, exists, redirectYes, one each
ip4, ip6, all, expNo
EndingMeaning
-allFail: reject mail from servers not listed.
~allSoftfail: treat unlisted servers as suspicious.
?allNeutral: no opinion.
+allAllow everyone. Never use this.

You can read the raw record with the DNS Lookup Tool (choose TXT), and see how a receiver judged a real message with the Email Header Analyzer.

Frequently asked

What is the 10 DNS lookup limit?

The SPF standard allows a receiver to make at most 10 DNS lookups while evaluating a record. Each include, a, mx, ptr, exists and redirect counts, including those inside the records you include. Go over 10 and receivers return a permanent error, which means SPF fails even for your legitimate mail.

How do I get under the limit?

Remove includes for services you no longer use, and replace includes for services with stable addresses by ip4 or ip6 ranges. Be cautious about flattening a provider's include into fixed IPs, because the provider can change its addresses and your record would go stale.

Should I use ~all or -all?

~all (softfail) is the safer default and is fine when you also publish DMARC. -all (fail) asks receivers to reject anything not listed, which is stricter and works well once you are sure every legitimate sender is included. Avoid +all, which allows anyone.

Why can't I have two SPF records?

Receivers look for one record starting with v=spf1 and give up if they find several, so SPF fails. If you need to authorise several services, merge them into a single record with multiple include terms.

Does SPF stop spoofing on its own?

No. SPF only checks the hidden envelope sender, not the From address people see. It protects you properly when combined with DKIM and a DMARC policy, which require the visible From domain to match.