GuideEmail checker

SPF checker and SPF record examples: one correct record for every sender

Check your domain's SPF free below, then copy the example that matches your setup and stay inside the 10 DNS lookup limit.

Usual wait: About 5 seconds

Run it again on the full email checker Your second check runs there, with your details carried over.

What is an SPF record?

An SPF record is a single TXT record on your domain that lists the servers allowed to send email for it, such as v=spf1 include:_spf.google.com ~all for Google Workspace. Receivers compare the server that sent a message with that list. A domain must have only one SPF record, and checking it must take no more than 10 DNS lookups.

How to check and fix your SPF record

  1. Check the record

    Enter your domain above. The checker reads your SPF TXT record, says how it ends, and counts the DNS lookups it can see in it.

  2. Make sure there is only one

    If the check shows more than one SPF record, merge them. RFC 7208 says a domain must not have multiple SPF records, and receivers treat that as a permanent error.

  3. List every sender

    Mailbox provider, newsletter platform, CRM, invoicing tool, website forms and any office server. Each one that sends as your domain needs an include: or ip4: entry.

  4. Start from the right example

    Take the record below that matches your mail provider, then add your other senders before the all at the end.

  5. Choose how it ends

    Google's record ends in ~all. Microsoft recommends -all for Microsoft 365 domains that also have DKIM and DMARC. Never end in +all.

  6. Count the lookups

    include, a, mx, ptr, exists and redirect each count; ip4, ip6 and all do not. Nested includes count too. Stay at 10 or fewer.

  7. Publish, then wait

    Replace the old TXT record with the new one at your DNS host. Google says SPF can take up to 48 hours to start working.

  8. Check again

    Run the next check on the full email checker page, and confirm DKIM and DMARC there at the same time.

SPF record examples

Copy the line that matches your setup, then add any other sender before the ending.

SetupRecordNotes
Google Workspace onlyv=spf1 include:_spf.google.com ~allGoogle's own record
Google Workspace and Amazon SESv=spf1 include:_spf.google.com include:amazonses.com ~allGoogle's example of a second sender
Microsoft 365 onlyv=spf1 include:spf.protection.outlook.com -allMicrosoft's record for its commercial cloud
Microsoft 365 and an office mail serverv=spf1 ip4:192.168.0.10 include:spf.protection.outlook.com -allMicrosoft's example; use your server's public IP address
A marketing subdomainv=spf1 include:sender.example include:spf.protection.outlook.com -allPublished on marketing.yourdomain; each sending subdomain needs its own record
A domain that sends no mailv=spf1 -allMicrosoft's record for parked domains

Records from Google Workspace Admin Help and Microsoft Learn. sender.example stands for the include value your sending service gives you.

How the ending changes the result

EndingResult for servers not listedWhen to use it
-allFailMicrosoft recommends it for Microsoft 365 domains with DKIM and DMARC in place
~allSoftfailUsed in Google's record; a common choice while you confirm every sender
?allNeutralTesting only; Microsoft does not recommend it in production
+allPass, for any server at allNever: it lets anyone send as you

Microsoft notes that DMARC treats both -all and ~all as SPF failures.

The SPF checklist

  • Exactly one TXT record on the domain starts with v=spf1
  • Every service that sends as your domain is listed
  • Services you no longer use have been removed
  • The record ends in ~all or -all, never +all
  • No ptr mechanism, which RFC 7208 says should not be published
  • 10 DNS lookups or fewer, with nested includes counted
  • Each subdomain that sends mail has its own SPF record
  • Parked domains carry v=spf1 -all
  • The record is published as TXT, the only type RFC 7208 allows
  • Long records are split into strings of 255 characters or fewer
  • DKIM and DMARC are set up too; SPF is one record of three, not the whole job

Who uses this guide

  • IT leads

    Audit SPF on every domain and subdomain the business owns, and remove senders nobody uses any more.

  • Developers

    Add the include for a new transactional email service before the first password reset or receipt goes out.

  • Office managers

    Check SPF after changing mail provider, when an old record is easy to leave behind.

  • Marketing teams

    Before connecting a new newsletter or CRM tool, check how many lookups the record has left.

  • Freelancers on their own domain

    Get the single Google or Microsoft record right on the first day.

  • Managed IT providers

    Spot duplicate SPF records on client domains in seconds and send the merged record.

Worked examples

Two records after a migration

Suppose the check shows v=spf1 include:_spf.google.com ~all and a second record left by your old host. Both are now invalid. Delete the old one, or fold any sender you still use into the Google record as one more include.

Twelve lookups

Suppose your record has eight includes, an a and an mx, and two of those includes hold includes of their own. That is twelve lookups, over the limit, so SPF fails with a permanent error. The checker counts the ten it can see in your own record, which puts you at the limit; the two nested ones push you over. Remove senders you no longer use, and replace a and mx with ip4 entries where the addresses are stable.

Microsoft 365 ending in ~all with no DKIM

Suppose your Microsoft 365 domain ends in ~all and has no DKIM. Microsoft notes that the DMARC policy is effectively ignored for ~all failures when the message carries no DKIM signature. Turn on DKIM, then move to -all as Microsoft recommends.

What changes in 2027 for SPF

Sources

  1. RFC Editor: RFC 7208, Sender Policy Framework (SPF)
  2. Google Workspace Admin Help: Set up SPF
  3. Microsoft Learn: Set up SPF to identify valid email sources for your Microsoft 365 domain

Questions people ask

What does an SPF checker do?

It reads the SPF TXT record on your domain from public DNS and tells you whether there is exactly one, how it ends and how many DNS lookups it needs. This one also checks DKIM, DMARC and MX.

What is the SPF record for Google Workspace?

v=spf1 include:_spf.google.com ~all. If other services send as your domain, add an include for each before the ~all, as in Google's example with include:amazonses.com.

What is the SPF record for Microsoft 365?

v=spf1 include:spf.protection.outlook.com -all for Microsoft's commercial cloud. Add other senders before the -all, for example an ip4 entry for an office mail server.

Can a domain have two SPF records?

No. A domain must not have more than one SPF record, and receivers return a permanent error when they find two. Merge every sender into one record.

Should SPF end with ~all or -all?

DMARC treats both as SPF failures. Google's record uses ~all; Microsoft recommends -all for Microsoft 365 domains that also have DKIM and DMARC. Never use +all.

What is the SPF 10 lookup limit?

Checking an SPF record may trigger at most 10 DNS lookups. include, a, mx, ptr, exists and redirect count, and so do nested includes, while ip4, ip6 and all do not. Over 10, SPF fails with a permanent error.

Does each subdomain need an SPF record?

Yes, if it sends mail. Microsoft notes that the record on your main domain does not cover a subdomain such as marketing.yourdomain, which needs its own.

How long does a new SPF record take to work?

Google says SPF can take up to 48 hours to start working after you publish it. Check again on the full email checker page once that time has passed.

Does the checker count nested includes?

No. It counts the lookups it can see in your own record and marks the number as an estimate. Includes inside includes add more, so treat a count close to 10 as a full record.

Is the SPF checker free?

Yes. It is free with no login, reads public DNS only, and allows 30 email checks a day per visitor.

Growth GPS by AdEngage UAE

Send Smart Tools to your team

Re-scan after every change and watch your position move. Install it once and it opens like an app.

WhatsAppEmail

iPhone: tap Share, then Add to Home Screen. Android: tap Install when your browser offers it. Desktop: press Ctrl+D, or Cmd+D on a Mac, to bookmark.