DNS AuthSPF · DKIM · DMARC · MX

Read-only public DNS
Dashboard · API

Fix guides · Google Workspace · spf

Fix Google Workspace SPF

Last verified 2026-10-23. DNS Auth is not affiliated with Google. Publishing these records does not guarantee inbox placement.

Google Workspace documentation (external; we are not affiliated)

LAST VERIFIED

Definition
SPF is a public TXT record on the domain apex that names which servers may send mail for the domain. For Google Workspace, include _spf.google.com on a single v=spf1 record and never publish a second SPF TXT.
Correct shape
@ · TXT · v=spf1 include:_spf.google.com ~all
Verify
The free check should show one SPF record that includes _spf.google.com.

The problem

SPF is how a domain names the servers allowed to send mail for it. Google Workspace sends from Google's infrastructure, so the apex TXT has to include _spf.google.com. If that include is missing, mail Google sends can fail SPF.

A second TXT that also starts with v=spf1 is a permanent error, not a backup. Extra senders belong on the same record. The free check does not expand includes, so a nested chain past the lookup limit can still fail at a receiver.

Check this domain first

Check the domain before you edit DNS. The free check shows a missing SPF record, two SPF records, +all, and ~all. It reads public DNS only and does not log in to the DNS host.

One lookup, usually a few seconds. Shareable links only include the domain.

Record to publish

Host @ · TXT

v=spf1 include:_spf.google.com ~all

Publish this on the apex, the host named @ at many DNS hosts. _spf.google.com is Google's include target. Do not create that host on your domain. If another service also sends, add its include to this same record. Keep ~all while you confirm every sender, then change the ending to -all. Never use +all.

Steps

  1. Open the apex TXT records. At your DNS host, list TXT records on the bare domain. Ignore records that do not start with v=spf1. DKIM and DMARC live on other host names.
  2. Keep a single v=spf1 record. If one already exists, edit it. If two exist, copy the includes you still need into one record and delete the other. Receivers treat two SPF records as a permanent error.
  3. Include Google before the all mechanism. The record should contain include:_spf.google.com and end with one all mechanism. Do not publish the TXT at _spf.google.com.
  4. Use ~all until the sender list is complete. ~all marks unmatched mail as suspicious. Change the ending to -all only after every real sender, including a website form or a billing tool, is on this record. +all authorizes the whole internet.
  5. Save and wait for the TTL. DNS hosts publish at their own speed. Run the free check again after the old record should have expired. Add new senders by editing this record, not by creating another.

Verify

  • The free check should show one SPF record that includes _spf.google.com.
  • The record must not contain +all. ~all is a starting point. -all is the stricter ending, after every sender is listed.
  • A lookup of the apex should return a single TXT that starts with v=spf1.
  • A passing SPF check is not a promise that mail will be accepted.

Common mistakes

  • Two SPF records

    Merge them. A second v=spf1 TXT does not add permission. It makes SPF unusable.

  • Publishing the record at _spf.google.com

    That name is the target of include:_spf.google.com. It is not a host you create on your own domain.

  • +all

    The plus qualifier authorizes every server. Replace it. ~all is the temporary ending while you list senders.

  • -all before the inventory is done

    Hard fail tells receivers to reject mail that does not match. A missing include for a real sender fails closed.

  • Too many lookups on one record

    include, a, mx, exists, ptr, and redirect each spend from a budget of 10 lookups on the record itself. Nested includes are not expanded by the free check, so a receiver can still return a permanent error when this page's text looks short.

Questions

Where does the Google Workspace SPF record go?

On the apex of the domain in the From address, as one TXT record. Not on www, and not on _spf.google.com.

Can an existing SPF record stay if Google is added?

Yes. Edit that record and add include:_spf.google.com. Do not publish a second TXT that starts with v=spf1.

Should the record end with ~all or -all?

~all is the safer ending while you confirm every sender. -all asks receivers to reject mail that fails SPF. Use it after the free check shows one complete record and legitimate mail is passing. Do not use +all.

Does SPF decide inbox placement?

No. SPF names the servers allowed to send. Receivers still apply their own filters. DNS Auth only reads the public record.

Next

Run the free check on the homepage, or open Monitoring. Monitoring is $15/mo for up to 5 domains with daily rechecks and change alerts. A published record is not an inbox promise.

Free checkMonitoring · $15/mo

Related guides

Helpful?