Inside both incoming and outgoing you will need to add an interface like so:Originally posted by ialex03
Hello.
Could someone help me to bind Exim to a different IP address?
Now it sends emails from main server IP but I need it to send from a secondary IP. It is possible?
Thank you.
If there is an exim update when you upgrade your cpanel you will need to re-enter the interface again.Originally posted by ialex03
Thank you very much, you are rock
You saved my time, I was going to start looking for solution in the Exim docs.
RaveKnights said:Inside both incoming and outgoing you will need to add an interface like so:
find
remote_smtp:
driver = smtp
inside:
/etc/exim_outgoing.conf
/etc/exim.conf
and add interface = ip.you.want.to.use
example as shown below:
________________________
remote_smtp:
driver = smtp
interface = 22.22.22.22
_________________________
IP needs to be on server in order for this to work
save and restart exim
exim_outgoing.conf isnt there by default, people running mailscanner will have it thoughsbd said:Ahmmm. I have a more complecated question in my head.
First of all let me tell you that I did not find the exim_outgoing file in the system.
Is this normal ? I saw another guy says he didnt find it.
I simply create it and add the interface line ???
Which command inside exim.conf can limit the max send of emails per once ?
Also exim in its beggining has a command which gives him all local domain names etc.
But how can you define exims name ? Ex : mail.yourdomain.com
As I have read and under the rfcs mailservers need even a PTR (reverse) record in order they can function correctly.
Excuse my lameness in exim. I have never worked with exim before and generally I am a noob in mailservers in general. I ask for your help since I am really tight in time right now and I really need your assistance !
Thanks you all for your time.
Regards
sbd
What would you like to accomplish ?sbd said:Ahmmm. I have a more complecated question in my head.
First of all let me tell you that I did not find the exim_outgoing file in the system.
Is this normal ? I saw another guy says he didnt find it.
I simply create it and add the interface line ???
Which command inside exim.conf can limit the max send of emails per once ?
Also exim in its beggining has a command which gives him all local domain names etc.
But how can you define exims name ? Ex : mail.yourdomain.com
As I have read and under the rfcs mailservers need even a PTR (reverse) record in order they can function correctly.
Excuse my lameness in exim. I have never worked with exim before and generally I am a noob in mailservers in general. I ask for your help since I am really tight in time right now and I really need your assistance !
Thanks you all for your time.
Regards
sbd
that is correct.If you dont have mailscanner you only need to add the interface line on the exim.conf ?
I put a wrapper replacement for chattr that seems to work for protecting certainchirpy said:That won't work (using chattr) as the cPanel exim scripts remove the immutable flag from the configuration files before they modify them.
This is not work anymore on CPanel 11 StableWhat would you like to accomplish ?
Would you like to enable exim listening or sending on certain IP address ?
cPanel's exim has all main configuration made in /etc/exim.conf.
So if you would like to bind listening interface to certain IP address open /etc/exim.conf and add this line at the beginning of conf file:
local_interfaces = xxx.xxx.xxx.xxx : xxx.xxx.xxx.xxx
You can add more IP address, delimit them with a ":"
If you would like to limit from which IP you are sending mail add to conf file, just under:
begin transports
remote_smtp:
driver = smtp
interface = xxx.xxx.xxx : xxx.xxx.xxx.xxx
Rule for more IP address apply as mentioned above.
But be carefull !
cPanel overwrites custom modiffications so change those custom rules in WHM / Service Configuration / Exim Configuration Editor
Open "Advanced Editor" and add in first edit field under "#!!# cPanel Exim 4 Config":
local_interfaces = xxx.xxx.xxx.xxx : xxx.xxx.xxx.xxx
You cannot add sending smtp interface yo make sure you check conf file after cPanel upgrades.
Regards,
Grega