| 5 min read

Google Workspace SPF record: setup and verification

Publish the Google Workspace SPF record, merge other senders into one TXT value, avoid the 10-query limit, and verify DMARC alignment.

ML
Marc Lelu
Google Workspace SPF record: setup and verification

The current Google Workspace SPF record is:

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

Publish it as a TXT record at the root domain when Google Workspace is your only sender:

Field Value
Type TXT
Host / Name @
Value v=spf1 include:_spf.google.com ~all

That value comes from Google’s current SPF setup documentation. We verified it in August 2026. The same value applies when an older configuration or search result calls the service G Suite.

From the DMARC reports we process, the Google record is rarely the difficult part. The common failure is an old second SPF record or a third-party sender that uses the same From domain but was never added or authenticated with DKIM.

Before you start

You need DNS access for the domain in your From address. For example, if users send as [email protected], update DNS for example.com.

You also need a sender inventory. Google Workspace might be your mailbox provider, but your domain may also send from Stripe, HubSpot, Mailchimp, Zendesk, Salesforce, SendGrid, or an invoicing system. A domain can only have one SPF record covering all of them.

Run your domain through the DMARCTrust domain checker before editing DNS. If an SPF record already exists, edit it instead of creating a second one.

Step 1: check for an existing SPF record

In your DNS provider, look for TXT records at the root domain, usually shown as @.

If you see a TXT value that starts with v=spf1, keep it and edit that value instead of adding another SPF TXT record, because two SPF records cause receivers to return PermError.

Step 2: publish the Google Workspace SPF value

If Google Workspace is your only sender, add or edit this TXT record. Our SPF record generator builds the value for you and counts DNS lookups so you stay under the limit:

Field Value
Type TXT
Host / Name @
Value v=spf1 include:_spf.google.com ~all
TTL Default

Some DNS providers want the host to be blank instead of @. Use the format your DNS provider expects.

Google recommends ~all in its examples. A hard fail (-all) can be reasonable later, but use it only after you know every sender is covered.

Step 3: merge other senders into the same record

If another service uses this domain as its SPF identity, merge that provider’s documented mechanism into the same SPF value. Do not add a provider only because it appears in the visible From address.

For example, Google Workspace plus Microsoft 365:

v=spf1 include:_spf.google.com include:spf.protection.outlook.com ~all

For SendGrid, inspect the return-path first. Current SendGrid domain authentication normally uses a dedicated branded subdomain. See the SendGrid SPF guide before adding include:sendgrid.net at the root.

Google Workspace plus Zendesk:

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

Keep the full evaluation within SPF’s 10 DNS-querying-term limit. That cap counts more than visible include: terms: nested includes, a, mx, redirect, and exists also consume lookups.

Step 4: verify SPF

Run the domain through our SPF checker: include:_spf.google.com brings its own nested lookups into the count, and the checker shows exactly how much headroom is left against the limit of 10 before your next sender tips the record into permerror.

DNS changes can take time to propagate. Google’s docs say SPF authentication can take up to 48 hours to start working.

Use the DMARCTrust domain checker to confirm:

  • There is exactly one SPF record.
  • The record includes _spf.google.com.
  • The lookup count is below 10.
  • The syntax starts with v=spf1.

Then send a test email from Google Workspace to a Gmail or Outlook mailbox and inspect the authentication results. SPF should pass for mail sent through Google.

Common mistakes

  • Adding a second SPF record breaks authentication. Keep one TXT record at the root and merge Google into it.
  • Publishing SPF on the wrong host leaves your domain unprotected. For normal Google Workspace mail from example.com, publish SPF at @ (or blank if your DNS host expects it), rather than _spf, _dmarc, or mail.
  • Leaving out non-Google senders causes legitimate mail to fail SPF, because Google Workspace does not authorize your CRM, helpdesk, marketing platform, or payment provider.
  • Relying on SPF alone for DMARC fails whenever messages are forwarded or sent through third-party tools that do not align with the visible From domain, so pair SPF with DKIM.

What about DKIM and DMARC?

Google says bulk senders need SPF, DKIM, and DMARC. SPF is only one path. Set up Google Workspace DKIM so Gmail signs mail with your domain.

SPF passing is not enough for DMARC. The envelope sender domain must align with the visible From domain, so check a real delivered message as well as the DNS record.

After SPF and DKIM are working, publish a DMARC record with reporting:

v=DMARC1; p=none; rua=mailto:[email protected];

Use the DMARC generator to create the record and add your DMARCTrust reporting address.

FAQ

What is the SPF record for Google Workspace?

For a domain that sends only with Google Workspace, use v=spf1 include:_spf.google.com ~all.

Should I use gmail.com in my SPF record?

No. For Google Workspace custom domains, use _spf.google.com.

What is the G Suite SPF record?

Use the current Google Workspace value: v=spf1 include:_spf.google.com ~all. Do not copy an old Google Apps hostname from a legacy guide.

Can I have Google Workspace and SendGrid in the same SPF record?

Only when SendGrid instructs you to publish include:sendgrid.net at the same hostname. Current SendGrid domain authentication usually places SPF on a branded return-path subdomain. Publish the generated SendGrid records instead of adding the include to the root by default.

How do I know SPF is working?

Check your domain with DMARCTrust, then inspect a test message’s authentication results. SPF should pass for mail sent through Google Workspace.

Read Next

View all posts
ESPs, subdomains, and the "can't get DKIM to align w/ DMARC" rabbit hole
DMARC setup ·

ESPs, subdomains, and the "can't get DKIM to align w/ DMARC" rabbit hole

A recurring forum storyline: you set up an ESP, authentication tools say it's fine, yet DMARC alignment is still broken. This usually comes down to how the ESP signs DKIM (d=), whether you're using a custom sending domain, and whether you should isolate with a sending subdomain.

DT
DMARCTrust
4 min read
DMARC, SPF, DKIM... and the thing everyone misses: alignment
DMARC setup ·

DMARC, SPF, DKIM... and the thing everyone misses: alignment

Forum threads keep repeating the same confusion: "SPF and DKIM pass, so why does DMARC fail?" The missing mental model is DMARC alignment. We explain aspf/adkim, organizational vs strict alignment, and why you likely rely on DKIM alignment more than you think.

DT
DMARCTrust
4 min read

Manage your cookie preferences below. Essential cookies are always active as they are required for the website to function.

Essential cookies

Required for the website to function. Cannot be disabled.

Always active

Attribution cookie

Remembers which page, referring site, or campaign first brought you here. First-party only, never shared with third parties.

Always active (legitimate interest)

Learn more about how we use cookies in our cookie policy.