ReplyDak

SPF ~all vs -all: softfail or hardfail, which should you use?

Updated 10 November 2026 · 4 min read

Short answer

~all (softfail) says mail from unlisted servers is probably not authorised; -all (fail) says it is definitely not. Google's SPF help recommends ~all, Microsoft recommends -all when DKIM and DMARC are also set up, and DMARC counts both as an SPF failure. Never use +all, which authorises every server on the internet, and keep ?all for testing only. For a domain with DKIM and DMARC in place, either ~all or -all is fine; the DMARC policy decides what happens.

The four endings

EndingResult for unlisted sendersUse it?
-allfailYes, once every legitimate sender is listed
~allsoftfailYes, the common default, and safest during changes
?allneutral (no statement)Testing only
+allpass for everyoneNever; anyone can send as you

What the big providers say

Google's Workspace SPF article gives v=spf1 include:_spf.google.com ~all. Microsoft's article for Microsoft 365 gives -all and explains why: DMARC treats -all and ~all both as failures, but in practice a softfail without a DKIM signature is often let through, so -all lets DMARC act on unsigned spoofed mail. Both are valid SPF; the difference only matters for mail that has no aligned DKIM.

A worked decision

  1. 1

    Do all your senders sign with aligned DKIM?

    If yes, SPF's ending rarely changes anything for your real mail. Choose -all for slightly stronger anti-spoofing.

  2. 2

    Are you adding or migrating services?

    Use ~all while you change providers, so a sender you forgot to list gets softfail, not fail, and DMARC reports show it.

  3. 3

    Do you forward mail a lot?

    Forwarding breaks SPF (the forwarder's IP isn't yours). With -all some receivers reject forwarded mail at SMTP time before DMARC runs. ~all is gentler.

  4. 4

    Parked domain?

    Use v=spf1 -all with nothing else: no server may send.

Cold email domains

A dedicated sending domain usually has one sender (Google Workspace) that signs with aligned DKIM. ~all matches Google's documentation and is what most setups use; switching to -all won't improve inbox placement. Inbox placement depends on volume, warm-up, list quality and complaints, not on this one character.

Check the result

The check flags +all and ?all and confirms a single SPF record ends in ~all or -all. Run the domain through the free ReplyDak deliverability check: it reads MX, SPF, DKIM and DMARC live from public DNS, counts SPF lookups and checks the main blocklists, with no sign-up. If your DKIM selector is not a common one, type it into the optional selector box.

More setups and errors: SPF, DKIM and DMARC by provider, DNS host and error.

FAQ

Does -all improve deliverability?

Not for your legitimate mail. It strengthens protection against spoofing of mail that lacks DKIM.

Does DMARC treat ~all differently from -all?

No. For DMARC both are SPF failures. The difference is in how some receivers act on SPF alone.

Is +all ever correct?

No. It authorises every IP address to send for your domain.

Sources

Related

Microsoft 365 mailboxes are coming soon. Until then, new orders use Google Workspace mailboxes.