How to Set Up SPF
Setting Up SPF (Sender Policy Framework) for Email Providers
What is SPF?
SPF, or Sender Policy Framework, is a way to protect your email domain from being used by spammers or attackers. It works by specifying which mail servers are allowed to send emails on behalf of your domain. Think of it as a "guest list" for email servers: only the servers you trust can send emails from your domain.
Why Do This?
- Stop Fake Emails: Keep spammers from pretending to send emails from you.
- Get Your Emails Delivered: Avoid emails getting stuck in spam folders.
- Show Youâre Safe: Build trust with people who receive your emails.
Steps to Set Up SPF
1. Log In to Where You Bought Your Domain
This is the place you got your website name (like GoDaddy or Namecheap). If you donât remember, check your email for a receipt when you bought it.
Click the right link below to log in:
- GoDaddy: Log in
- Cloudflare: Log in
- Namecheap: Log in
- Other providers? Search âLogin to [Your Provider Name]â on Google.
2. Open DNS Settings
After logging in, look for something like DNS Management or Zone Editor. This is where youâll make changes to your domainâs settings.
3. Add a New TXT Record
Hereâs what to do:
- Name/Host: Enter
@(or leave it blankâdepends on your provider). - Value: Copy this:
v=spf1 include:spf.google.com ~allReplace spf.google.com with the setting from your email provider. Look below for examples.
4. Save Your Changes
Once youâre done, click Save or Update. The changes might take a few hours to work (or up to 24 hours).
Whatâs the Right SPF Setting for Your Email?
Gmail (Google Workspace)
Copy this:
v=spf1 include:_spf.google.com ~allMicrosoft (Outlook/Office 365)
Copy this:
v=spf1 include:spf.protection.outlook.com ~allZoho Mail
Copy this:
v=spf1 include:zoho.com ~allSendGrid
Copy this:
v=spf1 include:sendgrid.net ~allAmazon SES
Copy this:
v=spf1 include:amazonses.com ~allQuick Check to See If It Works
- Go to a free SPF checking website like MXToolBox.
- Enter your domain name and click Check SPF Record.
- Make sure the result shows your SPF is valid!
Done!
Youâve just set up SPF to keep your emails safe and trustworthy. If you ever add a new email service, remember to update your SPF settings.
Updated on: 17/08/2026
Thank you!