Email Authentication Setup for Google Workspace
Last updated: February 12, 2026
SPF, DMARC, and DKIM Configuration Guide
Overview
Email authentication helps protect your domain from spoofing, phishing, and spam. Three key protocols work together to verify that emails claiming to be from your domain are legitimate:
SPF (Sender Policy Framework)
DKIM (DomainKeys Identified Mail)
DMARC (Domain-based Message Authentication, Reporting, and Conformance)
Setting up all three protocols is essential for optimal email deliverability and security.
SPF (Sender Policy Framework)
What It Does
SPF allows you to specify which mail servers are authorized to send email on behalf of your domain. Recipients can check the SPF record to verify that incoming mail comes from an authorized server.
Purpose
Prevents spammers from sending messages with forged "From" addresses from your domain
Improves email deliverability by reducing the likelihood your emails are marked as spam
Protects your domain reputation
High-Level Setup Steps
Access your domain's DNS settings through your domain registrar or DNS provider
Create or update a TXT record for your domain with Google's SPF information
Add the SPF record:
v=spf1 include:_spf.google.com ~allIf you use other email services, include them in the same SPF record
Verify the SPF record is published correctly
Official Documentation
DKIM (DomainKeys Identified Mail)
What It Does
DKIM adds a digital signature to every outgoing message. This signature is verified against a public key published in your DNS records, confirming the message hasn't been altered in transit.
Purpose
Verifies that email content hasn't been tampered with during transmission
Confirms the email was authorized by the domain owner
Improves email deliverability and trustworthiness
Works in conjunction with SPF and DMARC for comprehensive email authentication
High-Level Setup Steps
Generate a DKIM key in the Google Admin console
Google will provide a TXT record with your DKIM signature
Add this TXT record to your domain's DNS settings
Turn on DKIM signing in the Google Admin console
Verify DKIM is working by sending a test email
Official Documentation
DMARC (Domain-based Message Authentication, Reporting, and Conformance)
What It Does
DMARC builds on SPF and DKIM by telling receiving mail servers what to do if an email fails SPF or DKIM checks. It also provides reporting so you can monitor authentication results.
Purpose
Defines how receivers should handle emails that fail SPF or DKIM validation
Provides visibility into who is sending email from your domain
Prevents phishing attacks that spoof your domain
Generates reports showing authentication results and potential abuse
Required for strong email security posture
High-Level Setup Steps
Ensure SPF and DKIM are already set up and working
Create a DMARC policy (start with monitoring mode:
p=none)Add a TXT record to your DNS at
_dmarc.yourdomdomain.comExample starter record:
v=DMARC1; p=none; rua=mailto:[email protected]Monitor DMARC reports to identify legitimate and illegitimate sources
Gradually increase policy enforcement (
p=quarantinethenp=reject)
Official Documentation
Implementation Best Practices
Recommended Order
Start with SPF - Quick to implement and provides immediate benefit
Enable DKIM - Adds message integrity verification
Implement DMARC - Ties everything together and provides visibility
DMARC Policy Progression
Phase 1:
p=none(monitoring only - generates reports without affecting delivery)Phase 2:
p=quarantine(sends suspicious emails to spam/junk folders)Phase 3:
p=reject(blocks emails that fail authentication)
Important Notes
DNS changes can take up to 48 hours to propagate fully
Always test authentication after making changes
Monitor DMARC reports regularly, especially when first implementing
Keep only one SPF record per domain
DKIM keys should be rotated periodically for security
Additional Resources
Google Workspace Email Security
Testing Tools
Quick Reference
Protocol | DNS Record Type | Priority | Purpose |
SPF | TXT | High | Authorizes mail servers |
DKIM | TXT | High | Signs message content |
DMARC | TXT | Critical | Sets policy and reporting |
All three protocols must be implemented for complete email authentication.