Fabio Sangiovanni:
> Hi,
> 
> I need to configure Postfix to get the following result: I need
> every mail submitted by users to be redirected to a remote account
> (via SMTP or LMTP), and every message must contain an header with
> the original envelope rcpt.  Example:

/etc/postfix/main.cf
    smtpd_recipient_restrictions = 
        check_recipient_access pcre:/etc/postfix/prepend.pcre
        ...stuff...
        reject_unauth_destination
        ...more stuff...

/etc/postfix/prepend.pcre:
    /(.+)/ prepend X-Recipient: $1

        Wietse

Reply via email to