
"DKIM failed" covers at least five different problems, and the fix for each is different. A missing signature, a wrong public key, a modified message body, a DNS lookup error and a signature from the wrong domain all show up as DKIM trouble. This guide shows how to fix DKIM failure step by step by first reading the exact result in the message header, then applying the fix that matches.
💡 TL;DR
To fix a DKIM failure, open the message headers (in Gmail, Show Original) and read the dkim= result. dkim=none means no signature: turn on DKIM signing in your email service. dkim=fail with a body hash error means the message was changed after signing, often by a footer, gateway or forwarder. dkim=fail on the signature usually means the published public key doesn't match: re-publish the record from your provider. temperror or permerror points to DNS problems such as a malformed or split TXT record. If DKIM passes but DMARC fails, the signing domain isn't aligned with your From domain; set up custom DKIM.
By LiteMail · Prices/data checked on November 25, 2026
Table of Contents
"DKIM Failed" Is Five Different Problems
Read the Result First
Fix 1: dkim=none, No Signature
Fix 2: Body Hash Did Not Verify
Fix 3: Signature Did Not Verify (Key Mismatch)
Fix 4: temperror or permerror (DNS Problems)
Fix 5: DKIM Passes but DMARC Fails
Key Length and Rotation
Step-by-Step: The Full DKIM Fix Checklist
Worked Example: Body Hash Failures After a Security Gateway
DKIM for Cold Email Domains
Final Verdict: Read the Result, Then Fix That Problem
Frequently Asked Questions
"DKIM Failed" Is Five Different Problems
DKIM works by signing a message with a private key and publishing the matching public key in DNS. A DKIM failure can come from the signature, the key, the message, the DNS lookup or the domain used to sign. Each needs a different fix.
Guessing wastes hours. Reading the result in the header tells you which problem you have in about a minute.
By the end of this, you'll know how to fix DKIM failure for each result type, step by step.
Read the Result First
Find the Authentication-Results header and match the dkim= result.
Header result | What it means | Fix section |
|---|---|---|
dkim=none | No DKIM signature on the message | Fix 1: turn on signing |
dkim=fail (body hash did not verify) | Message changed after signing | Fix 2: stop modification |
dkim=fail (signature did not verify) | Public key doesn't match the private key | Fix 3: republish the key |
dkim=temperror / permerror | DNS lookup problem or malformed record | Fix 4: DNS record |
dkim=pass, dmarc=fail | Signed by a domain not aligned with From | Fix 5: custom DKIM |
💡 Where to find it
In Gmail, open the message, click the three dots, choose Show Original, and look for the DKIM line and the Authentication-Results header.
How We Built This Guide
This guide follows the DKIM specification (RFC 6376), Google's sender guidelines and the documentation of major email platforms, checked on November 25, 2026. We haven't run new tests for this article; each fix corresponds to a documented failure mode.
Fix 1: dkim=none, No Signature
If the header shows no DKIM signature at all, the sending service isn't signing.
Identify which service sent the message from the Received headers.
In that service's admin settings, find DKIM or domain authentication.
Generate a DKIM key for your domain.
Publish the record it gives you in DNS.
Start signing (in Google Workspace: Admin console → Apps → Google Workspace → Gmail → Authenticate email).
Send a test and confirm dkim=pass.
Google requires all senders to use SPF or DKIM, and bulk senders to use both.
Fix 2: Body Hash Did Not Verify
A body hash failure means something changed the message after it was signed.
An outbound gateway or security tool adds a disclaimer or footer.
A mailing list adds text or changes the subject.
A forwarder modifies the message.
Content rewriting by a link-tracking or archiving service.
Fix it by signing after modification (configure the gateway to sign, or add footers before signing), or by excluding the modifying step for outbound mail. Mailing list and forwarding failures are often outside your control; DMARC can still pass through aligned SPF on direct mail.
Fix 3: Signature Did Not Verify (Key Mismatch)
If the body is intact but the signature fails, the public key in DNS usually doesn't match the private key the service uses.
Read the s= (selector) and d= (domain) tags in the DKIM-Signature header.
Look up the record: dig TXT selector._domainkey.yourdomain.com.
Compare it with the record your email service currently shows.
If they differ, republish the record from the service, exactly as given.
If you rotated keys, keep the old selector published until old mail has been delivered.
Fix 4: temperror or permerror (DNS Problems)
These results point to the DNS record itself.
Problem | Sign | Fix |
|---|---|---|
Record not found | dig returns nothing | Publish at selector._domainkey |
Wrong host name | Record at selector._domainkey.yourdomain.com.yourdomain.com | Remove the duplicated domain |
Long key split incorrectly | 2,048-bit key broken or truncated | Use your DNS provider's long-TXT support |
Extra spaces or quotes | Pasted from a document | Re-paste as plain text |
DNS provider outage | Intermittent temperror | Check provider status; retry |
2,048-bit keys exceed the 255-character limit of a single TXT string. DNS providers handle this differently; follow their instructions for long records.
Fix 5: DKIM Passes but DMARC Fails
If DKIM passes but DMARC fails, the d= domain in the signature isn't your From domain. This is common with third-party platforms that sign with their own domain by default.
Find d= in the DKIM-Signature header.
If it's the platform's domain, open that platform's domain authentication settings.
Set up custom DKIM for your domain and publish the records.
Re-test: DKIM should pass with d=yourdomain.com and DMARC should pass.
Our DKIM vs DMARC guide in this series explains alignment in detail.
Key Length and Rotation
Google requires DKIM keys of at least 1,024 bits and recommends 2,048 bits. Older 512-bit keys are considered too weak.
Upgrade short keys by generating a new 2,048-bit key with a new selector.
Publish the new record, switch signing, then retire the old selector later.
Rotate keys periodically, keeping overlap so in-flight mail still verifies.
Step-by-Step: The Full DKIM Fix Checklist
Use this in order when you need to fix DKIM failure quickly.
Send a test and read the dkim= result.
Identify the sending service from the headers.
Match the result to Fixes 1–5 above.
Apply the fix and wait for DNS changes to propagate (often minutes to hours).
Re-test from the same service.
Repeat for every service that sends as your domain.
Our SPF, DKIM and DMARC guide covers the full authentication setup.
Worked Example: Body Hash Failures After a Security Gateway
An illustrative case. After adding an outbound security gateway, a company sees dkim=fail (body hash did not verify) on every external message.
Step | Finding |
|---|---|
Header | Body hash failed; signature from Google Workspace |
Cause | Gateway adds a legal disclaimer after Google signs |
Fix | Configure the gateway to add the disclaimer before signing, or have the gateway sign |
Result | dkim=pass; DMARC passes via aligned DKIM |
The key was fine all along; the message was being changed after signing.
DKIM for Cold Email Domains
Cold email teams run many domains and often several tools. Every domain needs its own DKIM key, and every tool that sends as that domain needs custom DKIM.
Every Litemail pre-warmed inbox ships with SPF, DKIM and DMARC pre-configured. When you connect a new sending platform, check its DKIM settings; that's where drift usually starts. See our deliverability guide.
What Real Users Say
Admin forums and DMARC vendor documentation consistently identify the same leading causes of DKIM failure: signing never enabled, records published at the wrong host name, long keys split incorrectly, and gateways or footers modifying messages after signing. We haven't quoted frequency figures because we didn't find a verified dataset.
Final Verdict: Read the Result, Then Fix That Problem
To fix DKIM failure, start by reading the exact result in the header. No signature means turn on signing; a body hash failure means something changed the message; a signature failure means the key doesn't match; temperror or permerror means DNS; and DKIM pass with DMARC fail means alignment.
Fix the matching problem, re-test, and repeat for every service that sends as your domain.
DKIM Configured Before Your First Send
Litemail pre-warmed Google Workspace and Microsoft 365 inboxes ship with SPF, DKIM and DMARC pre-configured, plus full admin access to inspect and rotate keys. From $39/month for 5 inboxes with dedicated US and EU IPs.
Get Pre-Warmed Inboxes from $39/mo →
Google Workspace & Microsoft 365 · Full admin access · Dedicated US and EU IPs · Plans from 5 inboxes
About Litemail — Litemail provides pre-warmed Google Workspace and Microsoft 365 inboxes for cold email outreach. From $39/month for 5 inboxes with automated DNS, dedicated US and EU IPs, and full admin access. View pre-warmed inbox plans →
Related reading: SPF, DKIM and DMARC Setup Guide · Cold Email Deliverability Guide · Google Workspace Inboxes · Microsoft 365 Inboxes · Litemail Pre-Warmed Inboxes — Plans and Pricing
Key Takeaways
Read the dkim= result before changing anything.
dkim=none: turn on signing in the sending service.
Body hash failure: something modified the message after signing.
Signature failure: republish the public key exactly as given.
temperror/permerror: fix the DNS record, especially long 2,048-bit keys.
DKIM pass with DMARC fail: set up custom DKIM for your domain.
Frequently Asked Questions
How do I fix DKIM failure?
Read the dkim= result in the message header, then apply the matching fix: enable signing, stop post-signing modification, republish the key, fix the DNS record or set up custom DKIM for alignment.
What does "body hash did not verify" mean?
The message was changed after it was signed, often by a footer, gateway, mailing list or forwarder.
Why does DKIM pass but DMARC fail?
The signing domain (d=) isn't aligned with your From domain. Set up custom DKIM in the sending platform.
How long does a DKIM fix take to work?
DNS changes often propagate within minutes to hours, depending on TTL.
What DKIM key length should I use?
Google requires at least 1,024 bits and recommends 2,048.
Why does my 2,048-bit DKIM record fail?
Long keys exceed a single TXT string's 255 characters; check your DNS provider's method for long records.
Do Litemail inboxes include DKIM?
Yes. Litemail inboxes come with SPF, DKIM and DMARC pre-configured, from $39/month for 5 inboxes.
Buy Pre-Warmed Email Inboxes & Domains | Litemail
Buy pre-warmed email accounts, inboxes and domains from $39/month for 5 inboxes. Google Workspace & Microsoft 365. Automated DNS, US & EU IPs. Setup in 5 minutes.
View Plans & Pricing → Related reading: Blacklist Prevention for B2B Teams · Microsoft Sending Policy and Cold Email · Outlook Subject Line Display · Pre-Warmed Domains · Litemail Home


