Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk2 min

What Is Sender Policy Framework (SPF)?

Sender Policy Framework (SPF) lets a domain authorize sending hosts for SMTP HELO/EHLO or MAIL FROM identities through a DNS TXT record beginning with v=spf1.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Sender Policy Framework (SPF) is a DNS-based email-authentication protocol that lets a domain specify which hosts are authorized to use its domain in SMTP HELO/EHLO or MAIL FROM identities. Receiving systems can check a sender against that policy. An SPF record is published as a DNS TXT record and begins with v=spf1. SPF does not, by itself, authenticate the visible From address.

What an SPF record does

A domain administrator publishes an SPF policy in DNS. When a receiving mail system evaluates a message, it checks whether the sending host is authorized for the relevant SMTP identity. The IETF describes an SPF record as a DNS record declaring which hosts are or are not authorized to use a domain name for the “HELO” and “MAIL FROM” identities (RFC 7208, April 2014).

Which email identities SPF checks

SPF’s defined checks apply to the domain used in the SMTP HELO/EHLO greeting or the MAIL FROM command. These are part of the message’s SMTP transaction; they are not the same thing as the visible From header that a person typically sees in an email client. A passing SPF result therefore does not, on its own, prove that the visible From address is authorized.

Where the record is published

The SPF policy belongs in a DNS TXT record at the owner name for the domain it applies to. Its version marker is v=spf1. A domain should not publish multiple SPF records that would cause multiple records to be selected for that same owner name; SPF evaluation does not treat multiple policies there as a combined list.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How SPF evaluation works

SPF mechanisms are evaluated in order. A mechanism that matches can return a result determined by its qualifier:

  • + means pass.
  • - means fail.
  • ~ means softfail.
  • ? means neutral.

If no mechanism matches and the record has no redirect modifier, the result is neutral. These terms describe SPF evaluation outcomes; they are not a complete judgment about whether a message is trustworthy.

The DNS lookup limit

RFC 7208 limits an SPF evaluation to 10 DNS-causing terms. Terms such as include, a, mx, ptr, exists, and redirect count toward that limit. If an evaluation exceeds it, the result is permerror. This is a limit on DNS-causing terms in an SPF evaluation, not a claim that each DNS query or query type counts identically.

The RFC also says SPF implementations should limit void lookups to two; exceeding that recommended limit produces permerror. This is a “SHOULD” recommendation in the standard, distinct from the 10-term limit.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

SPF’s place in email authentication

SPF answers a specific authorization question about a sending host and an SMTP identity. It does not authenticate every identity associated with a message, and a successful SPF check does not independently validate the visible From header. Treat an SPF result as one defined piece of email authentication, not a universal guarantee about message origin.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.