An SPF record lists the servers allowed to send email for your domain. This checker fetches the record, follows its include chain to count DNS lookups against the limit of 10, and flags duplicate records and a weak ending. It reads public DNS and needs no account.
What SPF does
SPF (Sender Policy Framework) is a DNS TXT record that lists which servers may send email for a domain. A receiving server compares the connecting server's IP address with that list and decides whether the message passes (RFC 7208).
Google and Yahoo have asked bulk senders to authenticate their mail with SPF and DKIM, and to publish a DMARC policy. A missing or broken SPF record is one of the first things to fix when mail lands in spam.
What this checker tests
The result lists each finding with a tone, so you can see what needs work first:
- Record count: a domain must publish exactly one SPF record. With two or more, receivers return a permanent error and SPF fails.
- DNS lookups: include, a, mx, ptr, exists and redirect each cost one lookup, and the total may not pass 10. The checker follows every include to count them.
- The ending: -all rejects unlisted servers, ~all marks them suspicious, ?all says nothing, and +all lets anyone send as your domain.
- The ptr mechanism, which RFC 7208 advises against.
- Includes that point at a name without an SPF record, and include loops.
Fixing the most common SPF errors
Two records: merge them into one. Combine every include and ip4 term into a single v=spf1 line.
More than 10 lookups: remove includes for services you no longer use. If the record still runs long, replace some includes with ip4 or ip6 ranges, which cost no lookup. The trade-off is that you must update them when the provider changes its addresses.
A ~all ending is a fine place to start while you confirm the list is complete. Move to -all when you are sure every sender is covered.
More free tools
Questions
One. If a domain publishes more than one SPF record, receivers return a permanent error and the SPF check fails (RFC 7208, section 3.2). Merge them into a single record.
A receiver may make at most 10 DNS lookups while evaluating one SPF record. Each include, a, mx, ptr, exists and redirect counts as one, including the ones inside included records. Past 10, SPF fails with a permanent error.
-all tells receivers to reject mail from servers you did not list. ~all marks it as suspicious instead. Many domains start with ~all and switch to -all once they know every sending service is listed.
No. SPF is one signal. Receivers also weigh DKIM, DMARC, your sending reputation and the message itself. A correct SPF record removes one reason for spam placement.
Sources
Checked on November 22, 2026.