Visual RFC.
ALL RFCs / RFC 7208
Read the RFC ↗
RFC 7208 / MECHANISM GUIDE

Mechanisms and qualifiers

03

Policy terms are evaluated in order until a mechanism matches.

RFC 7208 · § 4.6EXAMPLE

EXPLORE ONE SPF DECISION · FICTIONAL EXAMPLES

Where does this sender stop in the policy?

Step 4 of 4 — Apply the matching qualifier

The qualifier on the matching mechanism supplies the SPF result.

Sending server

Connecting IP192.0.2.11
SMTP connection

Receiving server

Evaluates example.org’s policy

Follow the policy until the first match

v=spf1 ip4:192.0.2.10 -all

1 · ip4:192.0.2.10

192.0.2.11 ≠ 192.0.2.10NO MATCH → continueNo qualifier is written: + is implied.
Next if no match

2 · -all

Matches any IP that reaches itMATCH → use -
FAILMatching term: -all. Explicitly not authorized for this SMTP domain.
+ → pass- → fail~ → softfail? → neutral
Try an alternative outcome

Changing an input shows the completed outcome. Restart restores the original example. This is a bounded teaching model, not the complete SPF evaluation algorithm.

Stop at the first match. Changing a later term cannot change an earlier match.

3 / 3
03
Reach -all otherwise

An unmatched sender reaches the illustrated fail result.

Mechanisms and qualifiersPolicy terms are evaluated in order until a mechanism matches.Mechanisms and qualifiersv=spf1 ip4:192.0.2.10 -allOtherwise reach -all → fail

Key idea: ip4 and ip6 test addresses; include invokes another domain’s policy under its defined rules.

Terms

Look up a term in the glossary ↗

Rules & examples
  • 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
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
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.

All chapters in RFC 7208

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