SPF · DKIM · DMARC
Set up SPF, DKIM and DMARC on Google Workspace
The three DNS records that make Gmail trust your Google Workspace mail — copy them in, switch authentication on, and confirm it landed.
Before you start
What Google Workspace needs from your DNS.
Google Workspace sends your mail, but Gmail and every other receiver judge it on what your DNS says, not on the fact that Google carried it. SPF authorises Google's servers to send for you, DKIM signs each message so tampering shows, and DMARC ties both to the domain your recipients see and tells receivers what to do when they fail.
Almost none of this is on by default. DKIM in particular ships inactive: the key sits generated in your Admin console, but until you publish it in DNS and click Start authentication, every message you send is unsigned. That one missed click is the single most common reason a Google Workspace domain fails DKIM.
Since February 2024, Google requires anyone sending in bulk to Gmail users to publish SPF, DKIM and a DMARC record. On Google Workspace, authenticating is no longer good practice you can defer — it is the gate to your own recipients' inboxes.
The records to publish
Copy these into your DNS.
Add each record at your DNS provider — the company where your domain is registered, not Google Workspace. Then run the checker to confirm every one resolves.
SPF record
v=spf1 include:_spf.google.com ~all
One SPF record only. If other services send for you — a CRM, a newsletter tool — add their include: to this same line rather than publishing a second SPF record, which is an error that voids both.
DKIM record
value generated by Google Workspace
Generate the key in the Admin console (Apps → Google Workspace → Gmail → Authenticate email), choose the 2048-bit length, publish the TXT value it gives you here, then click Start authentication — the record does nothing until you do.
DMARC record
v=DMARC1; p=none; rua=mailto:[email protected]
Start at p=none to watch who sends as you, then raise to quarantine and reject once your reports show every legitimate sender aligning. Point rua at an address you actually read.
Step by step
The whole setup, in order.
- 1 Publish SPF at your DNS host. At your registrar or DNS provider — not in Google — add the TXT record above at the root of your domain. If an SPF record already exists, edit it to include _spf.google.com rather than adding a new one.
- 2 Generate the DKIM key in the Admin console. Go to Apps → Google Workspace → Gmail → Authenticate email, pick your domain, choose the 2048-bit key length and the default selector (google), and generate it.
- 3 Publish the DKIM record, then start authentication. Add the TXT it produces at google._domainkey in your DNS, wait for it to resolve, then come back and click Start authentication. Skipping this last click leaves your mail unsigned even though the record is live.
- 4 Publish DMARC. Add the _dmarc TXT record above. Begin at p=none so you break nothing while you read the reports, and keep the rua address pointed somewhere you will see it.
- 5 Wait, then verify. Google can take up to 48 hours to detect DKIM. Once it has, run a full check here to confirm SPF resolves under the 10-lookup limit, the google selector is found, and DMARC is graded.
Where it goes wrong
The mistakes specific to Google Workspace.
Confirm it worked
Do not trust it until you have checked it.
DNS takes a few minutes to propagate. Once it has, run a full check: it reads all three records live, counts your SPF lookups, confirms the Google Workspace DKIM selector resolves, and grades your DMARC policy — the exact things that decide whether Gmail and Outlook trust your mail.
Common questions
About Google Workspace, specifically.
Set it once. Know it stays set.
A DKIM key rotates, a vendor changes its SPF, an IP gets listed — and your carefully-configured domain quietly breaks. Monitoring watches all of it and tells you the day it changes.