Topic: Change output IP

==== Provide basic information to help troubleshoot and get quick answer ====
- iRedMail version: iRedMail-0.7.3 / iRedAdmin-Pro-MySQL-1.3.0
- Linux/BSD distribution name and version: Debian Squeeze 64
- Any related log? Log is helpful for troubleshooting.

Hi Zhang,

I have 5 IPs on the server and need to change the IP output of the emails. I can not change the main server IP (eth0) for reasons of infrastructure. I tried the parameter "inet_interfaces" in main.cf but still leaving the main server IP to output of the email.

There is another way?


Marcelo M


Re: Change output IP

You can do it with iptables rules to mark SMTP outgoing traffic and redirect output with specific IP.


Re: Change output IP

Did you try Postfix setting "smtp_bind_address"?
Reference: http://www.postfix.org/postconf.5.html# … nd_address


Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee