.net 在正文中使用UTF8字符签名DKIM错误
我正在尝试为我的电子邮件签署DKIM 对于非unicode主体,它可以很好地工作:.net 在正文中使用UTF8字符签名DKIM错误,.net,dkim,.net,Dkim,我正在尝试为我的电子邮件签署DKIM 对于非unicode主体,它可以很好地工作: This is a multi-part message in MIME format. ------=_NextPart_000_0011_01CF8271.717F57C0 Content-Type: text/plain; charset="windows-1258" Content-Transfer-Encoding: 7bit This is a test email from UltraM
This is a multi-part message in MIME format.
------=_NextPart_000_0011_01CF8271.717F57C0
Content-Type: text/plain;
charset="windows-1258"
Content-Transfer-Encoding: 7bit
This is a test email from UltraMailer.
------=_NextPart_000_0011_01CF8271.717F57C0
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: 7bit
This is a test email from UltraMailer.
------=_NextPart_000_0011_01CF8271.717F57C0--
但如果内容包含utf-8字符,我从Gmail收到的消息表明我的bodyhash(bh)有错误:dkim=neutral(bodyhash未验证)
怎么了?这可能与
内容传输编码:8位有关:
如果使用特殊字符,Thunderbird会自动将内容传输编码切换为8bit
这可能会导致不同DKIM签名应用程序出现问题
见:
或
因此,解决方案是强制雷鸟不使用8比特编码。这可以通过将mail.sime
设置为true来实现。(见:)
This is a 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--
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=