Andre Nathan:
> 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?
I am not aware of a Milter API that gives control over the MTA
scheduler.
Hypothetically, a Milter could submit single-recipient messages
into Postfix and delete the corresponding recipients from the
original envelope. This approach has a few problems: 1) I have no
idea how the new messages would duplicate the original message
envelope options such as VERP, DSN, or XFORWARD just to name a few;
2) this would obviously result in duplicate submissions if some
recipient needs to be tempfailed; 3) this would involve a less-tested
path in your code, and therefore it would have more bugs; 4) this
would increase file system overhead.
SRS is in some respects similar to VERP. When a message has the
VERP option turned on, the Postfix scheduler recognizes that each
recipient must be delivered with an evelope sender that is tagged
with the recipient address, and therefore it switches to single-recipient
deliveries. This VERP behavior is hard-coded into Postfix because
there was no reasonable other way to do this.
In your case the scheduler could compare the orig_rcpt and rcpt and
if they differ, switch to single-recipient mode. However, I don't
want to maintain hard-coded versions of DKIM or SRS etcetera inside
Postfix. That is why I provided the Milter and SMTP policy extension
interfaces. In the case of SRS this would require an additional
extension interface for the scheduler.
Wietse