SPF record checker
Check a domain's SPF record: whether receivers can read it, how many DNS lookups it needs (every include counted against the limit of 10), and whether it really rules out other senders.
What this tool does
SPF (Sender Policy Framework) is a TXT record that starts with v=spf1 and lists the servers allowed to send email for a domain. Receiving servers compare the sending server with this list.
Each include, a, mx, ptr and exists term, and the redirect modifier, costs a DNS lookup, and the includes inside included records count too. Above 10, receivers stop and SPF fails. This checker reads every include and shows where the lookups come from. The domain report checks SPF together with DMARC, DKIM and the rest.
How to read the results
- Working: one SPF record, valid terms, at most 10 lookups, ending in -all or ~all.
- Not found: no TXT record starts with v=spf1. If the domain sends no email, publish v=spf1 -all.
- Error: two records, an invalid term, an include without SPF or more than 10 lookups. Receivers then treat SPF as failed.
Frequently asked questions
What is an SPF record?
A TXT record at the domain, starting with v=spf1, that lists the servers allowed to send email for it, for example v=spf1 include:_spf.google.com ~all. Receivers use it to spot email from servers that aren't on the list.
How many DNS lookups are allowed in SPF?
Ten. Every include, a, mx, ptr, exists and redirect counts, including the ones inside included records. ip4 and ip6 terms and all cost nothing. Above 10, receivers return permerror and SPF fails.
Should I use -all or ~all?
~all (soft fail) asks receivers to treat other senders as suspicious; -all (hard fail) asks them to reject. Start with ~all while you check that every service is listed, then move to -all. DMARC decides the final outcome either way.
Can a domain have two SPF records?
No. With more than one record starting with v=spf1, receivers return an error and SPF fails. Merge them into one record with all the includes.