0

I have two servers SERVER -1 (S1) and SERVER -2 (S2)(Based on centos 5 + Postfix). S1 contains my software and S2 is a SMTP. S1 submits mails to S2 and S2 mails to REMOTE STMP.

Received mail show the information of Both servers in "Received" header. I want to show the information of only S2, not of S1.

My Header as follow

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)**

Here my smtp server 2 (ns5.labs.com) and i am submiting mail from ocpm.co.in. how to i remove detials of ocpm.co.in

John P
  • 154
  • 6

2 Answers2

3

To be more precise: You are not supposed to alter these headers. This is the excerpt of RFC 5321 Section 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.
mailq
  • 17,023
  • 2
  • 37
  • 69
0

You cannot do it. Received headers are added by each and every RFC-compliant MTA, and the Received chain shows the full delivery path from point of injection to point of delivery.

Read the docs and respect the laws (RFCs are Laws for Net)!!!

james.garriss
  • 360
  • 6
  • 17
Lazy Badger
  • 3,137
  • 15
  • 13