How to set up SPF, DKIM, and DMARC for Google Workspace?
For Google Workspace: add the Google SPF include, generate a DKIM key in the admin console, and create a DMARC TXT record. Setup takes about 10 minutes.
Detailed Answer
Complete guide to configuring email authentication for Google Workspace (formerly G Suite).
1. SPF Record Add this TXT record to your domain's DNS:
v=spf1 include:_spf.google.com -all
Note: _spf.google.com resolves to ~4 DNS lookups. If combining with other services, watch the 10-lookup limit.
2. DKIM Setup
- Go to admin.google.com → Apps → Google Workspace → Gmail → Authenticate email
- Select your domain
- Click "Generate new record"
- Choose 2048-bit key length
- Add the TXT record Google provides at
google._domainkey.yourdomain.com - Click "Start authentication" in the admin console
Example DKIM record:
google._domainkey TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhki..."
3. DMARC Record
Add at _dmarc.yourdomain.com:
v=DMARC1; p=quarantine; rua=mailto:[email protected]; fo=1
Verification:
Scan at https://intodns.ai — the scan checks the google DKIM selector by default.
Google Workspace specific tips:
- DKIM key generation takes up to 48 hours to start working
- Default selector is
google— don't change it unless you have a reason - Google Workspace sends from multiple IPs (covered by
_spf.google.com) - Apps Script and Google Forms emails also use your domain's DKIM
- If using Google + another ESP, both need DKIM configured separately
Generate records: https://intodns.ai/tools/spf-generator
Check your domain now
Use IntoDNS.ai to scan your domain and get instant email insights.
Scan Your DomainRelated Questions
What is SPF, DKIM, and DMARC?
SPF, DKIM, and DMARC are email authentication standards that verify sender identity and prevent email spoofing.
How to setup an SPF record?
Create a DNS TXT record at your root domain with format: v=spf1 include:_spf.google.com ~all
How to setup DMARC?
Add a DNS TXT record at _dmarc.yourdomain.com with policy: v=DMARC1; p=none; rua=mailto:[email protected]