Guides · Email security · Updated 2026-12-04

Google Workspace: set up SPF, DKIM and DMARC

Google Workspace does not sign with your domain's DKIM key until you generate it and turn it on, and SPF and DMARC are records you add yourself. Gmail requires them for bulk senders and uses them to decide on spam.

SPF

One TXT record at the root of your domain. Add other senders' includes to the same record.

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

DKIM

In the Google Admin console open Apps → Google Workspace → Gmail → Authenticate email. Choose your domain, generate a new record (2048-bit, selector “google”) and add the TXT record it shows, named google._domainkey, in your DNS. Wait for DNS to update, then click Start authentication.

DMARC

Add a TXT record named _dmarc. Start with monitoring, then follow our DMARC guide to move to reject.

v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com

Check the result

Run our email security check. It tries the “google” selector automatically.

Questions

Generating the key fails with a 2048-bit record. What now?
Some DNS hosts limit TXT length. Split the key into several quoted strings in one record, or use a 1024-bit key only if your DNS host cannot store 2048-bit keys.
Do aliases and secondary domains need their own records?
Yes. Every domain that sends email needs its own SPF, DKIM and DMARC.

General technical information, not legal advice or a security audit. Record values shown are examples: use the exact values from your own email provider.