On Tue, Oct 07, 2008 at 10:31:40PM +0200, Tomasz Chmielewski wrote: > 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 ;)
If all mail entering the server via SMTP leaves the server via SMTP (no local deliveries, virtual mailbox deliveries, ...) such a policy may be possible, but it is generally not necessary. What real problem does this solve? If you are onboarding low-volume email marketing clients, and want to isolated their reputations from each other, "good luck"... -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:[EMAIL PROTECTED]> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.