On 2019-05-22 07:58, Matus UHLAR - fantomas 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.
I don't understand. The LMTP receivee DOES know who is the recipient,
doesn't it?
Not if any address mapping has happened. Same reason postfix pipe
provides the O flag
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.
On 21.05.19 21:36, MRob wrote:
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.
if you need this when delivering to LMTP, maybe this could be avoided
by
setting <dovecot>_destination_recipient_limit=1
No, the check_recipient_access solution prepends x-original-to headers
for all recipients of the mail, *_destination_recipient_limit not
relevant.