Publish and find the record
02A DNS TXT record beginning with v=spf1 carries the policy.
EXPLORE ONE SPF DECISION · FICTIONAL EXAMPLES
Which DNS record becomes the SPF policy?
Exactly one SPF record is usable; zero returns none and two returns permerror.
DNS
TXT records for example.org2 separate recordsReceiving server
Requests and selects the SPF policyDNS answer → receiver’s selection tray
"v=spf1 ip4:192.0.2.10 -all"↓ Keep: SPF version marker"site-verification=demo"Set aside: unrelated TXT recordOne record may have several strings. Several SPF records are an error.
Do not choose arbitrarily between two competing SPF policy records.
Key idea: Only TXT is used by this specification; the older SPF RR type is discontinued.
Rules & examples
Only TXT is used by this specification; the older SPF RR type is discontinued.
- 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
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.