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