Exim doesn't send emails from the account's dedicated IP address

krava

Well-Known Member
Sep 23, 2003
149
0
166
cPanel Access Level
Root Administrator
Hi guys,

I have a problem with Exim. It doesn't send emails from the account's dedicated IP address even when the options:

"Send mail from account’s dedicated IP address"

OR

"Reference /etc/mailhelo for outgoing SMTP HELO"
"Reference /etc/mailips for outgoing SMTP connections"

are enabled in "Exim configuration editor" of cPanel. I double checked the files /etc/mailhelo, /etc/mailips and they look good.

The server operates under Centos 6.4 (64bit) and WHM 11.36.0 (build 21). Does anyone else except me experience the same problem ?

Just to clarify:

The emails sent by me from the accounts with the dedicated IP addresses reach their recipients just fine but according to the mail headers of the received emails the source mail server established mail session to the destination mail hosts from the shared IP address.

Thank you.
 
Last edited:

krava

Well-Known Member
Sep 23, 2003
149
0
166
cPanel Access Level
Root Administrator
I followed the instructions provided at the page:
Changing the Sending IP for Outbound Email in Exim
before I opened the thread.

Currently I have the option "Send mail from account’s dedicated IP address" enabled. So now the files:
/etc/mailips
/etc/mailhelo
are managed by cPanel automatically. The content of the above files is fine (it looks like content from DOCs) but when I send the email from the email address of the account with the dedicated IP the mail headers demonstrate that the server sends the email from the shared IP address and not from the dedicated IP assigned to the account. I check the mail headers on the destination mail host.

Please note I didn't modify the file /etc/mailips manually. It was generated by cPanel.
 

krava

Well-Known Member
Sep 23, 2003
149
0
166
cPanel Access Level
Root Administrator
I didn't modify the exim's configs manually. Anyway, I reset the exim's config files to default using the option:

WHM --> Exim configuration manager -- > Reset --> Reset the entire Exim configuration to the default settings provided with cPanel & WHM (3rd party and custom ACLs were disabled too)

then I opened "Exim configuration manager" again, clicked the tab "Basic editor" and enabled the option "Send mail from account’s dedicated IP address". Other options remained untouched, saved the settings and sent one more test email.

Unfortunately it hasn't solved the problem.

Is it better to open a support ticket ?
 

compufixpro

Registered
Jan 17, 2013
4
0
51
cPanel Access Level
Root Administrator
We are having the same issue and have also followed the same path. In addition we have mail_reverse_dns correct as well. We simply can't get exim to use dedicated ips for any domains on WHM. Any input would be appreciated. Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
We are having the same issue and have also followed the same path. In addition we have mail_reverse_dns correct as well. We simply can't get exim to use dedicated ips for any domains on WHM. Any input would be appreciated. Thanks!
Please open a ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
What fix to solve this problem?
Are you having the exact same issue and have you completed the same steps as the original poster? If so, you can open a ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

websnail.net

Well-Known Member
Mar 24, 2002
45
4
308
Identified the most likely cause.

I hit the exact same issue as everyone else and looking at the details I realised that I was using a redirected domain for my email address.

eg: foo.co.uk was pointed at foo.com

foo.com was the primary account with a dedicated IP

Sending email from: [email protected] was all sent via the shared IP.

Updating the /etc/mailhelo to point

foo.co.uk: foo.com

... resulted in the domain being correctly identified instead of the servers main domain ID, but still sent from the shared IP.

----

Updating the /etc/mailips to add:

foo.co.uk: [dedi ip for foo.com]

...fixed the issue and now all emails from foo.co.uk are sent using the dedicated IP for foo.com


So, basically Cpanels fix does not automatically add any pointed domains to the files as shown as above.. You'll need to add them yourself.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
I hit the exact same issue as everyone else
Hello :)

What version of cPanel did you reproduce this issue on? Note that internal case FB-109129 (not yet released) aims to address an issue where when the option is enabled for accounts to send out mail over dedicated IP addresses, if accounts are owned by a reseller with a different "Reseller Shared IP", it will ignore the domain account's IP address and use the reseller shared IP address in /etc/mailips.

Thank you.