Improve Deliverability

SPF Record Checker

Look up any domain's SPF record, count its DNS lookups and spot problems before they hurt your deliverability.

Quick answer: An SPF record is a DNS TXT record that lists the servers allowed to send email for a domain. This checker finds the record, counts its DNS lookups against the limit of 10 and flags errors such as multiple records and a missing all mechanism.

What is an SPF record?

SPF (Sender Policy Framework) is a DNS TXT record that lists which servers may send email for your domain. When a message arrives, the receiving server reads the SPF record of the domain in the envelope sender address and checks whether the connecting IP is on the list. A missing or broken record is one of the commonest reasons cold email lands in spam.

An SPF record starts with v=spf1, lists the allowed senders (ip4:, ip6:, include:, a, mx) and ends with an all mechanism that says what to do with everything else. Example: v=spf1 include:_spf.google.com ip4:203.0.113.10 ~all.

What this checker does

  1. Reads the TXT records of the domain through Google Public DNS and finds the SPF record.
  2. Follows every include and redirect inside it, including nested ones, and counts each DNS lookup.
  3. Flags more than one SPF record, more than 10 lookups, a missing or weak all ending, the deprecated ptr mechanism and other problems.
  4. Shows the full record so you can compare it with what your provider asked for.

Why the 10 lookup limit matters

SPF allows at most 10 DNS lookups while a record is evaluated. Every include, a, mx, ptr, exists and redirect costs one, and lookups inside included records count too. Go over 10 and the receiver returns a permanent error (permerror), which many treat as an SPF failure. The checker walks the whole tree so you can see which service costs the most.

Typical culprits are several sending tools stacked in one record: Google Workspace, a CRM, a newsletter service, a help desk and a cold email platform. Remove services you no longer use, replace stable ones with ip4: ranges, or send from a subdomain with its own record.

-all, ~all or ?all

  • -all (hard fail). Tells receivers to reject mail from servers not on the list. Strictest, best once every sender is listed.
  • ~all (soft fail). Marks other mail as suspicious but accepts it. The usual starting point and a fine choice together with DMARC.
  • ?all (neutral) and +all. No protection. +all allows the whole internet and should never be used.

Common SPF errors and fixes

  • More than one SPF record. Merge them into one. Two records cause a permanent error and SPF fails completely.
  • Too many DNS lookups. Remove unused includes, flatten stable ones to IP ranges, or split senders across subdomains.
  • No SPF record found. Create one with the SPF record generator and publish it as a TXT record at the root (@).
  • Record in the wrong place. SPF belongs at the domain used in the envelope sender (Return-Path), which for a subdomain sender means that subdomain.
  • Syntax errors. Missing spaces, a colon instead of an equals sign or an unknown mechanism. The checker highlights them.
  • The record is not published at the DNS host that is authoritative. Check the nameservers with the DNS lookup tool.

SPF in a cold email setup

Use a separate sending domain or subdomain for cold email so your main domain's reputation stays safe. Give each sending domain its own SPF record that lists only the platform that sends for it, pair it with DKIM and a DMARC record, and check it here after every change. SPF alone does not make mail trustworthy: it only proves that the server was allowed to send.

SPF include values for common senders

These are the include values that providers publish for their SPF records. Always copy the value from your provider's own setup page, because providers change them.

  • Google Workspace and Gmail. v=spf1 include:_spf.google.com ~all
  • Microsoft 365, Office 365 and Outlook. v=spf1 include:spf.protection.outlook.com -all
  • SendGrid. include:sendgrid.net
  • Mailchimp. include:servers.mcsv.net
  • Brevo. include:spf.brevo.com
  • Amazon SES. include:amazonses.com
  • Mailgun. include:mailgun.org
  • Salesforce. include:_spf.salesforce.com
  • Zendesk. include:mail.zendesk.com
  • Zoho Mail (US data centre). include:zoho.com. Other regions use their own, such as zoho.eu.
  • Constant Contact. include:spf.constantcontact.com
  • SMTP2GO. include:spf.smtp2go.com

Combine several senders in one record, for example v=spf1 include:_spf.google.com include:sendgrid.net ~all. Some providers, such as Resend, HubSpot and Klaviyo, give you a record that is specific to your account or sends from a subdomain, so use exactly what their dashboard shows.

How to add an SPF record at GoDaddy, Namecheap or Cloudflare

  1. GoDaddy: My Products, then DNS next to your domain, then Add New Record. Choose type TXT, set Name to @ (or the name shown below), paste the value and save.
  2. Namecheap: Domain List, Manage, Advanced DNS, Add New Record. Choose TXT Record, set Host to @ (or the name shown below) and paste the value.
  3. Cloudflare: select the domain, open DNS, Records, Add record. Choose TXT, set Name to @ (or the name shown below) and paste the value. TXT records are never proxied.
  4. Other DNS hosts use almost the same fields: type, host or name, value and TTL. Menu names change over time, so look for "DNS", "DNS records" or "Advanced DNS".

