DKIM Checker Tool
The DKIM Checker validates your DKIM (DomainKeys Identified Mail) records to ensure email signatures are correctly configured. Use this tool to test and troubleshoot DKIM issues.
What is DKIM?
DKIM adds a cryptographic signature to your emails. Receiving servers verify the signature using your published public key, confirming the email truly came from you.
How it works:
- Your mail server signs outgoing email with a private key
- Public key is published in your DNS as a DKIM record
- Receiving server retrieves your public key
- Verifies the signature matches
- Email passes DKIM check
Accessing the Tool
- Log in to SpoofWard
- Go to Tools → DKIM Checker
- Enter your domain and selector name
- Tool validates your DKIM record
Understanding DKIM Selectors
A selector identifies which DKIM key to use. You can have multiple DKIM keys with different selectors for key rotation or multiple mail servers.
Common selectors:
default- Standard default keyselector1- Office 365selector2- Office 365 secondarygoogle- Google Workspacesendgrid- SendGrid- Custom names your organization uses
Using the DKIM Checker
Step 1: Enter Domain
Enter the domain you want to check (e.g., example.com)
Step 2: Enter Selector
Enter the DKIM selector you want to validate:
- If you don't know which selectors exist, try common ones:
default,selector1,google, etc. - Or contact your mail provider for the selector
Step 3: Check Results
The tool queries DNS and returns:
Status Indicators:
- ✓ Valid - DKIM record found and is properly formatted
- ⚠ Warning - Record exists but has issues
- ✗ Not Found - No DKIM record at this location
- ✗ Error - Record exists but is malformed
Valid DKIM Record
Tool shows:
- Public Key - The key being used for verification
- Key Type - Usually
rsa - Key Size - Usually 2048-bit (can be 1024, 2048, or 4096)
- Status - Valid and ready for use
- Full Record - Complete DKIM record from DNS
What makes it valid:
- Correct version:
v=DKIM1 - Key type specified:
k=rsa - Valid public key present:
p=MIGfMA0GCSqGSIb3... - Proper DNS format
Invalid DKIM Record
Tool shows:
- Error Type - Specific problem found
- Details - What's wrong
- Suggestion - How to fix it
Common issues:
- Incomplete public key (truncated)
- Incorrect format or syntax
- Missing required fields
- Wrong selector name
Finding Your DKIM Selectors
If Using Office 365
- Go to Exchange Admin Center
- Mail flow → DKIM
- Look for entries with status "Enabled"
- Selector name shown (usually
selector1._domainkey)
If Using Google Workspace
- Go to Google Admin Console
- Security → Authentication → Email & calendar
- Look for DKIM authentication
- Selector names shown (usually
google._domainkeyorselector1._domainkey)
If Using SendGrid
- Go to SendGrid Dashboard
- Settings → Sender Verification
- Click your domain
- DKIM info shown with selector
If Using AWS SES
- Go to AWS SES Console
- Verified Identities
- Select your domain
- Click DKIM tab
- Selectors and tokens shown
If Using Custom Mail Server
Check your mail server documentation or contact your IT team for:
- DKIM selector being used
- Location of private key
- Public key content to publish
Checking Multiple Selectors
If you have multiple DKIM keys:
- Run checker for each selector
- All should show as "Valid"
- If one fails, investigate why
- Common to have 1-2 keys active, older ones retired
Example (Office 365):
selector1._domainkey- Valid (current)selector2._domainkey- Valid (backup)
Troubleshooting DKIM Issues
Issue: DKIM Record Not Found
Cause: Record not published in DNS yet
Solution:
- Verify selector name is correct
- Check DNS to ensure record was published
- Use MXToolbox or similar to verify DNS
- Wait 24-48 hours for propagation
- Re-run checker
Issue: DKIM Record Incomplete
Cause: Public key is truncated in DNS
Symptoms:
- Checker shows "key incomplete"
- Public key ends abruptly
- Record may have been cut off
Solution:
- Check DNS for full key value
- Some DNS providers truncate long records
- Verify complete key is published
- May need to contact DNS provider support
- Sometimes requires special formatting or multiple TXT records
Issue: Invalid Syntax
Cause: DKIM record has formatting errors
Symptoms:
- Tool shows syntax error
- May have wrong field names
- Missing required
v=,k=, orp=fields
Solution:
- Get the correct DKIM record from your provider
- Delete the malformed DNS record
- Re-publish the correct version
- Re-run checker
Issue: Multiple DKIM Records, Only One Valid
Cause: Old key not removed when rotating
Common scenario:
selector1- Valid (current)selector2- Invalid (old, should be deleted)
Solution:
- Keep only current DKIM keys
- Delete old/unused selectors from DNS
- Mail provider will have documentation on rotation
Understanding DKIM Record Components
Version (v=DKIM1)
Always v=DKIM1. Indicates DKIM version 1.
Key Type (k=)
Usually k=rsa. RSA is the standard key type.
Public Key (p=)
Long base64-encoded string:
p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDa...
This is the public key used to verify signatures. Must be complete and valid.
Service Type (s=)
Optional. Specifies what services this key can sign:
s=email- For email only (most common)- If omitted, defaults to email
Hash Algorithm (h=)
Optional. Hash algorithms supported:
h=sha256- SHA-256 (default, recommended)- Older records might have
h=sha1:sha256
Testing (t=)
Optional. Used during setup:
t=y- Test mode (don't enforce)- Used by mail providers during DKIM rollout
When seen in a record, it's usually old setup data and can be removed.
DKIM in Action
Signing Email
When your mail server sends email:
- Creates email message
- Signs with private key
- Adds
DKIM-Signatureheader - Sends to recipient
Verification
Receiving server:
- Receives email with
DKIM-Signatureheader - Extracts selector from signature
- Looks up
selector._domainkey.yourdomain.comin DNS - Retrieves public key
- Verifies signature matches
- Email passes or fails DKIM check
Best Practices
Use Standard Selectors
Common names like default or selector1 are easy to manage.
Rotate Keys Periodically
Update your DKIM keys annually or every 2 years.
Keep Private Key Secure
Never expose your private key. Only mail server needs it.
Monitor for Problems
Regularly check that DKIM records are valid using this tool.
Use Adequate Key Size
2048-bit RSA is current standard. 1024-bit is deprecated.
Enable DKIM When Setting Up Mail
Don't leave it for later. Configure immediately.
Common Services and Their Selectors
Office 365:
- Selector:
selector1._domainkeyandselector2._domainkey - Auto-managed by Microsoft
Google Workspace:
- Selector:
google._domainkey - Or custom:
selector1._domainkey - Managed by Google Admin
SendGrid:
- Selector: Varies, usually provided
- Contact support for exact selector
Amazon SES:
- Selector: Provided by AWS
- View in SES console
Internal Mail Server:
- Selector: Your choice (often
defaultormail) - Configure in mail server software
Integration with SpoofWard
SpoofWard automatically:
- Validates DKIM records - Checked as part of DNS Health
- Detects failed DKIM - Shown in DMARC reports
- Recommends fixes - Suggestions if records are invalid
- Monitors changes - Alerts if DKIM records are modified
Go to DNS → Records in SpoofWard to see your DKIM status.
Advanced Topics
DKIM Alignment
For DMARC to work, email must be signed with a key matching your domain.
Aligned (✓):
- Email From:
[email protected] - DKIM Signature: signed with
example.comkey - Result: DKIM-aligned
Misaligned (✗):
- Email From:
[email protected] - DKIM Signature: signed with
mail.example.comkey or different domain - Result: Not aligned (fails DMARC DKIM check)
Most mail providers handle this automatically.
Key Rotation
When updating DKIM keys:
- Generate new key in mail provider
- Publish public key in DNS under new selector
- Configure mail server to use new key
- Wait for propagation (24-48 hours)
- Verify with DKIM Checker
- Retire old key - Delete from DNS after confirmed working
FAQ
How many DKIM keys should I have?
Usually 1-2. One active, one for rotation/backup.
Do I need a different DKIM key per subdomain?
Not required, but some organizations do. One per domain is typical.
How often should I rotate DKIM keys?
Annually or every 2 years. More frequent rotation isn't necessary.
What if DKIM Checker shows errors?
Contact your mail service provider. They manage DKIM configuration.
Can email work without DKIM?
Yes. SPF and DMARC can work without DKIM. But SPF+DKIM together is much more secure.
Is DKIM required for DMARC?
No. DMARC works with SPF alone. But SPF+DKIM is recommended.
Related Documentation
- DNS Health Score - Overall DNS validation
- Third-Party Senders - Configuring services with DKIM
- SPF Builder - Configure SPF alongside DKIM