Free SPF record check

SPF checker

This free SPF checker counts every DNS lookup in your record, shows which service is eating them, and tells you exactly what to cut. Ten lookups is the hard limit, and one over breaks SPF for all your email.

Example result for yourcompany.com

Spam risk

Your SPF record breaks the 10-lookup limit

Gmail and Outlook can't confirm your email is from you, so more of it lands in spam.

AffectsGmailOutlookYahoo

DNS lookups used

12 of 10

Limit: 102 over

How to fix it

Remove services you no longer send from. Each include costs at least one lookup: SendGrid uses 2, Salesforce uses 2, Google Workspace uses 1. Delete any you have stopped using.

Drop a and mx unless those servers send email. Your website and inbox servers rarely send mail themselves. Removing a and mx saves 2 lookups.

Still over? Flatten the record. Flattening swaps includes for the addresses behind them, which cost no lookups. Use a service that updates it for you, because providers change their addresses.

Why?

Your SPF record needs 12 DNS lookups. Inboxes stop at 10, so the whole record fails. If your DKIM isn't working either, Gmail and Outlook refuse some of your email.

The technical bit

This record needs 12 DNS lookups. Inboxes stop at 10, so SPF fails and your email can land in spam, even when it comes from a service you've listed.

Your SPF record

v=spf1 a mx include:_spf.google.com include:spf.protection.outlook.com include:sendgrid.net include:servers.mcsv.net include:mail.zendesk.com include:spf.mandrillapp.com include:_spf.salesforce.com include:mktomail.com ~all

What uses your lookups

Part of the recordServiceLookups
aYour website's server1
mxYour inbox servers (Google Workspace)1
include:_spf.google.comGoogle Workspace1
include:spf.protection.outlook.comMicrosoft 3651
include:sendgrid.netSendGrid↳ ab.sendgrid.net2
include:servers.mcsv.netMailchimp1
include:mail.zendesk.comZendesk1
include:spf.mandrillapp.comMandrill1
include:_spf.salesforce.comSalesforce↳ _spfblocka.salesforce.com2
include:mktomail.comMarketo1
~allEveryone else: soft failFree
Total12

Checks

Only one SPF recordPass
10 lookups or fewerFail (12)
Safe ending~all
Every include has a recordPass
Every part is validPass
No outdated partsPass

What your SPF record does

SPF is a list of the servers allowed to send email as @yourcompany.com. When an email arrives, the inbox checks whether the server that delivered it is on the list.

Yours allows your website's server, your own inbox servers (Google Workspace), Google Workspace, Microsoft 365, SendGrid and 5 more. Email from any other server "soft fails": inboxes treat it with suspicion.

Checking it takes 12 DNS lookups, but SPF allows only 10. Past 10, inboxes give up and SPF fails for every email. SPF on its own checks the behind-the-scenes return address, not the From address people see; DMARC is what ties the two together.

Each part of the record

v=spf1
Marks this TXT record as SPF. spf1 is the only version there is.
a
Allows your website's server to send as you. Uses 1 DNS lookup.
mx
Allows your own inbox servers (Google Workspace) to send as you. Uses 1 DNS lookup.
include:_spf.google.com
Allows Google Workspace to send as you. It points to the list _spf.google.com publishes, so it stays up to date when they add servers. Uses 1 DNS lookup.
include:spf.protection.outlook.com
Allows Microsoft 365 to send as you. It points to the list spf.protection.outlook.com publishes, so it stays up to date when they add servers. Uses 1 DNS lookup.
include:sendgrid.net
Allows SendGrid to send as you. It points to the list sendgrid.net publishes, so it stays up to date when they add servers. Uses 2 DNS lookups.
include:servers.mcsv.net
Allows Mailchimp to send as you. It points to the list servers.mcsv.net publishes, so it stays up to date when they add servers. Uses 1 DNS lookup.
include:mail.zendesk.com
Allows Zendesk to send as you. It points to the list mail.zendesk.com publishes, so it stays up to date when they add servers. Uses 1 DNS lookup.
include:spf.mandrillapp.com
Allows Mandrill to send as you. It points to the list spf.mandrillapp.com publishes, so it stays up to date when they add servers. Uses 1 DNS lookup.
include:_spf.salesforce.com
Allows Salesforce to send as you. It points to the list _spf.salesforce.com publishes, so it stays up to date when they add servers. Uses 2 DNS lookups.
include:mktomail.com
Allows Marketo to send as you. It points to the list mktomail.com publishes, so it stays up to date when they add servers. Uses 1 DNS lookup.
~all
Soft fail. Email from any server not listed before it fails SPF, but inboxes are asked to treat it with suspicion (usually the spam folder or extra checks) rather than refuse it. The most common ending.

