I have a server with several public IP addresses (aliases on one network card), running Postfix.

The machine also runs several websites, which interact with the users (forums, automated responses for queries etc.).

I would like to configure each "website" to send mails via a different IP address.

For example, if "website1" connects to 192.168.1.1:25, Postfix should try to deliver mail from this website via outgoing 192.168.1.1 address.

If "website2" connects to 192.168.2.2:25, Postfix should try to deliver mail from this website via outgoing 192.168.2.2 address.

And so on.


Is it possible to do so in Postfix? So far, the system uses two outgoing addresses, but also using two separate MTAs (Exim and Postfix, each using a different outgoing address), which is suboptimal, and does not scale very well with additional IP addresses ;)


--
Tomasz Chmielewski
http://wpkg.org

Reply via email to