Deliverability

dkim=fail (body hash did not verify): causes and fixes

dkim=fail (body hash did not verify) means the message body changed after the sender signed it, so the hash in the DKIM signature no longer matches. Find what altered the body (a mailing list, gateway, footer or forwarder), then sign after that step. SPF alignment can keep DMARC passing meanwhile.

Sohail HussainSohail Hussain11 min read

Short answer

  • The body Office 365 received is not the body that was signed. A footer, disclaimer, link rewriter, gateway or re-encoding step changed it after the DKIM signature was added.
  • Find the system that edits the message, then stop the edit, move it before signing, or have that system do the signing. Republishing your DKIM key will not help.
  • If DMARC still shows pass, SPF is carrying it. Mail is probably being delivered, but only one check is protecting you.

You opened the headers of a message in Exchange Online or Outlook and found this in the Authentication-Results line:

dkim=fail (body hash did not verify) header.d=example.com

DMARC may have passed anyway, which is why nobody noticed. This page explains what the result means, how to tell which signature failed, and how to fix each common cause.

Why dkim=fail (body hash did not verify) happens

A DKIM signature carries a bh= tag. That is the hash of the canonicalized message body, and the c= tag says how the body is canonicalized (RFC 6376). The receiving server recomputes the hash over the body it got and compares the two. If they differ, the verifier reports a body hash failure.

The key and the signature can be perfectly fine. The body is simply not what was signed. That separates this result from signature did not verify, which points at a signed header that changed, and from no key for signature, which points at DNS.

DMARC can still pass because it needs only one of SPF or DKIM to pass and align. This is why the error is usually found by accident rather than because mail bounced. You are still running on one leg: if SPF breaks (a forwarder, or a new sending service missing from your record) and DKIM keeps failing, DMARC fails and a strict policy can quarantine or reject the mail.

Causes in rough order of how often they turn up:

CauseTypical symptomFix
Footer, banner or disclaimer added after signingFails only on mail that passes a gateway or transport ruleSign after the edit, or move the edit before signing
Link rewriting or click tracking after signingPlain-text test passes, HTML failsTurn off the rewrite for that stream, or sign last
Line endings or whitespace changedSignature uses c=simple for the bodyUse relaxed body canonicalization
8-bit content re-encodedFails only with non-ASCII textEncode as quoted-printable or 7-bit-safe at the origin
Mailing list or forwarderFails only on list or forwarded copiesNothing to fix on your side; ARC covers this

Confirm which signature failed

A message can carry several DKIM signatures, and one failing does not mean yours failed. Mailing lists and ESPs often add their own.

  1. Open the full headers of the received message. In new Outlook and Outlook on the web, select More actions at the top of the message, then View > View message details. In classic Outlook, double-click the message, then choose File > Properties and read the Internet headers box. Microsoft documents both routes in View internet message headers in Outlook.
  2. Find every DKIM-Signature: header and note each d= and s= value.
  3. In Authentication-Results, match each dkim= result to its header.d= domain.
  4. Read the Received: headers from the bottom up and list every server between the sender and Microsoft.
  5. Paste the headers into our email header analyzer if you want them laid out.

If the failing header.d is your own domain, keep going. If it belongs to a mailing list or an ESP signing as itself, you may not need to fix anything.

Sent copies have no verdict

Outlook only shows headers for mail you received. To read the verdict for your own outbound mail, send a test to a mailbox you control at Microsoft 365 or Outlook.com and open it there.

Step-by-step fixes

1. Stop something from appending text after signing

Footers, disclaimers, external-sender banners and security appliances all change the body bytes, and any changed byte breaks the hash.

  1. Compare the message in the sender's Sent folder with the copy that arrived. Look for added text, changed links or a new footer.
  2. Identify the hop in the Received: chain that added it.
  3. Either remove the edit for that mail flow, or make the editing system the one that signs.
  4. If the edit is an Exchange Online transport rule, open the Exchange admin center and go to Mail flow > Rules. Look for rules that append a disclaimer or banner to outbound mail, and check which senders and recipients they apply to.

URL protection and click-tracking tools rewrite the HTML. If your platform signs first and a downstream service rewrites links, the hash cannot match. Disable the rewrite for that mail stream, or move signing to the last system in the chain.

To test, send a short plain-text body, then your real HTML template. If plain text passes and HTML fails, something is touching the HTML.

3. Loosen canonicalization

Check the c= tag in the signature:

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=selector1; bh=...; b=...

The value before the slash is for headers and the value after it is for the body. When c= is absent, the default is simple/simple. The simple body algorithm tolerates almost no change, while relaxed tolerates whitespace changes. If your signing software lets you choose, set the body to relaxed. Where that setting lives depends on the software, so look in its DKIM options.

4. Check for re-encoding of 8-bit content

A relay that converts 8-bit content to quoted-printable or base64 changes the bytes after signing, which breaks the hash. This tends to show up with non-ASCII text, or with attachments and embedded images passing through older gateways. People on Microsoft's community forum report fixing Outlook.com-only failures by sending the message as quoted-printable, but Microsoft has not confirmed that as a rule. It is cheap to try if the failure only appears with accented or non-Latin text.

To find the difference, save the raw message from a mailbox that passes and from one that fails, then diff the bodies. Look for extra line breaks at the end, tabs turned into spaces, or changed MIME boundary strings.

Skip the l= tag

The l= tag limits how many body bytes are hashed, so appended footers get tolerated. It also lets anyone append content to a signed message, so most senders leave it off.

5. Handle mailing lists and forwarders with ARC

