← All posts

SPF results explained: pass, fail, softfail, neutral, none, permerror

SPFReference

When a receiver checks SPF it records one of seven results. They appear in Authentication-Results or Received-SPF headers (how to find them).

The results

Result Meaning What to do
pass The sending IP is authorised by the domain’s SPF. Nothing.
fail The IP is explicitly not allowed (record ends in -all). Add the legitimate sender, or ignore spoofed mail.
softfail Not allowed, but the policy is lenient (~all). Same as fail, see the softfail guide.
neutral The domain makes no statement (?all). Move to ~all or -all when ready.
none No SPF record was found for the domain. Publish one.
temperror A temporary DNS problem prevented the check. Usually retried. Check that your DNS is healthy.
permerror The record is invalid, e.g. two records or over 10 lookups. Fix the record. See too many lookups.

The qualifiers behind them

Each mechanism in an SPF record can have a prefix that sets the result when it matches:

  • + pass (the default if you write nothing)
  • - fail
  • ~ softfail
  • ? neutral

So v=spf1 include:_spf.google.com ~all means “Google’s servers pass, everybody else softfails”.

Which domain is checked

SPF checks the envelope sender (smtp.mailfrom, the bounce address), not the From: header you see in your mail client. Services that send on your behalf often use their own bounce domain, so SPF can pass for them while failing DMARC alignment. That is why DKIM matters as well. The overview of SPF, DKIM and DMARC covers alignment.

Quick troubleshooting order

  1. none: no record, or it is published at the wrong name.
  2. permerror: syntax or lookup limit.
  3. softfail / fail: a sender is missing, or the mail was forwarded.
  4. temperror: wait and re-test, then check DNS availability.