Timo Sirainen: > There's a problem with aliases that LMTP server can't solve. Lets > say I have two aliases: > > info@domain -> shared@domain > sales@domain -> shared@domain > > The LMTP server sees RCPT TO:<shared@domain> for mails that arrive > to both of them. If the sender sent the mail to only one of them, > the original address can at least in theory be read from the > Received: lines. If the sender sent the mail to both of these > aliases, the LMTP server won't see the originating address anywhere > at all.
I wonder if careful use of the DSN extension would help. With DSN, the SMTP/LMTP client sends the original recipient with: RCPT TO:<final-rcpt> ORCPT=rfc822;orig-rcpt ... That's either the address that the Postfix SMTP server received with RCPT TO + ORCPT, or Postfix's best guess (which could be a bare username in the case of command-line submission, something that should be fixed). One problem is that DSN hands off the responsibility to notify the sender about successful delivery. I don't know if that is desirable. Wietse