Your choices

  • Tighter: end with -all. Email from servers you haven't listed fails outright instead of being treated with suspicion.

    Risk: Any service you forgot to list (a newsletter tool, your CRM, a website contact form) has its email refused by some inboxes, and email someone forwards on fails SPF more often. Once DMARC is at quarantine or reject, Gmail and Outlook treat ~all and -all almost the same, because DMARC makes the decision.

  • Looser: end with ?all. Inboxes get no verdict on servers you haven't listed.

    Risk: SPF then stops protecting you. Not recommended.

  • Adding a service. Put its include in this same record, before the ~all. Never add a second SPF record.

    Risk: Each include uses lookups, and you're already 2 over the limit of 10, so SPF fails for every email.

  • Removing a service you've stopped using. Delete its include. That frees lookups and stops it sending as you.

    Risk: If anything still sends through it, such as an old website form or an invoicing tool, that email starts failing SPF.

This is an example, not a live check. Check DKIM · Scan SPF, DKIM, DMARC, MX and blacklists together

Tools for this job

Sponsored

EasyDMARC

Don't want to manage it by hand? EasyDMARC flattens SPF for you and keeps it up to date.

Visit EasyDMARC

Sponsored

Premium Inboxes

Setting up new sending domains? Premium Inboxes adds SPF, DKIM and DMARC for you and loads the inboxes into your sending tool.

Visit Premium Inboxes

What an SPF record does

SPF is one TXT record that lists every service allowed to send email for your domain. Inboxes check it on every message, and the ending tells them what to do with everyone else.

-all

Hard fail

Mail from anyone not listed fails outright. Use it once you are sure every sender is in the record.

~all

Soft fail

Mail from senders you haven’t listed is treated with suspicion. The safe, common choice, especially alongside DMARC.

+all and ?all

Avoid

+all lets anyone in the world send as you, and ?all tells inboxes nothing. Neither protects your domain.

What counts towards the 10 lookups

Every part that makes an inbox look something up uses one of your 10, including the includes nested inside other includes. One service can use several.

Uses a lookup

include:another service's SPF record, plus every include inside it

athe address of your website's server

mxthe addresses of your inbox servers

redirect=hands the whole check to another domain

exists, ptrrarely used; ptr is outdated and best removed

Free

ip4:a fixed IPv4 address or range

ip6:a fixed IPv6 address or range

~all, -allthe ending rule

That is why flattening works: it swaps includes for ip4 and ip6 addresses, which cost nothing.

SPF checker questions

It reads the SPF record in your domain’s DNS, follows every include, counts the DNS lookups against the limit of 10 and checks the ending. Then it tells you which service uses each lookup and what to change.

The SPF standard caps lookups so one email can’t make inboxes chase endless records. Go over 10 and the check fails, so receiving servers treat your mail as unverified.

No. With two SPF records every check fails. Merge everything into one record and delete the other. The checker writes the merged record for you.

Use ~all while you are still finding every sender. Once DMARC is in place it does the enforcing, so ~all is fine long term. Use -all when you are certain the list is complete.

Step-by-step fix guides: SPF record syntax, with examples · SPF record for Google Workspace · SPF record for Microsoft 365 · How to fix SPF “too many DNS lookups” · Multiple SPF records · SPF softfail