SPF troubleshooting
SPF softfail (~all)
~all at the end of an SPF record gives mail from servers the record doesn't list a softfail result: not authorized, but not a definite fail. Check which all mechanism a domain uses below.
- Final all rule
- Redirect chain
- PermError causes
About softfail and the all mechanism
What ~all means
SPF evaluates a record's mechanisms from left to right and stops at the first one that matches the sending server. all matches every server, so it belongs at the end and decides the result for any sender the earlier mechanisms didn't list. Its qualifier sets that result: ~ means softfail.
~all, -all, ?all, +all and no all
| Ending | SPF result | What it tells receivers |
|---|---|---|
| -all | fail, often called "hardfail" | Unlisted servers aren't authorized. Receivers may reject or filter the message. |
| ~all | softfail | Unlisted servers probably aren't authorized. Receivers usually accept the message but may treat it with more suspicion. |
| ?all | neutral | No assertion about unlisted servers; treated as if there were no policy for them. |
| +all | pass | Every server on the internet passes, so SPF no longer restricts who can send as the domain. |
| no all | neutral | If nothing matches and there's no redirect=, the result defaults to neutral. |
When softfail is appropriate
~all suits a domain whose list of senders may not be complete yet: while adding a new email service, during a migration, or when it's unclear which systems send mail as the domain. A missed sender gets softfail rather than fail, so its mail is less likely to be rejected outright.
-all suits a domain whose senders are all known and listed, and where you keep the record up to date when that changes. +all is never appropriate, and ?all gives receivers nothing to act on.
Softfail and DMARC
DMARC only counts an SPF pass, and only when the SPF domain aligns with the From domain. Softfail and fail are treated the same way: SPF doesn't pass, and the message needs an aligned DKIM signature to pass DMARC. The domain's DMARC policy, not the SPF qualifier, then decides what happens to mail that fails both.
Some receivers act on an SPF fail before evaluating DMARC. That can stop a message that would have passed DMARC through DKIM, such as a forwarded message, which is one reason some domains with a DMARC policy choose ~all. See SPF and DMARC for how alignment works.
When the all comes from another record
A record without an all mechanism can hand evaluation to another domain with redirect=. The redirected record's all then decides the result, so the qualifier that applies may not be in your own record. The checker follows the redirect and reports which record it came from.
include: works differently: an included record's all doesn't end evaluation of your record. If the included record doesn't pass the sender, evaluation simply continues with your next mechanism.
What this check covers and its limits
- The result shows the
allmechanism that ends evaluation, followingredirect=where present. If a redirect target can't be evaluated, the finalallis reported as unknown rather than missing. - It describes what the record asks for, not how a particular receiver will handle the mail; receivers apply their own policies.
- This result covers the all mechanism only; the full checker reports every other SPF and DMARC finding.