ReplyDak

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

CauseTypical signFix
Outbound gateway adds a disclaimer or bannerOnly mail through the gateway failsHave the gateway sign (or re-sign) after it edits, or stop editing
Mailing list or Google Group adds a footer or subject tagFails only on list mailNormal; list should re-sign with its own domain (ARC helps)
Click tracking rewrites links after signingFails on tracked emails onlyLet the sending tool sign after rewriting
c=simple/simple plus trailing whitespace changesRandom failuresUse c=relaxed/relaxed
Encoding change in transit (8bit → quoted-printable)Fails on some receiversSend 7-bit-safe content or sign after encoding
Antivirus or DLP appliance rewriting attachmentsFails when attachments presentSign 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.com

Here 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. 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. 2

    Note the c= tag

    c=relaxed/relaxed tolerates whitespace changes; simple does not.

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

Sources

Related

Microsoft 365 mailboxes are coming soon. Until then, new orders use Google Workspace mailboxes.