Lists and forwarders that rewrite the body break DKIM by design. If you are the recipient and rely on a specific intermediary, you can tell Microsoft 365 to trust its ARC seal. Per Microsoft's guide to configuring trusted ARC sealers, the steps are:

  1. Send a test message through the intermediary to a Microsoft 365 mailbox and open its headers.
  2. Find the ARC-Seal: header and note its d= value. That is the vendor's signing domain, not your own.
  3. In the Microsoft Defender portal at https://security.microsoft.com, go to Email & collaboration > Policies & rules > Threat policies > Email authentication settings > ARC.
  4. Select Add (or Edit if sealers are already listed), enter the d= domain, and select Save.

Add only services you actually use. Microsoft warns that extra entries widen your attack surface. ARC only changes how DMARC is evaluated, not spam filtering. If the message has no ARC headers at all, ARC cannot help, and the fix has to happen at the source.

6. Leave the DNS key alone

A body hash mismatch does not come from a wrong key. A wrong or missing key gives a different result, such as signature verification failed or no key for signature. Do not republish DNS records for this error unless one of those also appears.

Which scenario is yours

You seeLikely meaningWhere to look
Body hash failure, own domain, mail routed through a gatewayGateway edits the bodyGateway footer, banner or link settings
Same result, mail sent straight from your providerRe-encoding or strict canonicalizationc= tag, transfer encoding
dkim=fail (signature did not verify)A signed header changed, or a key problemHeaders listed in h=, selector record
dkim=fail (no key for signature)Key not found in DNSThe selector record

Keep DMARC safe while you investigate

Confirm that SPF passes and aligns for every legitimate sender. Our SPF generator helps you build a record that includes each service, and our DMARC guide explains alignment. Do not move to p=reject while DKIM fails intermittently for a sender that SPF does not cover.

Checklist before you test again

  • The failing header.d is your domain, not a list or ESP signing as itself.
  • You know every hop in the Received: chain.
  • No disclaimer, banner or link rewrite runs after signing.
  • The signature uses c=relaxed/relaxed where your software allows it.
  • There is no l= tag in the signature.
  • SPF passes and aligns for every legitimate sender.
  • You tested a short plain-text message first, then the real template.

Changes to signing order or gateway settings apply to the next message you send. This is not a DNS wait.

If nothing works

If the failure happens on mail sent from Microsoft 365 itself, open a support ticket from the Microsoft 365 admin center. For a third-party sender, send the same details to that vendor and ask where it signs relative to any content rewrite. Include:

  • The full headers of a failing message
  • The exact Authentication-Results and DKIM-Signature lines
  • The send time with timezone, plus sender and recipient addresses
  • Any transport rules, connectors or gateways that touch outbound mail
  • What you already tried
Subject: DKIM body hash failure on outbound mail from {your-domain}

Messages from {sender address} to {recipient address} sent at {date, time, timezone}
arrive with: dkim=fail (body hash did not verify) header.d={your-domain}.

Full headers are attached. The DKIM-Signature uses c={value from your header}.
Transport rules / connectors / gateways on this mail flow: {list them}.
Already tried: plain-text test, checked for footers and link rewriting.

Please confirm whether any service in your path modifies the body after signing,
and where DKIM signing happens relative to that step.

Where Mailneo fits

This error is almost never Mailneo's to fix; it comes from what happens between signing and receipt. One part we can help with: Mailneo checks your sending domain's SPF, DKIM and DMARC records and whether they authorize the provider you connect. It does not read a failed signature on a received message, cannot tell you which hop changed the body, and does not change your DNS. Mailneo sends through your own connected accounts, so signing is done by your mailbox provider or SMTP service.

Common questions

Is the message still delivered when the body hash fails?

Often yes. If SPF passes and aligns, DMARC can pass and the message is delivered. If both SPF and DKIM fail alignment, the domain's DMARC policy decides what happens.

Why does it fail only at Outlook.com or Hotmail?

A message can be changed in transit in ways that only show up at one recipient, such as re-encoding or attachment handling. Compare raw copies from a passing mailbox and a failing one to see the difference.

Do I need to rotate or republish my DKIM key?

No, not for this result. A key problem produces a different message, such as signature verification failed or no key for signature.

Can I ignore it when the failing signature is not mine?

Usually. A mailing list or ESP that modifies a message breaks only its own signature or your forwarded copy. Check that your own signature, matched by header.d, passes on direct sends.

deliverabilityoffice-365error-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

Deliverability

554 5.7.5 Permanent Error Evaluating DMARC Policy: Fix

"554 5.7.5 permanent error evaluating dmarc policy" means the recipient's server could not evaluate your DMARC record, often because of a DNS error or a malformed record. A "550 5.7.0" rejection despite p=none is usually a recipient-side filter rule. Check your records first, then ask the recipient's mail admin.

Sohail Hussain|10 min read
Deliverability

No DMARC Record Found After Publishing in Route 53: Fix

A checker reporting "No DMARC Record found" after you published in Route 53 usually means the record sits at the wrong name, such as _dmarc.example.com.example.com, or has malformed quoting. Enter only _dmarc as the record name, make the value a properly quoted TXT string, then confirm with dig.

Sohail Hussain|10 min read
Deliverability

Sending domain does not pass DMARC verification: how to fix it

This bounce means the message failed DMARC, because neither SPF nor DKIM passed in alignment with your From domain, and your policy says reject. Fix it by signing with DKIM on your own domain or adding the sending service to SPF. Set p=none temporarily while you repair it.

Sohail Hussain|10 min read
Deliverability

0x800ccc0e: Outlook Unable to Connect to SMTP Server, Fixed

Outlook error 0x800ccc0e means the app could not open a connection to your outgoing (SMTP) server. Usually the port, encryption setting or password is wrong, or antivirus, a firewall or your ISP is blocking it. Set port 587 with STARTTLS, turn on SMTP authentication, and test again.

Sohail Hussain|10 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free