Set outgoing email to show server ip and hostname.

TheDjinn

Member
Dec 9, 2014
24
1
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,
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
 

TheDjinn

Member
Dec 9, 2014
24
1
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,
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.