Wietse Venema schrieb:
Tomasz Chmielewski:
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.
Postfix can specify the source IP address.
More or less, this sounds like what I'd like to do...
The KERNEL chooses
the network interface.
Not much work for the kernel here - I have only one network card
(interface, besides loopback).
Postfix has no control over the kernel's
routing algorithms.
I was a bit afraid to hear a confirmation that what I'd like to do would
be hard or impossible to achieve.
Basically, if Postfix can specify the source IP address, that should be
fine for me... provided that it can make some decisions here (i.e.,
which outgoing interface to choose, depending on From: or Received: etc).
But I guess I can't do it, can I?
Any other ideas?
--
Tomasz Chmielewski
http://wpkg.org