Guide
What is SPF?
SPF (Sender Policy Framework) is a list, published in your domain’s DNS, of the mail servers allowed to send email for you. Inboxes check it to spot email sent from servers you never approved.
SPF record for yourcompany.com
Servers allowed to send as you
- Microsoft 365
- Mailchimp
- Your website (203.0.113.10)
The receiving server checks each email
Is the server that sent it on your list?
- SPF pass
Sent from Microsoft 365
IP address 40.92.18.4
- SPF fail
Sent from Unknown server
IP address 185.220.101.7
How SPF works
- 1
You publish a list
Your SPF record is a TXT record in your DNS. It lists the servers and services allowed to send email as you. - 2
An email is sent
When an email arrives, the receiving server looks up the SPF record of the domain it claims to be from. - 3
The server checks it
If the sending server is on the list, SPF passes. If it is not, SPF fails and the email looks suspicious.
Reading an SPF record
An SPF record is one line of text. It starts with the version, lists who may send, and ends with what should happen to everyone else.
Each include costs a DNS lookup, and SPF allows only ten. Add enough services and your record breaks. Read about SPF flattening.
v=spf1 include:spf.protection.outlook.com include:servers.mcsv.net -all
- v=spf1
- This is an SPF record (version 1).
- include:…
- Allows another service, such as Microsoft 365 or Mailchimp, to send for you.
- -all
- Any server not on the list should fail. This is the strictest setting.
- ~all
- A softer version: servers not on the list are treated as suspicious, not failed.
Why SPF is worth having
Stops simple spoofing
Only servers you approve can pass, which blocks the easiest way to send email as you.Helps your email land
Passing SPF builds trust with providers, so your genuine email is less likely to go to spam.Protects your name
It makes it harder for attackers to send convincing email using your domain.
Where SPF falls short
It only checks the server
SPF looks at the sending IP address. When an email is forwarded, the forwarding server is not on your list, so genuine email can fail.It checks a hidden address
SPF checks the “envelope” sender (the Return-Path), not the From address people see. Without DMARC, an attacker can pass SPF while showing your name.
Start with a free 14-day trial
We add one DNS record, watch your real email traffic for two weeks, then come back with a plan for your domain. No cost, no commitment.
- 1
Get in touch
Tell us your domain. One of our engineers picks it up.
- 2
Add a record
We send you one DMARC record to add to your DNS.
- 3
Two weeks of data
We see every service sending as you, then propose a plan.
