SPF Softfail vs Fail: ~all vs -all

The difference between ~all and -all is what your published record tells the evaluator about unauthorized senders. This page explains what each qualifier actually does - and what it does not.

Terminology note

The SPF result for -all is fail (the term "hardfail" is commonly used but is not the RFC-defined result name). The result for ~all is softfail. This page uses both common terms and the RFC 7208 §2.6 result names.

What the qualifiers do

~all and -all determine the SPF result when evaluation reaches the all mechanism and no earlier mechanism has matched the connecting IP. The result is an assertion in your published policy:

  • ~all → result is softfail: "a weak statement that the host is probably not authorized" (RFC 7208 §2.6.5)
  • -all → result is fail: "an explicit statement that the client is not authorized" (RFC 7208 §2.6.4)

What the receiver does with that result is a separate decision. Receiving systems apply their own disposition policy, which may consider SPF along with DKIM, DMARC, content, reputation, engagement, and other signals.

Side-by-side comparison

~all (softfail)-all (fail)
SPF resultsoftfailfail
What your policy assertsThe host is probably not authorized (weak statement)The host is not authorized (explicit statement)
What the receiver doesReceiver's own disposition policyReceiver's own disposition policy

Neither result specifies or guarantees what the receiver will do. Source: RFC 7208 §2.6.

What neither qualifier guarantees

  • -all does not guarantee rejection. A receiver may reject, quarantine, accept, or ignore the SPF fail result entirely, depending on their filtering policy.
  • ~all does not guarantee delivery. A receiver may still spam-folder the mail based on other signals, or treat softfail as a significant negative.
  • Neither qualifier provides guaranteed spoofing protection. A spoofer's mail may still be delivered depending on the receiver's filtering decisions.
  • An SPF policy checker - including ours - cannot establish inbox placement or predict what any specific receiver will do. It reports what your published policy says.

Forwarding and DKIM interaction

Forwarding commonly causes SPF problems: when a message passes through a forwarder, the forwarder's IP is typically not authorized by the original sender's SPF record, producing an SPF fail result at the final recipient - regardless of whether the original sender used ~all or -all.

In forwarding scenarios, an aligned DKIM pass can allow DMARC to pass (see DMARC alignment explained), provided the DKIM signature survives any modifications made during forwarding. However, DKIM passing does not change the SPF result - an SPF fail remains an SPF fail. The two mechanisms are independent.

Is -all required for DMARC?

No. DMARC does not require -all. DMARC evaluates whether an aligned SPF pass or DKIM pass exists (see DMARC alignment explained). A message can pass DMARC with ~all as long as the sender is listed and the domain aligns. Conversely, a message from an unlisted sender with -all will fail SPF - but if DKIM is aligned and passes, DMARC can still pass.

Switching to -all does not improve DMARC alignment and is not a prerequisite for DMARC enforcement.

How to choose

The choice should be based on your verified sender inventory and operational risk, not on a mandatory progression from softfail to fail.

Consider ~all when:

  • You are not confident every legitimate sender is listed (new services, departments adding tools, third-party integrations).
  • Your mail is frequently forwarded (forwarders typically cause SPF fail regardless of qualifier).
  • You are still building your sender inventory and need a safety margin.

Consider -all when:

  • You have verified every legitimate sender through DMARC reports and/or test messages over time.
  • All senders are listed in your SPF or have aligned DKIM signatures.
  • You understand that any future unlisted sender will produce an SPF fail result.

Coverage limitations of sender verification

DMARC aggregate reports show senders that mailbox providers observed over the reporting period. Test messages show what you explicitly tested. Neither method guarantees discovery of every legitimate sender: a sender that has not sent recently may not appear in reports, and a sender you have not tested will not appear in test results. Before switching to -all, consider whether there are senders you may have missed (legacy systems, backup procedures, new tools being evaluated by other teams).

Common mistakes

  • Switching to -all before verifying senders: legitimate mail may start producing SPF fail results, potentially including password resets and order confirmations.
  • Treating -all as a DMARC requirement: it is not. DMARC can pass with ~all.
  • Assuming -all blocks all spoofing: receivers decide what to do with an SPF fail result.
  • Forgetting forwarding: forwarded mail typically fails SPF regardless of qualifier. Ensure DKIM is aligned so DMARC can pass independently.

Primary reference: RFC 7208 §2.6 (Result Definitions) and §4.6.2 (Qualifiers).

Frequently asked questions

Can I use both ~all and -all in one record?+

No: one all mechanism per record, and it must be last. The qualifier you choose there is the policy receivers apply.

Does softfail hurt deliverability?+

Slightly less than hardfail protection, but receivers mostly treat softfail as a weak signal. It is the safe intermediate step before hardfail.

When should I move from ~all to -all?+

When your aggregate reports show every legitimate source passing. That is the data-driven moment to harden.

Last verified: 2026-10-28