From: Magnus Bäck (no email)
Date: Sun Oct 02 2005 - 14:40:36 EDT
On Sunday, October 02, 2005 at 16:47 CEST,
Ronan Mullally <> wrote:
[...]
> I can accomplish this by running multiple instances of postfix, each
> with its own configuration and queues, but I'd rather find a more
> elegant approach. What I ideally need is some may of setting the
> smtp_bind_address for a relayed message based on the interface upon
> which smtpd received the message.
Not possible with a single Postfix instance. Postfix supports routing
based on the recipient address, nothing else.
But sure, it might theoretically be possible with one or two Postfix
instances using some really gross access map hacks, but then you'd be
way better off with one instance per domain.
> I've had a look at using one postfix instance, and binding smtpd on
> different addresses / ports, but I can't see how I can enfore a
> particular source address for outbound messages. I've tried '-o
> smtp_bind_address' in the master.cf definition of each smtpd listener,
> but it doesn't appear to work (not surprisingly, it's an SMTP client
> option, not a daemon option).
Exactly.
> Another possibility might be to try and put messages from each of
> the various smtpd listeners into different queues, which are then
> delivered by smtp clients configured with queue-specific source
> addresses, but I haven't looked into that properly yet.
Do you by any chance have a sendmail background? Postfix doesn't have
such a concept of multiple queues, so you don't have to look into it.
[...]
-- Magnus Bäck
|
|
|