Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Learn

SPF softfail vs hardfail: which should you use?

Softfail (~all) tells receivers a sender is probably not authorized and should not be rejected on that alone, while hardfail (-all) states it is not authorized. Google recommends ~all for Workspace domains, and Microsoft shows -all in its example.

The short answer
  • ~all is a weak assertion. RFC 7208 says receivers should not reject based on it alone.
  • -all is a strong assertion, but receivers still decide what to do with it.
  • With DMARC in place, the DMARC policy, not the SPF qualifier, drives most outcomes.
Try the spf record checkerFree, live, no signup

How do all four endings compare?

SPF all mechanism qualifiers
EndingResult nameMeaning in RFC 7208Typical use
-allfailThe host is not authorizedMature setups with every sender known
~allsoftfailWeak statement that the host is probably not authorizedRollout and Google Workspace default advice
?allneutralNo assertionTesting only
+allpassEveryone is authorizedNever use

Source: RFC 7208, sections 2.6 and 8.

When does each choice fit?

Use ~all when

You are still finding senders, forward mail, or rely on DMARC and DKIM to enforce.

Use -all when

You have audited every sender and want an explicit unauthorized signal, or the domain never sends mail.

Forwarding caveat

Forwarders change the sending IP, so SPF fails at the next hop. DKIM survives forwarding when the signed content is untouched.

What does a domain that sends no mail publish?

Parked or non-mail domain
example.org.  IN  TXT  "v=spf1 -all"
; a domain that sends no mail at all

Read the header, not the guess

The qualifier is only a statement. In the received message, open Authentication-Results and read spf=softfail or spf=fail to see what the receiver concluded and what it did.

How do you move from ~all to -all safely?

  1. Week 0
    Publish ~all

    Confirm every known sender is listed and test with real messages.

  2. Weeks 1 to 4
    Read DMARC reports

    Look for legitimate sources that fail SPF, such as forgotten tools or forwarders.

  3. After a clean month
    Consider -all

    Only if you control every sender and DKIM covers forwarded mail.

  4. Ongoing
    Review on every new vendor

    A new service without an SPF entry will now fail outright.

What do receivers do with each result?

softfail

RFC 7208 says receivers should not reject on softfail alone. Many accept and mark the message.

fail

Receivers may reject at SMTP time, but the RFC leaves the decision to local policy.

With DMARC

The DMARC policy you publish decides the action when neither SPF nor DKIM aligns.

How do you troubleshoot an unexpected softfail?

  • Find the connecting IP in the Received headers of the failing message
  • Check whether that IP belongs to a service that is missing from your record
  • Look for forwarding or a mailing list in the path
  • Confirm only one SPF record exists and the total stays under 10 lookups

Common questions

Is SPF softfail the same as fail?

No. Softfail means the publisher weakly asserts the host is probably unauthorized, and RFC 7208 says receivers should not reject on that result alone. A hard fail is a firm assertion that the host is not authorized.

Should I use ~all or -all?

Google recommends ~all for Workspace, while Microsoft shows -all in its Microsoft 365 example. Pick -all once you are sure every sender is listed. Pair either with DKIM and a DMARC policy.

Why do my emails softfail even though my SPF record looks right?

Common causes are an unlisted sending service, mail forwarded through another server, a second SPF record causing permerror, or more than 10 lookups. Check the sending IP in the headers against the record.

Does hardfail guarantee rejection?

No. Receivers apply their own policy. Many combine SPF with DKIM and DMARC and may deliver or junk a message regardless of the qualifier.

What does spf=softfail mean in email headers?

The sending IP did not match the record and the record ended in ~all. The message is not authenticated by SPF, but receivers are told not to reject on that alone. Check which IP sent it.

Will -all make my domain more secure than ~all?

It is a stronger statement, but protection mostly comes from receivers acting on a DMARC policy. A domain with DKIM, p=reject and ~all is better protected than one with -all and no DMARC.

Watch your domains automatically

Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.