Google Workspace delivers your mail, but it doesn’t authenticate your domain for you. Without SPF, DKIM and DMARC, your messages to Gmail and other providers are more likely to land in spam, and anyone can send in your name. Here is the setup in the order Google recommends, with the exact values from its documentation.
The short version
| Record | Type | Name | Value |
|---|---|---|---|
| SPF | TXT | @ | v=spf1 include:_spf.google.com ~all |
| DKIM | TXT | google._domainkey | v=DKIM1; k=rsa; p=... generated in the Admin console |
| DMARC | TXT | _dmarc | v=DMARC1; p=none; rua=mailto:dmarc@example.com to start |
Order matters: Google asks that SPF and DKIM have been authenticating messages for at least 48 hours before you turn on DMARC.
Step 1: SPF
If Google Workspace is the only service sending mail for your domain, Google’s record is:
v=spf1 include:_spf.google.com ~all
If other services send for you, add their includes to the same record. Google gives this example for a domain that also sends through Microsoft 365:
v=spf1 include:_spf.google.com include:spf.protection.outlook.com ~all
Rules to keep in mind:
- One SPF record per domain. Two
v=spf1records make SPF fail. - 10 DNS lookups maximum, and
include:_spf.google.comalready uses several of them. Check with the SPF Checker. - Google recommends
~all(softfail). Once DMARC is enforced,-allis a reasonable choice too, since DMARC decides what happens to failing mail.
Step 2: DKIM
Generate the key
In the Google Admin console, go to Menu > Apps > Google Workspace > Gmail, then Authenticate email. Select your domain and click Generate New Record:
- Key length: 2048 bits if your DNS host accepts it, which is almost always the case. Choose 1024 only if your host can’t store a 2048-bit key. (Gmail requires at least 1024 bits.)
- Prefix selector:
google, Google’s default. Pick another prefix only if your domain already has agooglekey.
Don’t click Start authentication yet. Google also notes that after turning on Gmail for your organization, you may have to wait 24 to 72 hours before the key can be generated.
Publish it
Create a TXT record named google._domainkey with the value shown in the Admin console, which starts with v=DKIM1; k=rsa; p=. A 2048-bit key is long: if your DNS host splits it into several quoted strings, that’s fine, as long as nothing is lost.
Turn it on
Back in Authenticate email, select the domain and click Start authentication. The status changes to “Authenticating email with DKIM”. It can take up to 48 hours to start working.
To confirm, send a message to a Gmail address (not to yourself), open Show original and look for DKIM: 'PASS'. Or check the key with the DKIM Checker, selector google.
Step 3: DMARC
Google recommends starting with p=none and watching the reports:
_dmarc.example.com TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.com"
A few points from Google’s documentation:
ruf=is not supported by Gmail: only aggregate reports (rua=) are sent.- Alignment is relaxed by default (
adkim=r,aspf=r), which suits most domains. - Google’s own examples still contain
pct=. That tag was removed by DMARCbis (RFC 9989); leave it out of new records.
After a few weeks of clean reports, move to p=quarantine, then p=reject. Our migration guide details each phase. And if you want your logo in Gmail with BIMI, note that BIMI doesn’t accept p=none.
What Gmail requires from senders
Gmail’s sender guidelines set two levels:
| All senders | More than 5,000 messages a day to Gmail | |
|---|---|---|
| Authentication | SPF or DKIM | SPF and DKIM, plus DMARC (p=none accepted) |
| Alignment | From: aligned with SPF or DKIM | |
| Spam rate (Postmaster Tools) | below 0.3% | below 0.3% (aim for 0.1%) |
| Unsubscribe | One-click unsubscribe for marketing mail |
Both levels also require valid forward and reverse DNS for sending IPs and TLS. With Google Workspace sending, those are handled by Google; your part is the DNS records above.
Check the whole setup
- SPF Checker: one record,
_spf.google.comincluded, under 10 lookups - DKIM Checker: selector
google, 2048-bit key - DMARC Checker: one record, with
rua= - Email deliverability test: send from Gmail with your Workspace address and confirm that everything passes and aligns
Further reading
- Configure SPF
- DKIM RSA key size: 1024 vs 2048 bits
- Configure DMARC
- Why is my email going to spam on Gmail and Outlook?
Checked against Google Workspace Admin Help and Gmail’s sender guidelines on November 21, 2026.