usrflo / DKIM-for-JavaMail

DKIM for JavaMail is a small JAR that can be easily implemented in existing Java projects using JavaMail for sending DKIM signed emails.
Apache License 2.0
34 stars 48 forks source link

DKIM signature is failed for 8bit encoding #5

Open krish93 opened 7 years ago

krish93 commented 7 years ago

When the content transfer encoding is 8bit, all the mail that are signed is getting failed. Have attached the eml of the failed mail. Please provide the fix for this isssue. dkim_8bit.txt

davidef commented 6 years ago

I'm facing the same issue. Is there any update?

krish93 commented 6 years ago

Convert the 8bit encoded mail to quoted-printable before signing It will solve the issue you are facing. Refer this url https://tools.ietf.org/html/rfc4871#section-5.3

davidef commented 6 years ago

Thanks, mine issue was that for some reason "mail.smtp.allow8bitmime" was set to true causing JavaMail to automatically convert messages back to 8bit