DKIM 'body hash did not verify': causes and fixes
Updated 10 November 2026 · 5 min read
Short answer
dkim=fail (body hash did not verify) means the receiver recomputed the hash of the message body and it didn't match the bh= value in the DKIM-Signature, so something changed the body after it was signed. The usual culprits are a footer or disclaimer added after signing (by a gateway, a CRM or a mailing list), a link-tracking rewrite, or line-ending and whitespace changes when c=simple canonicalization is used. Sign last, after every system that edits the message.
How DKIM's body hash works
When a server signs, it canonicalizes the body (normalizes whitespace according to the c= tag), hashes it and puts the result in bh=. Then it signs selected headers plus that hash. The receiver repeats the body hash. A different result means the body changed; the key and DNS are not the problem, so republishing DNS records won't help.
Common causes
| Cause | Typical sign | Fix |
|---|---|---|
| Outbound gateway adds a disclaimer or banner | Only mail through the gateway fails | Have the gateway sign (or re-sign) after it edits, or stop editing |
| Mailing list or Google Group adds a footer or subject tag | Fails only on list mail | Normal; list should re-sign with its own domain (ARC helps) |
| Click tracking rewrites links after signing | Fails on tracked emails only | Let the sending tool sign after rewriting |
c=simple/simple plus trailing whitespace changes | Random failures | Use c=relaxed/relaxed |
| Encoding change in transit (8bit → quoted-printable) | Fails on some receivers | Send 7-bit-safe content or sign after encoding |
| Antivirus or DLP appliance rewriting attachments | Fails when attachments present | Sign after scanning |
Worked example
Authentication-Results: mx.google.com;
dkim=fail (body hash did not verify) header.i=@acme.com header.s=google header.b=Ab12Cd34;
spf=pass smtp.mailfrom=acme.com;
dmarc=pass (p=NONE) header.from=acme.comHere Google Workspace signed the message, then an outbound compliance tool appended a legal footer. DKIM failed, but SPF passed and aligned, so DMARC still passed. Moving the footer into Google's own compliance footer setting (applied before signing) fixed DKIM. Relying on SPF alone is fragile: forwarding breaks SPF, so you want DKIM to survive.
Diagnose it
- 1
Compare a sent copy with a received copy
Differences in the body (footer, rewritten links, re-wrapped lines) point to what changed it.
- 2
Note the c= tag
c=relaxed/relaxedtolerates whitespace changes;simpledoes not. - 3
Test by path
Send the same text directly from the provider's web interface. If that passes, a system in your sending path is editing the message.
Check the result
The DNS check confirms the key is published; body-hash failures are only visible in message headers. Run the domain through the free ReplyDak deliverability check: it reads MX, SPF, DKIM and DMARC live from public DNS, counts SPF lookups and checks the main blocklists, with no sign-up. If your DKIM selector is not a common one, type it into the optional selector box.
More setups and errors: SPF, DKIM and DMARC by provider, DNS host and error.
FAQ
Is 'body hash did not verify' a DNS problem?
No. The key was found and the signature was checked; the message body changed after signing.
Do mailing lists break DKIM?
Often, because they add footers or subject tags. Lists should re-sign with their own domain; ARC helps receivers trust the original result.
Does relaxed canonicalization fix it?
Only for whitespace and line-wrapping changes, not for added footers or rewritten links.