MRob:
> For some time it is possible to make postfix virtual tell a LDA who is 
> the original recipient, add x-original-to header. But not LMTP. This 
> create problems in final delivery, one example is autoreply vacation 
> program cannot check if message was addressed directly to this user or 
> not, so many autoreplyies are sent when it should not happen.
> 
> Feature request for this seems stalled, but in meantime, is there any 
> workaround?
> 
> FYI, I use dovecot LMTP.

There is a workaround for SMTP mail:

    /etc/postfix/main.cf
        smtpd_recipient_restrictions =
            ....
            reject_unauth_destination
            check_recipient_access pcre:/etc/postfix/add-original-rcpt
            ....

    /etc/postfix/add-original-rcpt
        /(.+)/  PREPEND X-Original-To: $1

But that covers only mail that is received via SMTP; also, this
introduces a privacy leak when a message has multiple recipients;
each recipient can see who else received a copy of the message.

I hav updated the wishlist (for Delivered-To and X-Original-To).

        Wietse

Reply via email to