On 2019-05-21 20:22, Wietse Venema wrote:
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.
Thank you, sorry I cross-posted with your email. I found other problem
with this is inability to remove existing x-original-to headers.
Privacy problem is addressed with smtpd_recipient_limit=1 but thats not
very feasible.
I hav updated the wishlist (for Delivered-To and X-Original-To).
Thank you much