Cloudflare DKIM Setup
DomainKeys Identified Mail - Step-by-step configuration guide
Prerequisites
- • Obtained DKIM selector and public key from your email provider
- • Logged into Cloudflare dashboard
Configuration Steps
1
Get DKIM Information
Get the DKIM selector and public key from your email provider (Google Workspace, Microsoft 365, etc.)
Google's selector is usually "google", Microsoft's are "selector1" and "selector2"
2
Go to DNS Management
Log in to Cloudflare → Select domain → DNS → Records
3
Add DKIM Record
Click "Add record" → Type: "TXT" or "CNAME" (depends on provider) → Name: "selector._domainkey" (replace selector with actual value) → Content: public key value
Cloudflare handles long public keys automatically
4
Save and Verify
After saving, wait for DNS propagation, then verify DKIM in your email provider's admin console
Example Configuration
Example DKIM Value
v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBA...⚠️ This is an example value. Modify it according to your email service provider's requirements.
Verify Your Configuration
Terminal Command
$ dig TXT selector._domainkey.yourdomain.com +shortReplace "yourdomain.com" with your actual domain name
Common Mistakes to Avoid
- ✗Wrong Name format - should be selector._domainkey, not full domain
- ✗Public key copied with line breaks
- ✗Wrong record type (CNAME vs TXT)
Other Cloudflare Guides
DKIM Guides for Other Providers
Verify Your DKIM Configuration
After setting up your DKIM record, use our free checker to verify it's correctly configured.
Check Your Domain Now