Use only one SPF record per name. If one already exists, edit it instead of adding a second.

Multiple SPF records: how to merge them

If the checker shows two records that start with v=spf1, delete both and publish one combined record. For example, merge v=spf1 include:_spf.google.com ~all and v=spf1 include:sendgrid.net ~all into v=spf1 include:_spf.google.com include:sendgrid.net ~all. Keep a single all at the end. Then check the lookup count again, because merging adds the lookups of both.

Last reviewed November 20, 2026 by the LeadNurturix cold email team.

SPF checker FAQ

What is an SPF record?

A TXT record in DNS that lists the mail servers allowed to send email on behalf of your domain. Receivers use it to detect forged senders.

How do I check my SPF record?

Enter your domain in the checker above. It shows the record, counts DNS lookups and lists problems. You can also look up the domain's TXT records with the TXT lookup tool.

What does the 10 DNS lookup limit mean?

The SPF standard (RFC 7208) allows at most 10 lookups caused by include, a, mx, ptr, exists and redirect terms during evaluation, nested ones included. More than that gives a permanent error.

Does ip4 count as a lookup?

No. The ip4 and ip6 mechanisms and the all term are free. That is why replacing stable includes with IP ranges lowers the count.

Should I use -all or ~all?

Start with ~all while you confirm every sender. Move to -all when you are sure. With DMARC in place the difference matters less, because DMARC decides the final outcome.

Can a domain have two SPF records?

No. A domain must have exactly one record that starts with v=spf1. Two records cause a permerror. Merge them by combining their mechanisms into one record.

How long does an SPF change take to show up?

Usually minutes, but resolvers can cache the old record for the TTL. Run the checker again after a few minutes, or lower the TTL before planned changes.

Why does SPF pass but my email still goes to spam?

SPF is one of many signals. Missing DKIM or DMARC, a poor domain or IP reputation, a bad list, spammy content or high complaint rates can all put mail in spam. Run the Email Deliverability Test for the full picture.

Do I need SPF if I use Google Workspace or Microsoft 365?

Yes. Add their include (for example include:_spf.google.com) to your record so their servers are authorised. Your domain still needs a record even when a big provider sends for you.

What is SPF flattening?

Replacing include terms with the IP addresses they resolve to, to save lookups. It works but breaks when the provider changes its IPs, so use automatic flattening or do it only for stable senders.

What is the ptr mechanism and why avoid it?

ptr uses reverse DNS to match senders. It is slow, unreliable and deprecated by RFC 7208. Replace it with ip4, ip6 or include.

Does SPF protect the From address I see in my inbox?

Not by itself. SPF checks the envelope sender, which can differ from the visible From address. DMARC links SPF and DKIM to the visible From domain.

What is the SPF record for Google Workspace?

v=spf1 include:_spf.google.com ~all. Add other senders before the ~all, and keep only one SPF record on the domain.

What is the SPF record for Microsoft 365 or Office 365?

v=spf1 include:spf.protection.outlook.com -all is the value Microsoft documents. Add other senders before the -all.

What is the SendGrid SPF record?

Add include:sendgrid.net to your SPF record. SendGrid also asks you to authenticate your domain with CNAME records, which handles DKIM and a custom return path.

What does "no SPF record found" mean and how do I fix it?

The domain publishes no TXT record starting with v=spf1, so receivers cannot confirm your senders. Create one with the SPF record generator, publish it as a TXT record at @ and check it again.

How do I add an IP address to my SPF record?

Add ip4:203.0.113.10 for IPv4 or ip6:2001:db8::1 for IPv6 before the all term. IP mechanisms do not use DNS lookups.

How do I set an SPF record for a subdomain?

Publish a TXT record on the subdomain name, for example mail.example.com, with its own v=spf1 record. A subdomain does not inherit the root domain's SPF.

What does an SPF record with -all mean?

-all is a hard fail: mail from servers that are not listed should be rejected. ~all is a soft fail. Use -all once every legitimate sender is listed.

How do I combine or merge SPF records?

Combine the include and ip mechanisms of all records into one v=spf1 record with a single all at the end, then delete the others and re-check the lookup count.

Need the fixes done for you?

LeadNurturix is a cold email agency. We set up sending domains and mailboxes with SPF, DKIM and DMARC done right, build targeted B2B lead lists, write the sequences and run the campaigns. Start with a free deliverability audit and we will tell you exactly what to change.

For Urgent Queries