Tomasz Chmielewski wrote:
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.
you can run multiple postfix instances, each with its inet_interfaces.
This even gives you multiple "sendmail -C ..." commands.
postfix cannot force the outgoing network interface, but since you only
have one, this is irrelevant.
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).
since you have one network card, you have one outgoing interface.
Choosing among one thing would be strange outside of maths ;-p
But I guess I can't do it, can I?
Any other ideas?