How it works
We walk through the SPF record like a receiver does: every include, a, mx and ip4/ip6 in order, until we find one that matches. The result is pass, fail, softfail, neutral or none.
What the results mean
- pass: the IP address is approved.
- fail: the record ends with -all, and the IP address is not included.
- softfail: the record ends with ~all, and the IP address is not included. The email is suspicious.
- neutral: the record ends with ?all and says nothing.
- none: the domain has no SPF record. permerror: the record has errors or more than 10 lookups.
Common causes of fail
- A new service sends email, but has not been added to SPF.
- The server has got a new IP address.
- The email has been forwarded. Another server then sends it on, and SPF fails. DKIM survives forwarding.
- You checked the domain in From. SPF is checked against the domain in Return-Path, which often belongs to the service.