Changed outgoing email IP but still sending from original IP
I followed these steps:
https://support.cpanel.net/hc/en-us/articles/360050896653-Changing-the-outgoing-IP-for-email
but when I send a message from a Perl script on the server and receive it, the headers still shows:
Received: from [old-IP-address] (port=xxx helo=localhost.localdomain)
I changed the /etc/mailips file, which was empty, so it now contains the new public IP address (one of the other IPs I own associated with this server):
*: new-IP-address
I changed the setting in Exim Config Manager:
Reference /etc/mailips for custom IP on outgoing SMTP connections = [ON]
And finally, I restarted the exim service.
Anything else I'm missing?
Thanks!
-
Hey there! How is the Perl script sending the message? Is it connecting through a verified account so it sends through Exim? I'm guessing that is the key to why this isn't working.
I would verify this by sending a traditional email from a cPanel email account to see what IP that comes from to ensure the Exim modifications are correct.
0 -
I think it's using Mime:Lite with sendmail to send the message. I also tried logging into a hosted account's Round cube account and sending a message but it also used the old IP.
0 -
Alright, so both the script and cPanel have the issue, so at least things are consistent.
Are there any other entries in the /etc/mailips file, or just the one line you've added?
0 -
That's the only line in mailips. It was empty before I added it.
0 -
I'm honestly not sure why that wouldn't be working from the details you've provided - and I even wrote that article!
It would be best to submit a ticket so this can be investigated directly on the machine experiencing the issue.
0 -
Killian Ayers - a link to what, specifically? The OP shared the article link in his first post, so if that's not the one you're looking for I'm not sure what you're referring to.
0
Please sign in to leave a comment.
Comments
6 comments