.net - Signing DKIM error with UTF8 character in body -
i'm trying sign dkim email message.
with non-unicode body, work :
this multi-part message in mime format. ------=_nextpart_000_0011_01cf8271.717f57c0 content-type: text/plain; charset="windows-1258" content-transfer-encoding: 7bit test email ultramailer. ------=_nextpart_000_0011_01cf8271.717f57c0 content-type: text/html; charset="utf-8" content-transfer-encoding: 7bit test email ultramailer. ------=_nextpart_000_0011_01cf8271.717f57c0--
but if content contain utf-8 character, received message gmail indicate bodyhash (bh) have wrong: dkim=neutral (body hash did not verify)
this multi-part message in mime format. ------=_nextpart_000_0020_01cf8275.daaa6ba0 content-type: text/plain; charset="windows-1258" content-transfer-encoding: 7bit tieng viet ------=_nextpart_000_0020_01cf8275.daaa6ba0 content-type: text/html; charset="utf-8" content-transfer-encoding: 8bit tiếng việt <p> </p> ------=_nextpart_000_0020_01cf8275.daaa6ba0--
my dkim header :
dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mydomain.info; s=default; t=1402142861; bh=kjwc9tmots+ouaqohq9t6mw1pbmse3hz5uan2zdgceq=; h=from:to:subject; b=dgzigvayd+tz1ve7z1x2v7znolfmup+ejsmsnmwyxiplckh+awrxyaetwbvgnky9ybiueckxehy6hrmmrifzib2qwbahgnppn+lcvoblvaghrvq6emg7dp1+vkzaj1+qqroig6po+u/oanfx4hh8mdgnvdxdleprq5hsxvrkq/c=
what wrong ?
this may related content-transfer-encoding: 8bit
: if use special characters, thunderbird switches content transfer encoding automatically 8bit.
this can cause problems different dkim signing applications.
see: https://github.com/pro/dkim-exchange/issues/86 or http://sourceforge.net/p/dkimproxy/mailman/message/188564/
so solution force thunderbird not use 8bit encoding. can achieved setting mail.strictly_mime
true. (see: http://forums.mozillazine.org/viewtopic.php?f=28&t=1697835)
Comments
Post a Comment