[GH-ISSUE #14] DKIM computed bodyhash fails when used with encryption #64

Closed
opened 2026-03-01 17:44:29 +03:00 by kerem · 5 comments
Owner

Originally created by @anonaddy on GitHub (Dec 20, 2019).
Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/14

Emails forwarded to custom domains (with sending verified) need to be signed by DKIM (selector dk1 or dk2).

This fails to pass DKIM checks when the email is also encrypted using GPG encryption.

DKIM checks fail due to the "Computed body hash is different from the expected one".

At the moment I've set it to not sign outgoing messages with DKIM for custom domains if they are also encrypted until I can find a solution.

Originally created by @anonaddy on GitHub (Dec 20, 2019). Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/14 Emails forwarded to custom domains (with sending verified) need to be signed by DKIM (selector dk1 or dk2). This fails to pass DKIM checks when the email is also encrypted using GPG encryption. DKIM checks fail due to the "Computed body hash is different from the expected one". At the moment I've set it to not sign outgoing messages with DKIM for custom domains if they are also encrypted until I can find a solution.
kerem closed this issue 2026-03-01 17:44:29 +03:00
Author
Owner

@erik-h commented on GitHub (Feb 15, 2020):

@anonaddy Any updates on this issue? I'm loving forwarding using my custom domain, but it'd be great to be also able to enable GPG encryption again.

<!-- gh-comment-id:586566438 --> @erik-h commented on GitHub (Feb 15, 2020): @anonaddy Any updates on this issue? I'm loving forwarding using my custom domain, but it'd be great to be also able to enable GPG encryption again.
Author
Owner

@anonaddy commented on GitHub (Feb 15, 2020):

@erik-h will look into this at the start of next week to see if I can find a solution. Thanks for reminding me.

<!-- gh-comment-id:586570235 --> @anonaddy commented on GitHub (Feb 15, 2020): @erik-h will look into this at the start of next week to see if I can find a solution. Thanks for reminding me.
Author
Owner

@erik-h commented on GitHub (Feb 15, 2020):

@anonaddy Awesome, thanks for the response!

<!-- gh-comment-id:586645796 --> @erik-h commented on GitHub (Feb 15, 2020): @anonaddy Awesome, thanks for the response!
Author
Owner

@willbrowningme commented on GitHub (Feb 18, 2020):

@erik-h This issue has now been fixed in the latest release.

It was solved by updating some LFs - \n to CRLFs - \r\n.

https://github.com/anonaddy/anonaddy/commit/3056f5aed4ffff8fd0f688869433fafdcea648ab#diff-bc5a3d7c8332409aed797d25d7cdd2da

<!-- gh-comment-id:587398132 --> @willbrowningme commented on GitHub (Feb 18, 2020): @erik-h This issue has now been fixed in the latest release. It was solved by updating some LFs - `\n` to CRLFs - `\r\n`. [https://github.com/anonaddy/anonaddy/commit/3056f5aed4ffff8fd0f688869433fafdcea648ab#diff-bc5a3d7c8332409aed797d25d7cdd2da](https://github.com/anonaddy/anonaddy/commit/3056f5aed4ffff8fd0f688869433fafdcea648ab#diff-bc5a3d7c8332409aed797d25d7cdd2da)
Author
Owner

@erik-h commented on GitHub (Feb 21, 2020):

@willbrowningme Ah I see, awesome, thanks again!

<!-- gh-comment-id:589511221 --> @erik-h commented on GitHub (Feb 21, 2020): @willbrowningme Ah I see, awesome, thanks again!
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/anonaddy#64
No description provided.