How to fix a failed SPF check
Your inbox placement test shows SPF: Failed. This article explains what that means and how to fix it in about 10 minutes.
What SPF is
SPF (Sender Policy Framework) is a DNS record that lists which services are allowed to send email for your domain. When Gmail, Outlook or Yahoo receive an email from you, they check this record. If your email provider isn't listed, or the record is missing or broken, the check fails and your emails are much more likely to land in spam.
Why the check usually fails
- There's no SPF record on your domain.
- There are two SPF records. A domain can only have one. Two records make the check fail, even if both are correct.
- Your email provider isn't included in the record (for example, you moved from Google to Microsoft and kept the old record).
- Too many lookups. SPF allows a maximum of 10 DNS lookups. Each
include:counts, and some include others. Too many tools in one record breaks it. - A typing mistake, such as a missing space, a missing
v=spf1at the start, or a stray quote mark.
Step 1: Find the right value for your provider
Your SPF record is a TXT record on your sending domain.
| Your mailbox provider | SPF value |
|---|---|
| Google Workspace | v=spf1 include:_spf.google.com ~all |
| Microsoft 365 | v=spf1 include:spf.protection.outlook.com -all |
You also send through other services? (for example a newsletter tool or your CRM) Put everything in one record, with each service added as its own include: before the ending. For example:
v=spf1 include:_spf.google.com include:spf.brevo.com ~all
Check each service's own help pages for its exact include: value.
Step 2: Add or fix the record at your DNS host
First, look at your existing DNS records. If there's already a TXT record that starts with v=spf1, edit that one. Don't add a second.
Host / Name: @ (this means your main domain).
If you send from a subdomain such as team.example.com, use team instead.
Cloudflare
- Log in and select your domain.
- Go to DNS → Records.
- Edit the existing
v=spf1TXT record, or click Add record. - Type: TXT. Name:
@. Content: your SPF value from Step 1. - Click Save.
GoDaddy
- Go to Domain Portfolio and select your domain.
- Open the DNS tab.
- Edit the existing
v=spf1TXT record, or click Add New Record. - Type: TXT. Name:
@. Value: your SPF value from Step 1. - Click Save.
Namecheap
- Go to Domain List and click Manage next to your domain.
- Open the Advanced DNS tab.
- Edit the existing
v=spf1TXT record, or click Add New Record. - Type: TXT Record. Host:
@. Value: your SPF value from Step 1. - Click the green check mark to save.
Step 3: Check it and test again
- DNS changes usually apply within an hour, but can take up to 48 hours.
- Run a new Inbox Placement test in Targetive. SPF should now show Passed.
Common mistakes
- Two SPF records. Merge them into one.
- Quote marks inside the value. Most DNS hosts add these for you. Paste the value without quotes.
- The record is on the wrong domain. It must be on the exact domain in your "From" address. If you send from
team.example.com, the record goes onteam, not@. -allvs~all. Both pass the check.~allis more forgiving while you're setting things up;-allis stricter. Don't use+all, which lets anyone send as you.
Still failing after 48 hours? Contact support from inside Targetive and include your domain name. We'll take a look.