SPF is one of three checks inboxes use to tell real email from fakes. The other two are DKIM and DMARC.
In plain English
SPF is a guest list. Whoever owns a domain publishes which servers may send email on its behalf. When a message arrives from a server that isn’t on the list, the receiving inbox can reject it or send it to spam. The standard behind it is RFC 72081.
Example: an SPF record
The record is a single TXT line in the domain’s DNS. A made-up example:
v=spf1 ip4:192.0.2.10 include:_spf.example-mailer.com -allv=spf1marks the line as an SPF record.ip4:andinclude:name the allowed servers.-allmeans everyone else fails.~allis the softer version, a “soft fail”1.
What it means for you
You don’t set anything up yourself. Your email provider and the companies that write to you do. But you benefit: Gmail requires everyone sending to Gmail addresses to use SPF or DKIM, and bulk senders of more than 5,000 messages a day need SPF, DKIM and DMARC2. The UK’s National Cyber Security Centre recommends all three to stop spoofing3.
Whether a message passed SPF is written in its headers, for example as spf=pass. Our free phishing check reads that for you, and our guide on what to do after clicking a phishing link covers the next steps.
What SPF can’t do
SPF checks the sending server, not the “From” name you see in your inbox. A scam can pass SPF if it comes from the scammers’ own domain. DMARC is what ties the result to the visible sender address.
The short version
- An SPF record lists the servers allowed to send for a domain.
- Receiving servers compare and spot unauthorized senders.
- Defined in RFC 7208, recommended by the NCSC and required by Gmail.
- Passing SPF doesn’t prove an email is safe.