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?
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.
On 2019-05-21 20:22, Wietse Venema wrote:
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.
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
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
It's now safe to throw off your computer.