How to Set Up DKIM in Google Workspace: Complete Step-by-Step Guide with DNS Configuration, Benefits, Troubleshooting & Best Practices
Email authentication has become one of the most important requirements for reliable email delivery. If your Google Workspace domain does not have DKIM (Domai...
Email authentication has become one of the most important requirements for reliable email delivery. If your Google Workspace domain does not have DKIM (DomainKeys Identified Mail) configured correctly, your emails may be marked as spam, fail DMARC checks, or even be rejected by recipient mail servers.
DKIM digitally signs every outgoing email from your Google Workspace account. Receiving mail servers verify this signature using a public key published in your domain's DNS records.
This guide explains everything you need to know about DKIM—from generating the key in Google Workspace to publishing the TXT record in your DNS hosting panel and verifying that everything is working correctly.
What is DKIM?
DKIM (DomainKeys Identified Mail) is an email authentication standard that allows the sender to digitally sign outgoing emails.
Every outgoing message receives a cryptographic signature.
The recipient mail server checks this signature against the public key stored in your DNS.
If both match:
- The email is authenticated.
- The message has not been altered.
- The sender domain is verified.
How DKIM Works
Google Workspace
│
Signs outgoing email
│
Adds DKIM Signature
│
Recipient Mail Server
│
Looks up DNS TXT Record
│
Public Key Retrieved
│
Signature Verified
│
Email Authenticated
Benefits of DKIM
Implementing DKIM provides several important advantages:
Better Email Deliverability
Properly signed emails are much more likely to reach the recipient's Inbox instead of Spam.
Prevents Email Spoofing
Attackers cannot easily impersonate your domain.
Required for DMARC
DMARC relies on SPF and/or DKIM.
Without DKIM, your DMARC policy becomes much weaker.
Improves Trust
Email providers such as:
- Gmail
- Microsoft Outlook
- Yahoo
- Apple Mail
trust DKIM-signed emails significantly more.
Protects Brand Reputation
Customers know the email genuinely came from your organization.
Helps Pass Anti-Spam Filters
Spam filtering systems check DKIM before making delivery decisions.
Supports BIMI
Brand Indicators for Message Identification (BIMI) requires strong email authentication including DKIM and DMARC.
Before You Begin
Ensure you have:
- Google Workspace Super Admin account
- Access to your DNS hosting provider
- Domain management access
- Existing Google Workspace email service working properly
Step 1 — Login to Google Admin Console
Visit:
Login as a Super Administrator.
Step 2 — Open Gmail Authentication Settings
Navigate to:
Apps
↓
Google Workspace
↓
Gmail
↓
Authenticate Email
Here you will see DKIM settings.
Step 3 — Select Your Domain
If multiple domains exist:
Choose the domain for which DKIM will be enabled.
Step 4 — Generate DKIM Key
Click
Generate New Record
Google will ask for:
Selector
Example:
google
Google recommends leaving it as:
google
Key Length
Options:
- 1024-bit
- 2048-bit
Recommended:
2048-bit
Why?
- More secure
- Better accepted by modern email providers
- Stronger encryption
Click:
Generate
Google creates:
- Selector
- TXT Record
- Public Key
Example:
google._domainkey
Value:
v=DKIM1; k=rsa; p=MIIBIjANBgkqh...
Step 5 — Copy the TXT Record
Google shows something similar to:
Host:
google._domainkey
Value:
v=DKIM1;
k=rsa;
p=MIIBIjANBgkqhkiG9w0BAQEFAAOCA...
Copy the complete value.
Do not remove any characters.
Step 6 — Login to Your Domain DNS Panel
Examples include:
- Hostinger
- GoDaddy
- Namecheap
- Cloudflare
- Bluehost
- Plesk
- cPanel
- DirectAdmin
Open:
DNS Zone Editor
Step 7 — Create TXT Record
Add a new DNS record.
Type:
TXT
Host / Name:
google._domainkey
Value:
Paste Google's DKIM public key.
TTL:
300
or
3600
Either works.
Example
Host
google._domainkey
TXT Value
v=DKIM1; k=rsa; p=MIIBIjANBgkq...
TTL
300
Save the record.
Step 8 — Wait for DNS Propagation
Propagation may take:
- 5 minutes
- 30 minutes
- 2 hours
- Occasionally 24–48 hours
Most domains update within one hour.
Step 9 — Return to Google Workspace
Go back to:
Authenticate Email
Click
Start Authentication
Google checks DNS.
If everything is correct, authentication becomes active.
Step 10 — Send a Test Email
Send an email to:
A Gmail account.
Open the message.
Click:
Show Original
You should see:
DKIM: PASS
SPF: PASS
DMARC: PASS
Congratulations!
DKIM is now working.
Example DNS Record
| Type | Host | Value |
|---|---|---|
| TXT | google._domainkey | v=DKIM1; k=rsa; p=MIIBIjANBgkqhki... |
Understanding the DKIM TXT Record
Example
v=DKIM1;
k=rsa;
p=MIIBIjANBg...
Meaning:
v=DKIM1
DKIM version.
k=rsa
Encryption algorithm.
p=
Public Key.
This is used by recipient mail servers to verify the signature.
Understanding Selector
A selector identifies which DKIM key is used.
Example:
google
Resulting DNS record:
google._domainkey.example.com
The selector allows multiple DKIM keys to coexist for key rotation.
Why Google Uses a TXT Record
DNS TXT records are:
- Widely supported
- Easy to publish
- Publicly accessible
- Standardized for email authentication
Common DNS Mistakes
Wrong Host Name
Incorrect:
example.com.google._domainkey
Correct:
google._domainkey
Missing Characters
Do not edit Google's key.
Even one missing character invalidates DKIM.
Extra Spaces
Avoid:
v=DKIM1; k=rsa;
Extra spaces can cause issues with some DNS providers.
Wrong Record Type
Must be:
TXT
Not:
- CNAME
- MX
- A
- AAAA
Old DKIM Record
Delete obsolete or duplicate DKIM records using the same selector before creating a new one.
How to Verify DKIM
You can verify using:
- Gmail "Show Original"
- Google Admin Console
- Online DKIM lookup tools
- MXToolbox
- Google Admin reports
DKIM + SPF + DMARC
Think of them as a complete security system.
| Technology | Purpose |
|---|---|
| SPF | Verifies sending server |
| DKIM | Verifies message integrity |
| DMARC | Applies policy using SPF & DKIM |
All three should be configured together.
Best Practices
- Use 2048-bit keys.
- Enable DKIM for every domain and alias domain that sends email.
- Keep SPF simple and within DNS lookup limits.
- Configure a DMARC policy after SPF and DKIM are working.
- Monitor email authentication regularly.
- Rotate DKIM keys periodically for improved security.
- Remove obsolete selectors after successful key rotation.
- Verify authentication after any DNS or mail provider changes.
Troubleshooting
Google Says "DNS Record Not Found"
Possible causes:
- DNS propagation is incomplete.
- Host name is incorrect.
- Record saved in the wrong DNS zone.
- Typographical error in the TXT value.
Authentication Won't Start
Check:
- TXT record type.
- Selector.
- Public key.
- DNS propagation.
DKIM Fails in Gmail
Possible reasons:
- Sending mail from a third-party server instead of Google Workspace.
- Incorrect selector.
- Public key mismatch.
- DNS caching.
Multiple DKIM Records
Having multiple selectors is acceptable, but avoid publishing multiple TXT records with the same selector, as this can cause validation failures.
Security Recommendations
- Always use 2048-bit keys when supported.
- Rotate DKIM keys at regular intervals.
- Restrict Super Admin access with Multi-Factor Authentication (MFA).
- Review mail authentication settings periodically.
- Combine DKIM with SPF, DMARC, and TLS for stronger protection.
Conclusion
DKIM is one of the most important security features for any Google Workspace domain. Properly configuring DKIM helps verify that your emails are authentic, improves inbox placement, strengthens your domain's reputation, and works alongside SPF and DMARC to protect against spoofing and phishing attacks.
Although the setup involves only a few steps—generating a key in Google Workspace, publishing the TXT record in your DNS, and enabling authentication—the impact on email security and deliverability is substantial. Every organization using Google Workspace should ensure DKIM is correctly configured and regularly monitored.
Frequently Asked Questions (FAQ)
1. What is DKIM in Google Workspace?
DKIM is an email authentication technology that digitally signs outgoing emails so receiving servers can verify they were sent by your domain and were not modified during transit.
2. Is DKIM mandatory for Google Workspace?
While not technically mandatory, it is strongly recommended and is considered a best practice for secure and reliable email delivery.
3. Can I use DKIM without SPF?
Yes, but using both SPF and DKIM together provides much stronger authentication and better support for DMARC.
4. What key length should I use?
Use 2048-bit whenever your DNS provider supports it.
5. How long does DNS propagation take?
Typically between a few minutes and several hours, though it can occasionally take up to 48 hours.
6. Where do I add the DKIM record?
In your domain registrar's or DNS hosting provider's DNS Zone Editor as a TXT record.
7. Can I change the selector name?
Yes. While google is the default, you can choose another selector if needed. Ensure the same selector is configured in both Google Workspace and DNS.
8. What happens if I regenerate the DKIM key?
A new public key is created. You must update the DNS TXT record and then restart authentication in Google Workspace.
9. Can multiple DKIM selectors exist simultaneously?
Yes. This is commonly used during key rotation or when different mail systems send email on behalf of the same domain.
10. How do I verify DKIM is working?
Send an email to Gmail and view Show Original. You should see DKIM: PASS.
11. Does DKIM encrypt email content?
No. DKIM only signs the message to verify authenticity and integrity. It does not encrypt the email.
12. Does every domain need its own DKIM record?
Yes. Each sending domain should have its own DKIM configuration and public key.
13. Can third-party email services use DKIM?
Yes. Most providers (such as Mailchimp, SendGrid, Zoho Mail, and Microsoft 365) support DKIM, but each requires its own DNS records.
14. Will DKIM stop phishing completely?
No. DKIM reduces domain spoofing but should be combined with SPF, DMARC, user awareness, and other security measures.
15. What if my DKIM record is incorrect?
Emails may fail DKIM validation, reducing deliverability and potentially causing messages to be marked as spam or rejected.
#GoogleWorkspace #DKIM #EmailSecurity #EmailAuthentication #GoogleAdmin #WorkspaceAdmin #DNS #TXTRecord #SPF #DMARC #Gmail #BusinessEmail #EmailDeliverability #CyberSecurity #DomainSecurity #GoogleCloud #GoogleMail #MailServer #DNSManagement #EmailAdmin #ITSupport #SystemAdministrator #GoogleWorkspaceAdmin #WorkspaceSecurity #EmailProtection #InboxPlacement #AntiSpam #EmailInfrastructure #CloudIT #ManagedIT #TechSupport #GoogleWorkspaceTips #GoogleSecurity #SecureEmail #EmailBestPractices #NetworkAdministrator #Hosting #CloudHosting #DomainManagement #GoogleDNS #MailAuthentication #ITGuide #EnterpriseIT #BusinessTechnology #EmailSetup #GoogleWorkspaceHelp #ProfessionalEmail #AdminConsole #ITTutorial #BisonInfosolutions
Was this guide useful?
Your answer helps us keep BISONKB accurate and practical.