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 use ddos mitigation services on my server and due to this it is very important that my server ip stays hidden. I own two servers, the primary server houses my website and the secondary server is used for emails. I use the secondary servers smtp info to send email. The problem is that the secondary server adds the ip address of the primary server in the email headers.

Authentication-Results:; spf=none (sender IP is 62.62.622.62) smtp.mailfrom=; dkim=none; x-hmca=none
X-SID-Result: NONE
X-Message-Status: n:n
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTE7YT0xO0Q9MTtHRD0xO1NDTD0x
X-Message-Info: aKlYzGSc+LkUh5O0AnwOe0N6RG7BEHXa+Ep9dVv2J/KLBdwJ4Iby2lXjCPbTQYFQteOst4AFBmvouIk6oSlsys3EmGNQAosOELxkPAlgXi6poOzgrzcwdKVa0O5X7ZL8AcJld8q/XqwGrh9m5oeIOUZC7Cl4wZMX
Received: from ([62.62.622.62]) by with Microsoft SMTPSVC(6.0.3790.4900);
     Tue, 25 Dec 2012 20:42:38 -0800
Received: from [] (port=59186 helo=localhost)
    by with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256)
    (Exim 4.80)
    (envelope-from )
    id 1TnipC-0001XL-4D
    for ; Tue, 25 Dec 2012 22:42:38 -0600
To: Test E-Mail 
Subject: Test E-Mail Message
Date: Wed, 26 Dec 2012 05:42:37 +0100
From: mywebsite 
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
MIME-Version: 1.0
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname -
X-AntiAbuse: Original Domain -
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain -
X-BWhitelist: no
X-Source-Sender: (localhost) []:59186
X-Source-Auth: emailacc
X-Email-Count: 0
X-Source-Cap: ZW1haWx0bWM7dG1jYmxvZ3M7dGVtcGxlLndlYnNpdGV3ZWxjb21lLmNvbQ==
X-OriginalArrivalTime: 26 Dec 2012 04:42:38.0526 (UTC) FILETIME=[6EC335E0:01CDE323]

In this header the ip address 62.62.622.62 belongs to the secondary server and the ip address belongs to the primary server. I want to remove all occurrences of from this header and replace them with 62.62.622.62.

share|improve this question

in EXIM changes to Received header string can be made via received_header_text variable

Remove exim local username

share|improve this answer
So if I don't assign anything to it, that should solve the problem. – droidlabour Dec 26 '12 at 10:14

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.