1

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?

Tks,

Marcelo M

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Change output IP

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

3

Re: Change output IP

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