SPF check
SPF lists the servers allowed to send email for a domain. This tool checks the syntax, follows include and redirect, and counts DNS lookups.
Understanding and fixing your SPF record
Anatomy of an SPF record
An SPF record is a TXT record starting with v=spf1, followed by mechanisms evaluated left to right: ip4 and ip6 for addresses, a and mx for the addresses of the domain's own records, include to pull in a provider's SPF (Google, Microsoft 365, a mailing tool). The final all mechanism covers everything else.
Qualifiers: +, -, ~ and ?
Each mechanism can carry a qualifier: + allows (the default), - rejects (fail), ~ flags as suspicious (softfail) and ? stays neutral. In practice only the final all has one: ~all while rolling out, -all once every sender is listed.
The most common mistakes
Publishing two SPF records instead of one, exceeding the 10 DNS lookup limit by stacking includes, forgetting a provider that sends on your behalf, or using the discouraged ptr mechanism. The tool detects and explains each of these.
SPF, DKIM and DMARC
SPF checks the sending server, DKIM the message signature, and DMARC tells the recipient what to do when those checks fail. Gmail and Yahoo require all three from bulk senders: set up SPF and DKIM, then publish a DMARC policy.
Frequently asked questions
What is an SPF record for?
SPF lists, in a TXT record of the domain, the servers allowed to send email on its behalf. Receiving servers use it to spot spoofed messages.
What does the “too many DNS lookups” error mean?
The standard caps SPF evaluation at 10 DNS lookups (include, a, mx, exists, redirect). Beyond that the result is “permerror” and SPF is ignored: reduce your includes.
Should I end with ~all or -all?
-all rejects unlisted senders, ~all only flags them (softfail). With DMARC in place ~all is common; -all is stricter once every sender is listed.
Can a domain have two SPF records?
No. With two records starting with v=spf1, the result is "permerror" and SPF is ignored. Merge them into a single record with a single final all.
Is SPF enough to stop my domain being spoofed?
No. SPF only checks the envelope address, not the sender shown in the message. You also need DKIM and a DMARC policy so that recipients reject spoofed emails.