Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

Received: by with SMTP id p20cs104988yae;
        Tue, 25 Oct 2011 22:47:14 -0700 (PDT)
Received: by with SMTP id a17mr14374982vdj.103.1319608033913;
        Tue, 25 Oct 2011 22:47:13 -0700 (PDT)
Return-Path: <>
Received: from ( [])
        by with ESMTP id h8si507643vdv.12.2011.;
        Tue, 25 Oct 2011 22:47:13 -0700 (PDT)
Received-SPF: neutral ( is neither permitted nor denied by best guess record for domain of client-ip=;
Authentication-Results:; spf=neutral ( is neither permitted nor denied by best guess record for domain of
**Received: from ( [])
    by (Postfix) with ESMTP id 2A3196B28261
    for <>; Wed, 26 Oct 2011 01:47:10 -0400 (EDT)**

Here my smtp server 2 ( and i am submiting mail from how to i remove detials of

share|improve this question

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


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.