The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

can we hide mail orginating ip in mail header

Discussion in 'E-mail Discussions' started by hersh234, Jun 21, 2012.

  1. hersh234

    hersh234 Registered

    Joined:
    Jun 21, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    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)
    -------------------------
     
  2. Samuraid

    Samuraid Member

    Joined:
    Apr 20, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...

Share This Page