Skip to content
DMARC Pulse

Google Workspace

SPF Google Workspace Setup: The TXT Record and How to Add It

The SPF record for Google Workspace is one TXT entry at your domain host. Exact value, the steps, how to confirm it passes and Google-specific problems.

Before you start

SPF Google Workspace setup takes one DNS TXT record on your domain, with the value v=spf1 include:_spf.google.com ~all when Google is your only sender. SPF (Sender Policy Framework) lists the servers allowed to send mail for your domain.

Google says "You don't need to do anything in your Google Admin console to set up SPF." You publish the record at your domain host, the service that runs your DNS. Whoever holds that login makes the change.

Google says you can skip setup if your domain already has SPF by default, or if you bought it from a Google partner when you signed up for Workspace. Confirm with the SPF checker that the record contains include:_spf.google.com.

SPF for Gmail addresses

There is no Gmail SPF record to publish for a personal @gmail.com address. Google owns that domain, and its record reads v=spf1 redirect=_spf.google.com. An outside tool cannot be added to it, so send from a domain you control.

Steps

  1. List every sender. Google names web servers, on-premise servers, outbound gateways, "Contact us" forms and third-party services. Caution: a sender you leave out might fail SPF and be rejected or sent to spam.

  2. See what is published. Run nslookup -type=TXT example.com 1.1.1.1 and look for a line beginning with v=spf1.

  3. Build one value. For Google Workspace alone (each term explained):

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

    Google says its addresses change often, so keep the include: term and avoid pasting IP ranges. For each other sender, add its include: before ~all, using that sender's current documentation. Google publishes this example for Workspace and Zendesk:

    TXT
    v=spf1 include:_spf.google.com include:mail.zendesk.com ~all
  4. Open your domain host, typically where you bought the domain, and find the page for DNS TXT records.

  5. Add or update the record. Type TXT. Host @, or blank if your panel uses that. Value: your line from step 3. Some hosts require quotes around the value. Caution: if a v=spf1 record already exists, edit it and place include:_spf.google.com before its all. A second SPF record breaks the check (permerror). If you already have two, merge them into one.

  6. Repeat for each domain. Google says each domain must have its own SPF record, and each subdomain you use needs one.

  7. Keep ~all. Google recommends it and says a hyphen can cause delivery issues for legitimate email. Caution: with -all, receivers may reject a sender you forgot, so switch only after DMARC reports show every sender passing.

Confirm it worked

  1. Wait. Google says SPF can take up to 48 hours to start working.
  2. Run the SPF checker again. You want exactly one v=spf1 record containing include:_spf.google.com, with 10 lookups or fewer. Check MX in the Google Admin Toolbox also counts them.
  3. From a Workspace account, email a mailbox outside your domain, such as a personal Gmail account. In Gmail, next to Reply, click More, then Show original.
  4. Find the header that starts with Authentication-Results. The text after spf= should be pass. Repeat from every other sender.

A pass counts for DMARC only when the domain of the envelope sender, the address used during delivery, aligns with your From domain. Add DKIM too, since Google says forwarded messages often fail SPF.

Common problems

  • The alert SPF record doesn’t include Google servers (likely impact to email delivery). Google means the SPF record for your primary domain lacks Google's servers. Add include:_spf.google.com to the existing record.
  • best guess record in the spf entry. Google lists three causes: SPF is missing, SPF is set up wrong, or your domain provider has a DNS issue.
  • A warning that you have no SPF record when you do. Google says more than 10 DNS lookups can cause this, and nested includes count. As of 2026-11-09, _spf.google.com listed only IP ranges, so Google's term used one lookup. See too many DNS lookups.
  • Contact form mail is rejected. Google counts a form that sends automatically as a sender for your domain. In Email Log Search, this error can mean your record omits one: 550-5.7.26 Unauthenticated email from domain-name is not accepted due to domain-name's DMARC policy
  • Forwarded mail fails SPF. Google says this can happen with a correct record. Leave out hostnames ending in unverified-forwarding.1e100.net. Google warns that adding them puts your domain at risk of forged mail.

Check it now

Validate SPF and count DNS lookups

Frequently asked questions

What is the SPF record for Google Workspace?
v=spf1 include:_spf.google.com ~all, published as a TXT record on your domain with host @. Google documents that value for domains that send only through Google Workspace. If other services also send for you, add their include: terms to that same record.
Do I need to change anything in the Google Admin console for SPF?
No. Google says you don't need to do anything in the Admin console to set up SPF. You add the record at your domain host, so you need access to your DNS panel.
Is the Gmail SPF record different from the Google Workspace one?
On your own domain with Google Workspace, it is the same record. A personal @gmail.com address has nothing for you to publish, because gmail.com belongs to Google. Its record reads v=spf1 redirect=_spf.google.com.
Should I use ~all or -all with Google Workspace?
Google recommends ~all and warns that a hyphen can be overly restrictive for legitimate mail. With -all, receivers may reject any sender you forgot to list. Move to it only after DMARC reports show that every real sender passes.
How long does SPF take to start working in Google Workspace?
Google says it can take up to 48 hours after you add the record. A fix to an existing record can take 24 to 48 hours to take effect globally.
How many DNS lookups does include:_spf.google.com use?
SPF allows 10 lookups per check. As of 2026-11-09, _spf.google.com listed only IP ranges with no nested includes, so this term used one lookup. Google can change that record, so count again after you add a sender.

Sources consulted

RFC 8601 §2.7.2 SPF
checked 2026-11-09

Related pages

Keep it healthy

Know the moment something breaks

Point your DMARC reports to DMARC Pulse and see who sends email as your domain, what fails and why — with a calm alert when anything changes.

Free plan: 1 domain, no credit card.