Google Workspace MX, SPF, DKIM & DMARC DNS records
Google Workspace is a mailbox hosting service; to send as your domain it needs 1 MX record(s) (smtp.google.com), include:_spf.google.com in your SPF record, 1 TXT DKIM record and a DMARC record that you publish.
Last verified 2026-10-20 against the provider's documentation. Rows marked not re-verified come from earlier research. · Mailbox hosting
Google Workspace DNS records
| Record | Host | Type | Value | Source |
|---|---|---|---|---|
| MX | @ | MX | 1 smtp.google.com | Set up MX records for Google Workspace verified 2026-10-20 |
| SPF | @ | TXT | include:_spf.google.com Add inside your existing v=spf1 record; never publish a second one. | Set up SPF verified 2026-10-20 |
| DKIM | google._domainkey | TXT | Generated in your Google Workspace account; copy it from the console. | Set up DKIM verified 2026-10-20 |
| DMARC | _dmarc | TXT | v=DMARC1; p=none | Set up DMARC verified 2026-10-20 |
Who handles SPF for Google Workspace?
You publish SPF. Add include:_spf.google.com to your domain's single SPF record (RFC 7208 section 3.2 allows only one) before the all mechanism.
Source: Set up SPF (verified 2026-10-20)
DKIM: 1 records for Google Workspace
Google Workspace documents one TXT DKIM record for your domain.
- DKIM is published as a TXT record that holds the public key (RFC 6376 section 3.6.1).
- Key length in the documentation: 2048-bit RSA.
- Google Workspace allows a custom DKIM selector, so the one listed is the default, not the only valid name.
Source: Set up DKIM (verified 2026-10-20)
How DMARC passes with Google Workspace
The documented setup can align through both SPF and DKIM.
DMARC for Google Workspace
The documentation shows this starter record.
v=DMARC1; p=none
Source: Set up DMARC (verified 2026-10-20)
Google Workspace MX notes
The documentation says legacy MX hosts beginning with “aspmx” are still supported.
Source: Set up MX records for Google Workspace (verified 2026-10-20)
Setup in Google Workspace
- Admin console > Apps > Google Workspace > Gmail > Authenticate email: select the domain and click Generate New Record
- Add the TXT record (host name and value shown) at your DNS host
- Back on Authenticate email, click Start authentication
Source: knowledge.workspace.google.com (verified 2026-10-20)
Check your Google Workspace setup
Compare your live DNS with these records.
Setup guide
- DKIM key length: 1024 vs 2048 bits (and Ed25519)
- DMARC fails even though SPF and DKIM pass: fixing alignment
- Multiple DMARC records: why none applies and how to merge
- DMARC p=none to quarantine to reject: a safe rollout
- DMARC reports explained: rua, ruf and external addresses
- DMARC record syntax errors and how to fix them
- How to read email headers: Received, SPF, DKIM, DMARC
- Gmail and Yahoo bulk sender rules: compliance checklist
- How DKIM works and how to publish a DKIM record
- How to set up a DMARC record, from p=none to p=reject
- How to set up MX records (priorities, null MX, migration)
- Set up SPF, DKIM and DMARC for Google Workspace
- How to create an SPF record (syntax and examples)
- Two SPF records on one domain: permerror and how to merge
- SPF ~all vs -all vs ?all: softfail, fail and neutral
- SPF syntax errors: every checker message explained
- SPF “too many DNS lookups”: why it happens and how to fix it
More providers in Mailbox hosting
FAQ
Do I add an SPF include for Google Workspace?
Yes. Google Workspace's documentation names include:_spf.google.com. Add it inside your existing SPF record, because a domain may publish only one (RFC 7208 section 3.2).
How does Google Workspace publish DKIM?
Google Workspace documents 1 TXT DKIM record. Documented host names: google._domainkey.
Which MX records does Google Workspace use?
The documentation for Google Workspace lists: 1 smtp.google.com.