【发布时间】:2015-05-08 22:20:32
【问题描述】:
我正在尝试为我的电子邮件签署 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 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(body hash 未验证)
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 标头:
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=
怎么了?
【问题讨论】: