Official DNS Guide • Business Email & Productivity

Google Workspace (Gmail) SPF Record Setup & Validator

Step-by-step guide to configure Google Workspace SPF records (include:_spf.google.com), generate 2048-bit DKIM keys, and enforce DMARC. Validate your DNS live.

Quick Answer • Exact Google Workspace SPF Syntax

To authorize Google Workspace (Gmail) to send emails on behalf of your domain, add include:_spf.google.com to your domain's single DNS TXT SPF record before the terminating ~all mechanism. The standard record is v=spf1 include:_spf.google.com ~all.

Live Google Workspace DNS Validator

Test your domain's published SPF, DKIM, and DMARC records via global DoH edge nodes in real time.

Zero-Log Client Evaluation

Understanding Google Workspace (Gmail) Email Authentication

Google Workspace (formerly G Suite) requires domain administrators to authenticate outbound mail using SPF, DKIM, and DMARC. Messages sent without aligned authentication are automatically throttled, marked as spam, or rejected at receiving gateways.

When Google Workspace (Gmail) delivers outbound emails on your behalf, recipient mail transfer agents (MTAs) at Google, Yahoo, Microsoft, and corporate mail gateways inspect the sender identity. Without a published SPF record explicitly permitting Google Workspace (Gmail)'s IP ranges, these emails trigger SPF Softfail (~all) or Hardfail (-all), severely degrading domain reputation and inbox placement.

Required DNS Records for Google Workspace

Publish the following DNS records in your domain registrar or DNS management console (Cloudflare, AWS Route 53, GoDaddy, Namecheap):

TypeHost / NameValue / TargetTTLPurpose
TXT@v=spf1 include:_spf.google.com ~all3600Authorizes Google mail servers.
TXTgoogle._domainkeyv=DKIM1; k=rsa; p=MIIBIjANBgkqhki...3600Google 2048-bit public signature key.
TXT_dmarcv=DMARC1; p=reject; rua=mailto:dmarc@yourdomain.com3600Enforces anti-spoofing policy.
MX@smtp.google.com3600Incoming Google mail exchange.

Step-by-Step Setup Instructions

1

Log into your DNS management portal (Cloudflare, GoDaddy, Namecheap, Route 53).

2

Locate your existing DNS records and check if a TXT record beginning with "v=spf1" already exists.

3

If an SPF record exists, merge Google by inserting "include:_spf.google.com" before the terminating "~all". Never create two separate SPF TXT records.

4

If no SPF record exists, create a new TXT record with Host "@" and Value "v=spf1 include:_spf.google.com ~all".

5

Navigate to Google Admin Console > Apps > Google Workspace > Gmail > Authenticate email to generate your 2048-bit DKIM key.

6

Add the generated DKIM TXT record at "google._domainkey.yourdomain.com" and click "Start Authentication" in the Admin Console.

7

Publish a DMARC TXT record at "_dmarc.yourdomain.com" with at least "v=DMARC1; p=quarantine;" or "v=DMARC1; p=reject;".

Common Google Workspace SPF Configuration Mistakes

× Multiple SPF TXT Records Published

Cause: Creating a second TXT record with include:_spf.google.com.

Fix: Merge into one record: "v=spf1 include:_spf.google.com ~all".

Frequently Asked Questions

What is the exact SPF include mechanism for Google Workspace?

The official SPF mechanism is "include:_spf.google.com".