msd+postfix-us...@msd.im:
> Hello,
> 
> Is there a way, in the context of SMTP Access Policy Delegation 
> (http://www.postfix.org/SMTPD_POLICY_README.html), to change the 
> envelope sender (MAIL FROM: / Return-Path) of an e-mail ?

The policy protocol supports only the "action" features as documented
in the Postfix access(5) manpage.

> In fact, what I want is to call a script that will replace the envelope 
> sender (in order to collect bounces), but having in this script an 
> access to the "sasl_username" and the "recipient" to generate the new 
> envelope sender.

You can change addresses or content with a Milter (implementations
available in C, Perl, Python, etc.). There is a macro for the SASL
login name. See http://www.postfix.org/MILTER_README.html

        Wietse

Reply via email to