-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multipart emails with empty multiline text part break DKIM #424
Comments
Yes, the current DKIM signing implementation is buggy. I plan to replace it with https://github.com/postalsys/mailauth which has a better, more tested implementation |
Is there any ETA on this? |
Try v 3.10.0 |
I'm still experiencing this issue. I'm using Zone-MTA 3.10.0 |
I was able to isolate the issue. |
This is a similar issue to #411, although much specific.
I've noticed that If a multipart email (text and html) is sent and the text part contains more than 5 empty lines (both \r\n and \n) the email won't get correctly signed.
This message contains 5 empty lines and gets correctly signed working.txt
This message contains 6 empty lines and is not correctly signed fail.txt
I've also noticed that if a message is not correctly signed one empty line gets removed from the text part (this maybe the reason for the failing DKIM).
This is the message downloaded from gmail (the receiving server) which was sent with 5 empty new lines: pass-gmail.txt
This is the message downloaded from gmail which was sent with 6 empty new lines: fail-gmail.txt
The text was updated successfully, but these errors were encountered: