Email · about 10 minutes
Set Up SPF
What This Means
SPF is one DNS record listing every server allowed to send email for your domain.
Why It Matters
Without it, or with a broken one, receivers can't tell your real mail from forgeries, so more of it lands in spam.
- 1
List everything that sends as your domain
Your mailbox provider, your web or hosting server (contact forms, WordPress, cPanel), your billing system and any newsletter tool. Each one needs to be in the record.
- 2
Add one TXT record at your domain
In your DNS, add a TXT record on the domain itself (host @). Start with mx and add each sender's include. Common ones: Google Workspace include:_spf.google.com, Microsoft 365 include:spf.protection.outlook.com, Namecheap Private Email include:spf.privateemail.com. A server sending directly is added by its address, for example ip4:203.0.113.10.
v=spf1 mx include:_spf.google.com ip4:203.0.113.10 ~all - 3
Keep it to one record
A domain with two SPF records fails SPF completely. If you already have one, add the new senders to it instead of making another.
- 4
Stay under 10 lookups
Every include, a, mx and redirect costs a DNS lookup, including the ones inside each include. Over 10 and SPF fails for every message. Remove senders you no longer use, and list your own servers by ip4 instead of a.
- 5
Tighten it once everything passes
~all marks other servers as suspicious. Once your mail has passed for a week or two, you can change it to -all so receivers reject forgeries outright.
Check It’s Fixed
Check your domain again on mail.frabs.net. SPF should show as passing, with the number of lookups it uses. DNS changes can take up to an hour to show.