Andre Nathan:
> Hello
> 
> Imagine the following situation:
> 
> a...@example.com sends an email to x...@local1.com and y...@local2.com.

Postfix by default delivers different domains in different SMTP
sessions.

> Both @local*.com accounts, via virtual_alias_maps, redirect to
> x...@external.com and y...@external.com.

If this aliasing is done before Postfix delivers the mail, then the
domains are no longer different. Postfix will therefore deliver
both in the same SMTP session.

> Am I right to assume that Postfix will create a single SMTP session with
> the SMTP server at external.com? That is, a single message with MAIL
> FROM = a...@example.com and RCPT TO = x...@external.com and RCPT TO =
> y...@external.com will be sent?

Of course. One message has two recipients in the same domain.

> If that is indeed the case, is there a configuration directive that
> forces two separate messages to be sent? The intent here is to be able
> to use the correct forward domain when SRS-signing the messages, ie, use
> local1.com as the SRS domain in the first message and local2.com in the
> second.

You could dumb down Postfix and reduce the default_recipient_limit.
I don't know if is a good idea to make the queue scheduler dependent
on both the final and the initial recipient address.

        Wietse

Reply via email to