后缀远程接收标题

我有两个服务器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]) smtp[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 detials

更确切地说:你不应该改变这些标题。 这是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. 

你不能做到。 收到的报头由每个 RFC兼容的MTA添加,并且Received链显示从注入点到交付点的完整传送path。

阅读文档并遵守法律(RFC networking的法律)!