Automatically send outgoing email from the accounts ip is not working consistently

Geekizard

Registered
May 15, 2009
2
0
51
I have enabled the option to "send outgoing emails from the account IP" in WHM for EXIM. When I use mail accounts attached to a domain the correct IP is used to send but when executing PHP web code all mail comes from the main system IP. If I shell in to the systems and 'su' over to one of the accounts and execute some php code (with the correct "from" domain to match /etc/mailips) mail still comes from the main IP of the system.

Am I misinterpreting the option in general? Should I be able to send e-mail from a particular account with a dedicated IP via web code or php code and have that option properly re-source the IP?

Mike
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
I have enabled the option to "send outgoing emails from the account IP" in WHM for EXIM. When I use mail accounts attached to a domain the correct IP is used to send but when executing PHP web code all mail comes from the main system IP. If I shell in to the systems and 'su' over to one of the accounts and execute some php code (with the correct "from" domain to match /etc/mailips) mail still comes from the main IP of the system.

Am I misinterpreting the option in general? Should I be able to send e-mail from a particular account with a dedicated IP via web code or php code and have that option properly re-source the IP?

Mike
Your PHP code, is it authenticating via SMTP to send the mail, or is it just using some sendmail function like mail()?
 

Geekizard

Registered
May 15, 2009
2
0
51
For testing purposes I am just using the standard mail() feature set (from, to, subject, etc).