Timo Sirainen:
> > I wonder if careful use of the DSN extension would help.  With DSN,
> > the SMTP/LMTP client sends the original recipient with:
> > 
> >    RCPT TO:<final-rcpt> ORCPT=rfc822;orig-rcpt ...
> 
> Does Postfix already send this if LMTP server advertises DSN?

Yes :-) It's the same code for both SMTP and LMTP.

> > One problem is that DSN hands off the responsibility to notify the
> > sender about successful delivery.  I don't know if that is desirable.
> 
> Not necessarily a problem, but I can't seem to find any discussion
> on how it should interact with Sieve. This is clear:
> 
>  * NOTIFY=FAILURE + Sieve discard: Don't send DSN
> 
> But nothing else is. I'm guessing perhaps:
> 
>  * NOTIFY=SUCCESS + Sieve discard: Send a success DSN
>  * NOTIFY=FAILURE + Sieve reject: Send a failure MDN, but no DSN
>  * NOTIFY=SUCCESS + Sieve reject: Send a failure MDN, but no DSN
>  * NOTIFY=FAILURE + Sieve ereject: Reject the mail on DATA reply, no DSN
>  * NOTIFY=SUCCESS + Sieve ereject: Reject the mail on DATA reply, no DSN

I think that reject/tempfail are easy - just report 5xx or 4xx at
end-of-data time, and the MTA will take care of notification.

With SUCCESS, the LMTP server would be responsible for sending the
notification.  If the LMTP server already has the ability to "forward"
mail, and if that code path can be reused, then sending the "success"
notification might not cost a lot of extra code.

> RET=FULL also seems like it could only be abused..

Sure. Postfix switches to RET=HDRS when the bounce message size
exceeds some threshold.

        Wietse

Reply via email to