can we hide mail orginating ip in mail header

hersh234

Registered
Jun 21, 2012
1
0
1
cPanel Access Level
Root Administrator
Hello,

I have the mails relaying through a remote mail server from hosting server, but exim mail header is showing the ip of the server from where mail is originated. Can we hide the origination IP (hosting server ip) in exim mail header.

example
-------------------------------
Received: from 10.10.10.10-static.example.com [10.10.10.10]:58652 helo=www.example.com)
-------------------------
 

Samuraid

Member
Apr 20, 2006
13
0
151
Yes.

Go into the Exim Advanced Editor.

Edit (or create) the configuration option "received_header_text"

Set the value to:
Code:
Received: \
by $primary_hostname\
${if def:received_protocol {with $received_protocol}}\
${if def:tls_cipher {($tls_cipher)\n\t}}\
(Exim $version_number)\n\t\
${if def:sender_address\
{(envelope-from <$sender_address>)\n\t}}\
id $message_exim_id\
${if def:received_for {\n\t for $received_for}}
Then save.

It will remove the "from" part of the Received field, and only have the "by" part of the field, similar to how gmail and other mail services write their headers.

I'm not sure what the ramifications will be as far as email delivery goes, but I'm testing this config right now and will try to post back here if any problems arise.