Mechanisms and qualifiers
03Policy terms are evaluated in order until a mechanism matches.
EXPLORE ONE SPF DECISION · FICTIONAL EXAMPLES
Where does this sender stop in the policy?
The qualifier on the matching mechanism supplies the SPF result.
Receiving server
Evaluates example.org’s policyFollow the policy until the first match
v=spf1 ip4:192.0.2.10 -all1 · ip4:192.0.2.10
192.0.2.11 ≠ 192.0.2.10NO MATCH → continueNo qualifier is written: + is implied.2 · -all
Matches any IP that reaches itMATCH → use -+ → pass- → fail~ → softfail? → neutralStop at the first match. Changing a later term cannot change an earlier match.
An unmatched sender reaches the illustrated fail result.
Key idea: ip4 and ip6 test addresses; include invokes another domain’s policy under its defined rules.
Rules & examples
ip4 and ip6 test addresses; include invokes another domain’s policy under its defined rules.
- ip4 and ip6 test addresses; include invokes another domain’s policy under its defined rules.
- Qualifiers select pass, fail, softfail, or neutral when a term matches.
- all always matches and commonly supplies a final result.
Examples are illustrative. Consult the linked RFC and its errata for implementation details.
Sources
New to this? Start hereA quick picture + helpful background
The envelope and the letter do different jobs.
Mail transport moves a message between servers. The message format describes its contents. Authentication adds checks; it does not make every message safe.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.