On Mon, Aug 13, 2012 at 05:07:36PM -0300, Andre Nathan wrote:
> On Mon, 2012-08-13 at 10:49 -0400, Wietse Venema wrote:
> > 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.
>
> Is there anything a milter application could do to force delivery using
> two separate SMTP sessions?
This makes little sense, milters happen when mail is coming in,
not when it is going out. If a message comes in with multiple
recipients, it stays that way until after the milter processing is
done. The queued message is identical for all recipients.
To handle SRS, you need to intercept the copy of the message that
will be forwarded for a particular recipient. This is only possible
with indirect local(8) delivery, with forwarding via the aliases(5)
database. In this case a new queue-id is created for the single
recipient message that will be sent out after aliasing.
Another approach is to route all forwarded recipients to a second
Postfix instance, via a transport with a recipient limit of 1. The
SRS milter can then be installed there.
--
Viktor.