Home / Fix guides / Domain, DNS and email deliverability

How to fix a missing SPF record

A missing SPF record means your domain has no public list of the servers allowed to send email for it. To fix it, add one TXT record at the root of your domain that starts with v=spf1 and lists your email provider.

SPF (Sender Policy Framework) is a short line of text in your domain's DNS. It tells receiving mail servers which services are allowed to send email using your domain name. If that line does not exist, your domain has a missing SPF record. Nothing looks broken on your website, so most people only notice when emails land in spam, bounce, or a checker tool flags the domain.

What people see

A missing SPF record usually shows up in one of these ways:

  • Customers say your quotes, invoices or replies went to their spam folder, or never arrived.
  • Gmail or Outlook shows a warning or a result such as SPF: NONE in the message details.
  • A mail test tool or deliverability report says no SPF record was found.
  • Bounce messages mention SPF or say the sender could not be verified.

Why it matters

Without SPF, anyone can send email that claims to come from your domain, and receiving servers have no way to tell the real you from a fake. Mailbox providers treat unverified mail with suspicion, so even genuine messages from you are more likely to be filtered. Gmail and Yahoo have also required authentication for bulk senders, and a domain with no SPF is a weak starting point for anything else.

For a small business the cost is practical: missed enquiries, unpaid invoices that were never seen, and a domain that is easier to impersonate in scam emails sent to your customers.

SPF also underpins DMARC. If you plan to set up DMARC later, you need working SPF or DKIM first.

How to check if your domain has the problem

You can check for free in a few minutes.

  1. Go to a free lookup tool such as MXToolbox (SPF lookup) or Google Admin Toolbox (Dig), and enter your domain, for example yourbusiness.com.
  2. Look for a TXT record that begins with v=spf1.
  3. If you prefer the command line, run nslookup -type=txt yourbusiness.com on Windows, or dig TXT yourbusiness.com +short on Mac and Linux.
  4. To test a real message, send an email from your domain to a Gmail address, open it, choose Show original, and read the SPF line. PASS is good. NONE means no record was found.

If you see no v=spf1 line at all, the record is missing. If you see two or more, that is a different problem: see multiple SPF records.

SiteMonday checks this as part of its week 10 service (domain, SSL and email deliverability), so a missing SPF record appears in that week's report and ranked fix list.

How to fix it

The fix is to publish one TXT record. The steps are the same everywhere, only the screens differ.

  1. List everything that sends email as your domain. This usually means your main mailbox provider (Google Workspace, Microsoft 365, or your web host), plus any newsletter tool, invoicing system, CRM or website contact form service that sends from your address.
  2. Find each sender's SPF value. Every reputable provider publishes an include: value in its help pages. Do not guess these.
  3. Log in to wherever your DNS is managed. This is your domain registrar, your host, or a service such as Cloudflare. If you are unsure, check your nameservers with a lookup tool. The DNS provider is the one the nameservers point to.
  4. Add a TXT record. Set the host or name to @ (or leave it blank, depending on the screen), which means the root of the domain.
  5. Enter the value. Build it from v=spf1, then each include, then an ending. For example:
v=spf1 include:_spf.google.com ~all
  1. Save, and wait for DNS to update.

The ending matters. ~all (soft fail) tells receivers that mail from other sources is suspicious. -all (hard fail) tells them to reject it. Starting with ~all is the safer choice until you are sure every sender is listed. Avoid +all, which allows anyone to send as you and defeats the purpose.

If your domain never sends email at all, publish this instead:

v=spf1 -all

Common values by provider

Sending serviceUsual include value
Google Workspaceinclude:_spf.google.com
Microsoft 365include:spf.protection.outlook.com

For step by step screens, see our guides for Google Workspace and Microsoft 365. For other tools, copy the value from that tool's own documentation, since these can change.

Where the record goes

The place you add the record depends on where your DNS lives, not where you bought email. If your nameservers point to Cloudflare, add it in Cloudflare. If they point to your registrar or host, add it there. Adding a record in the wrong place is a common reason a fix appears not to work.

Some control panels offer an SPF or email authentication tool that writes the record for you. That is fine, but check the result afterwards.

How to confirm the fix worked

  1. Wait a little. Changes often show within minutes, but can take a few hours depending on the record's TTL (the cache time).
  2. Run the same lookup again and confirm exactly one v=spf1 record appears, with the values you entered.
  3. Send a fresh test email from each service that sends as your domain (mailbox, newsletter tool, contact form) to a Gmail address.
  4. Use Show original and check for SPF: PASS.

If you still see NONE, the record is probably in the wrong DNS zone, on the wrong host name (for example www instead of the root), or not yet updated.

Limits to know about

  • Only one SPF record per domain. If you add a second service, edit the existing record and add another include:, do not create a second TXT record.
  • Ten lookups maximum. Each include: can trigger further DNS lookups, and SPF fails if the total goes past 10. Too many tools in one record is a common cause.
  • SPF alone is not enough. It works best alongside DKIM and DMARC. If your mail still goes to spam after SPF passes, look at DKIM and DMARC next.

How to stop it coming back

  • Keep a short list of every service that sends email as your domain, and update the SPF record whenever you add or drop one.
  • Before moving DNS to a new host or changing nameservers, export or copy your existing records so the SPF line is not lost.
  • Do not delete TXT records you do not recognise without checking, since SPF, verification codes and DKIM keys all live there.
  • Recheck after any change to your email provider, newsletter tool or website host.
  • Test a real email once or twice a year.

SiteMonday finds and explains problems like this, but making the DNS change is up to you or your developer or IT provider.

Step by step for your platform

Questions

What does a missing SPF record mean?

It means your domain has no TXT record starting with `v=spf1`, so receiving servers cannot tell which services may send email for you. Your mail may be flagged as suspicious or sent to spam.

Will adding an SPF record stop my emails going to spam?

It helps and is often required, but it is only one part. DKIM, DMARC, your sending reputation and the content of your messages also affect where email lands.

How long does an SPF record take to work?

Often a few minutes, but it can take several hours depending on the DNS cache time (TTL). Check again with a lookup tool before assuming something is wrong.

Should I use ~all or -all?

Start with `~all` (soft fail) while you confirm every sender is listed. Move to `-all` (hard fail) once you are sure nothing legitimate will be blocked.

Can I have more than one SPF record?

No. A domain should have exactly one SPF TXT record, and having two can cause SPF to fail. Combine all your senders into a single record with several `include:` entries.

Do I need SPF if I only send email from Gmail or Outlook?

Yes. Your domain still needs an SPF record that includes your provider, such as `include:_spf.google.com` for Google Workspace or `include:spf.protection.outlook.com` for Microsoft 365.

Related problems