我有两个服务器-1 (S1)和服务器-2 (S2)(基于centos 5+后缀)。S1包含我的软件,S2是一个SMTP。S1向S2提交邮件,向远程STMP提交S2邮件。
接收到的邮件在“接收”头中显示两个服务器的信息。我只想显示S2的信息,而不是S1的信息。
我的标题如下
Delivered-To: rameh@snet.in
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: <rameh@sarvmail.com>
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 rameh@sarvmail.com) 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 rameh@sarvmail.com) smtp.mail=rameh@sarvmail.com
**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 <rameh@snet.in>; Wed, 26 Oct 2011 01:47:10 -0400 (EDT)**在这里,我的smtp服务器2 (ns5.labs.com)和我正在从ocpm.co.in发送邮件。如何删除ocpm.co.in的detials
发布于 2011-10-26 20:15:58
更准确地说:您不应该更改这些标题。这是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.发布于 2011-10-26 14:02:29
你不能这么做。每个符合RFC标准的MTA都会添加接收标头,并且接收链显示从注入点到交付点的完整传递路径。
阅读文档并尊重法律(RFC是针对网络的法律)!
https://serverfault.com/questions/324841
复制相似问题