Results 1 to 2 of 2

Thread: can we hide mail orginating ip in mail header

  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    1
    cPanel/WHM Access Level

    Root Administrator

    Default can we hide mail orginating ip in mail header

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

  2. #2
    Member
    Join Date
    Apr 2006
    Posts
    9

    Default Re: can we hide mail orginating ip in mail header

    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.

Similar Threads

  1. Remove/Hide Mail Icons/Section
    By dakernel in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 06-09-2009, 06:14 PM
  2. Need help with Header info on forwarded Mail
    By Lester M in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 02-20-2007, 07:42 AM
  3. Some basis esplain about this header mail !!
    By mvital in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 12-21-2005, 10:23 AM
  4. php mail header patch
    By hostserver in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 09-13-2005, 05:20 AM
  5. X-AntiAbuse in mail header sent
    By jean louis in forum New User Questions
    Replies: 1
    Last Post: 09-18-2004, 10:00 AM