MailHealthKit

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.

No signup required. We look up public DNS records only.

  • 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

EndingSPF resultWhat it tells receivers
-allfail, often called "hardfail"Unlisted servers aren't authorized. Receivers may reject or filter the message.
~allsoftfailUnlisted servers probably aren't authorized. Receivers usually accept the message but may treat it with more suspicion.
?allneutralNo assertion about unlisted servers; treated as if there were no policy for them.
+allpassEvery server on the internet passes, so SPF no longer restricts who can send as the domain.
no allneutralIf 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 all mechanism that ends evaluation, following redirect= where present. If a redirect target can't be evaluated, the final all is 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.