有些服务器发送的电子邮件没有日期标头,而 Thunderbird 无法识别日期。因此,我想使用以下设置并添加日期标头。
local_header_rewrite_clients = permit_inet_interfaces, ermit_sasl_authenticated
always_add_missing_headers = yes
但postfix.org说这可能会破坏 DKIM 签名。有没有办法添加日期标头而不破坏 DKIM 签名? (我的邮件服务器使用 DKIM。)
无日期标题邮件的示例:
Return-Path: <[email protected]>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on example.net
X-Spam-Level: ***
X-Spam-Status: No, score=3.7 required=8.0 tests=CONTENT_TYPE_PRESENT,
FROM_MISSP_EH_MATCH,IP_LINK_PLUS,ISO2022JP_BODY,ISO2022JP_CHARSET,
MISSING_DATE,MISSING_MID,NORMAL_HTTP_TO_IP,ONEGAI,QENCPTR1,RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2,RENRAKU,SPF_HELO_PASS,SPF_SOFTFAIL,TO_NO_BRKTS_FROM_MSSP
autolearn=no autolearn_force=no version=3.4.0
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from xxxxx.example.org (xxxxx.example.org [xxx.xxx.xxx.xxx])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by example.net (Postfix) with ESMTPS id D53991D45
for <[email protected]>; Wed, 5 Sep 2018 20:44:48 +0900 (JST)
DKIM-Filter: OpenDKIM Filter v2.11.0 example.net D53991D45
Received: from xxxxx.example.org (xxxxx.example.org [xxx.xxx.xxx.xxx])
by xxxxx.example.org (Postfix) with ESMTP id 77EFF8DC01
for <[email protected]>; Wed, 5 Sep 2018 20:44:48 +0900 (JST)
Received: (qmail 23991 invoked by uid 101); 5 Sep 2018 20:44:43 +0900
Received: from unknown (HELO xxxxx.example.org) (xxx.xxx.xxx.xxx)
by 0 with SMTP; 5 Sep 2018 20:44:43 +0900
Subject: ---email subject---
From: ---email subject---
To: ---email subject---
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit
X-Mailer: Bap Version1
---email body---
答案1
您的服务器是否使用 DKIM 并不重要。DKIM 签名是由发送者添加的,并且需要发送者的私钥才能创建签名。
作为 DKIM 签名的一部分,发件人的邮件服务器采用一些标头(通常包括日期标头),将这些标头连接起来,并对结果进行加密签名。如果您更改其中任何标头,或添加不存在的标头,则会更改连接的字符串,并且签名将无效。
您显示的邮件未经过 DKIM 签名。
简而言之:你不能做你要求的事。