Postfix 远程接收头

Postfix 远程接收头

我有两台服务器 SERVER -1 (S1) 和 SERVER -2 (S2)(基于 centos 5 + Postfix)。S1 包含我的软件,S2 是 SMTP。S1 向 S2 提交邮件,S2 向 REMOTE STMP 发送邮件。

收到的邮件在“已接收”标题中显示两个服务器的信息。我想仅显示 S2 的信息,而不显示 S1 的信息。

我的标题如下

Delivered-To: [email protected]
Received: by 10.146.167.20 with SMTP id p20cs104988yae;
        Tue, 25 Oct 2011 22:47:14 -0700 (PDT)
Received: by 10.52.34.177 with SMTP id a17mr14374982vdj.103.1319608033913;
        Tue, 25 Oct 2011 22:47:13 -0700 (PDT)
Return-Path: <[email protected]>
Received: from ns5.labs.com (ns5.labs.com. [184.107.181.34])
        by mx.google.com with ESMTP id h8si507643vdv.12.2011.10.25.22.47.13;
        Tue, 25 Oct 2011 22:47:13 -0700 (PDT)
Received-SPF: neutral (google.com: 184.107.181.34 is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=184.107.181.34;
Authentication-Results: mx.google.com; spf=neutral (google.com: 184.107.181.34 is neither permitted nor denied by best guess record for domain of [email protected]) [email protected]
**Received: from ocpm.co.in (50.23.42.114-static.reverse.softlayer.com [50.23.42.114])
    by ns5.labs.com (Postfix) with ESMTP id 2A3196B28261
    for <[email protected]>; Wed, 26 Oct 2011 01:47:10 -0400 (EDT)**

这是我的 smtp 服务器 2 (ns5.labs.com),我正在从 ocpm.co.in 提交邮件。如何删除 ocpm.co.in 的详细信息

答案1

更准确地说:您不应该更改这些标题。这是摘录RFC 5321 第 3.7.2 节

When forwarding a message into or out of the Internet environment, a
gateway MUST prepend a Received: line, but it MUST NOT alter in any
way a Received: line that is already in the header section.

答案2

你不能这样做。接收的标头由每个每一个符合 RFC 的 MTA,接收链显示从注入点到交付点的完整交付路径。

阅读文档并遵守法律(RFC网络法规)!!!

相关内容