Risky SPF settings: +all, ?all and ptr
Updated November 27, 2026
A few SPF settings look harmless but quietly undo your protection or slow things down. Here's what each one
means and what to use instead. Your SPF record is the TXT record on your main domain that starts with
v=spf1.
+all: lets anyone send as you
The ending of an SPF record says what to do with email from servers not on your list.
+all means "allow them": any server in the world passes SPF for your domain. The SPF standard's own
example shows that with v=spf1 +all, every address passes. That's the opposite of what SPF is for.
Fix: change the ending to ~all or -all:
v=spf1 include:_spf.google.com ~all
Use ~all ("soft fail") if you're not yet sure every service that sends your email is listed;
-all ("fail") once you are.
?all: no protection
?all gives unlisted servers a "neutral" result. The SPF standard says a neutral result must be
treated exactly like having no SPF record at all. It can be useful while testing, but it doesn't protect
anything.
Fix: change it to ~all or -all, as above.
No ending at all
A record without an all ending behaves the same as ?all: neutral, so no protection
for anything not listed. Fix: add ~all or -all at the end.
ptr: outdated and slow
ptr asks providers to look up the name of each sending server and check it belongs to your
domain. The SPF standard says it "SHOULD NOT be published": it's slow, less reliable when DNS has problems, and
puts a heavy load on shared DNS servers. Better, more reliable options exist.
Fix: replace ptr with what the sending service actually publishes: usually an
include: from its setup guide, or for your own server, its addresses with ip4: or
ip6:. For example, change
v=spf1 ptr include:_spf.google.com ~all
to (with your server's real address in place of the example)
v=spf1 ip4:192.0.2.10 include:_spf.google.com ~all
If you don't know what ptr was added for, it's often a leftover from an old mail server. DMARC
reports show which services really send as you, so you can tell whether anything still depends on it.
How to make the change
- Sign in wherever your domain's DNS is managed (often your domain registrar, or a service like Cloudflare).
- Edit the TXT record that starts with
v=spf1. Don't add a second one; see Multiple SPF records. - Save, wait a few minutes, then run the free check again.
Starting from scratch? See How to create an SPF record.
Check your domain for free
Our free check reads your domain's SPF, DKIM and DMARC records and tells you in plain English what's wrong and how to fix it. No account needed, and we don't save what you check.