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.

Set outgoing email to show server ip and hostname.

Discussion in 'E-mail Discussions' started by TheDjinn, Mar 25, 2015.

  1. TheDjinn

    TheDjinn Member

    Joined:
    Dec 9, 2014
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    For example. Emails sent through gmail from my phone show;

    xxx.xx.xx.xx mail-blah.google.com

    While if I send through my own server.

    xxx.xx.xx.xx mail-blah.vzw.com

    So my question is how do I get Exim to append
    xxx.xx.xx.xx mail-blah.myserver.com

    to all outgoing messages that are authenticated through my email server?

    Thanks,

    Edit: I noticed one other peculiarity. When I send from my server to another email account on a different server. It shows xxx.xx.xx.xx mail-blah.myserver.com like it's supposed to, however when emailing other accounts on the server it only lists the local authenticated IP and Hostname of the ISP, such as Verizon, which is causing our own DNS blacklist to block messages that we send to each other if the IP we are leased is listed.

    How can I resolve it to show the correct Hostname and IP or even 127.0.0.1 localhost when emailing an account on the same server?

    Thanks again,
     
    #1 TheDjinn, Mar 25, 2015
    Last edited: Mar 25, 2015
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    What method are you using to send email? For instance, are you using a specific webmail application, or a desktop client such as Thunderbird? Do you notice a difference when sending via a different method?

    Thank you.
     
  3. TheDjinn

    TheDjinn Member

    Joined:
    Dec 9, 2014
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    The issue occurs with any third party email client. The use of the webmail always shows localhost.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    It's ultimately the email client that is adding the sender's IP address to the message header. For example, you will notice the same behavior when using Horde and SquirrelMail, however Roundcube will not display the sender's IP address in the message header. The workaround to this is to search out an email client that will not add your IP address to the message header.

    Thank you.
     
  5. TheDjinn

    TheDjinn Member

    Joined:
    Dec 9, 2014
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Sorry for the way late reply. I've been away. That's interesting, is there a way server side to change the ip headers when it passes through Exim?

    Thanks again,
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I don't know of any specific custom ACL rules that would make that type of change, but you may want to post to the Exim users mailing list to see if anyone else has potential solutions:

    Exim Users Mailing List

    Thank you.
     
  7. TheDjinn

    TheDjinn Member

    Joined:
    Dec 9, 2014
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Will do Michael, thank you very much!
     
Loading...

Share This Page