Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

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.
share|improve this answer

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

share|improve this answer
    
OK I WILL Follow RFCs Low thanks! –  John P Oct 26 '11 at 18:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.