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

Publish and find the record

02

A DNS TXT record beginning with v=spf1 carries the policy.

RFC 7208 · § 3.1EXAMPLE

EXPLORE ONE SPF DECISION · FICTIONAL EXAMPLES

Which DNS record becomes the SPF policy?

Step 4 of 4 — Use one policy or stop

Exactly one SPF record is usable; zero returns none and two returns permerror.

Domain owner

Publishes at example.org
Publish TXT

DNS

TXT records for example.org2 separate records
TXT requestTXT answer

Receiving server

Requests and selects the SPF policy

DNS answer → receiver’s selection tray

TXT record 1"v=spf1 ip4:192.0.2.10 -all"↓ Keep: SPF version marker
TXT record 2"site-verification=demo"Set aside: unrelated TXT record
↓ 1 SPF candidate
POLICY SELECTEDOne policy can now be evaluated against the connecting IP. This is not yet SPF pass.
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.

One record may have several strings. Several SPF records are an error.

3 / 3
03
Reject ambiguity

Do not choose arbitrarily between two competing SPF policy records.

Publish and find the recordA DNS TXT record beginning with v=spf1 carries the policy.Publish and find the recordexample.org TXTv=spf1 ip4:192.0.2.10 -allTwo SPF policy records → permerror

Key idea: Only TXT is used by this specification; the older SPF RR type is discontinued.

Terms

Look up a term in the glossary ↗

Rules & examples
  • Only TXT is used by this specification; the older SPF RR type is discontinued.
  • Multiple SPF records for one owner name cause a permerror.
  • A TXT record can contain multiple character strings that are concatenated.

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 ↗