Article

Content

How to Fix DKIM Failure: Step by Step by Error Type

How to Fix DKIM Failure: Step by Step by Error Type

How to Fix DKIM Failure: Step by Step by Error Type

Summarize with
Book more meetings with pre-warmed mailboxesReady-to-send Google & Microsoft inboxes in 5 minutes. US/EU IPs. No warmup wait.Get pre-warmed inboxes
4.8on G2
4.5on Trustpilot
Add as a preferred source on Google
Table Of Contents

Scanning page for headings…

"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.

Stop Losing Emails to Spam — Get Pre-Warmed Inboxes
Ready to send from day 1. No warm-up wait. No extra tools needed.
Find Your Sending Domains →
100,000+ mailboxes · US & EU IPs · From $4.99/inbox

💡 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

  1. "DKIM Failed" Is Five Different Problems

  2. Read the Result First

  3. Fix 1: dkim=none, No Signature

  4. Fix 2: Body Hash Did Not Verify

  5. Fix 3: Signature Did Not Verify (Key Mismatch)

  6. Fix 4: temperror or permerror (DNS Problems)

  7. Fix 5: DKIM Passes but DMARC Fails

  8. Key Length and Rotation

  9. Step-by-Step: The Full DKIM Fix Checklist

  10. Worked Example: Body Hash Failures After a Security Gateway

  11. DKIM for Cold Email Domains

  12. Final Verdict: Read the Result, Then Fix That Problem

  13. Frequently Asked Questions

Stop Losing Emails to Spam — Get Pre-Warmed Inboxes
Ready to send from day 1. No warm-up wait. No extra tools needed.
Find Your Sending Domains →
100,000+ mailboxes · US & EU IPs · From $4.99/inbox

"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.

Need pre-warmed inboxes ready today? Litemail delivers Google Workspace & Microsoft 365 mailboxes with weeks of warm-up history built in.Check Available Domains →

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.

Litemail's pre-warmed Google Workspace & Microsoft 365 inboxes come with US/EU IPs, automated DNS, full admin access, and 4–12 weeks of warm-up history — all from $4.99/inbox. No separate warm-up tool needed.

Fix 1: dkim=none, No Signature

If the header shows no DKIM signature at all, the sending service isn't signing.

  1. Identify which service sent the message from the Received headers.

  2. In that service's admin settings, find DKIM or domain authentication.

  3. Generate a DKIM key for your domain.

  4. Publish the record it gives you in DNS.

  5. Start signing (in Google Workspace: Admin console → Apps → Google Workspace → Gmail → Authenticate email).

  6. 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.

Start Sending Cold Email Today — Not in 6 Weeks
Pre-warmed Google Workspace & Microsoft 365 inboxes. Automated DNS. US & EU IPs. From $4.99/inbox.
See Domains Ready to Send →
No credit card required · Setup in 5 minutes · Cancel anytime
Start Sending Cold Email — Pre-warmed inboxes from $4
Get Inboxes

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.

  1. Read the s= (selector) and d= (domain) tags in the DKIM-Signature header.

  2. Look up the record: dig TXT selector._domainkey.yourdomain.com.

  3. Compare it with the record your email service currently shows.

  4. If they differ, republish the record from the service, exactly as given.

  5. If you rotated keys, keep the old selector published until old mail has been delivered.

dig +short TXT google._domainkey.yourdomain.com
dig +short TXT google._domainkey.yourdomain.com
dig +short TXT google._domainkey.yourdomain.com
Get Fresh Email Inboxes — Set Up in 30 Minutes
Real Google Workspace and Microsoft 365 accounts on your domains. Automated DNS, SPF, DKIM and DMARC included.
Find Your Sending Domains →
Starts at $2.50/inbox · Automated DNS · No manual setup

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.

  1. Find d= in the DKIM-Signature header.

  2. If it's the platform's domain, open that platform's domain authentication settings.

  3. Set up custom DKIM for your domain and publish the records.

  4. 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.

Stop Losing Emails to Spam — Get Pre-Warmed Inboxes
Ready to send from day 1. No warm-up wait. No extra tools needed.
Find Your Sending Domains →
100,000+ mailboxes · US & EU IPs · From $4.99/inbox

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.

  1. Send a test and read the dkim= result.

  2. Identify the sending service from the headers.

  3. Match the result to Fixes 1–5 above.

  4. Apply the fix and wait for DNS changes to propagate (often minutes to hours).

  5. Re-test from the same service.

  6. 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

Book more meetings with pre-warmed mailboxesReady-to-send Google & Microsoft inboxes in 5 minutes. US/EU IPs. No warmup wait.Get pre-warmed inboxes
4.8on G2
4.5on Trustpilot
Add as a preferred source on Google

Share

Share LiteMail automated email setup on Twitter (X)
Share LiteMail email marketing growth strategies on Facebook
Share LiteMail inbox placement and outreach analytics on LinkedIn
Share LiteMail cold email infrastructure on Reddit
Share LiteMail affordable business email plans on Pinterest
Share LiteMail deliverability optimization services on Telegram
Share LiteMail cold email outreach tools on WhatsApp
Share Litemail on whatsapp
FREESearch pre-warmed domains for freeReady-to-send inboxes that land in the inbox, not spam.Search now
FREESearch pre-warmed domains for freeReady-to-send inboxes that land in the inbox, not spam.Search now
FREESearch pre-warmed domains for freeReady-to-send inboxes that land in the inbox, not spam.Search now