Hi, I need to configure Postfix to get the following result: I need every mail submitted by users to be redirected to a remote account (via SMTP or LMTP), and every message must contain an header with the original envelope rcpt. Example:
user MUA submits 2 messages, one for [email protected] and the other for [email protected]; I need this two messages NOT to be delivered to their respective recipients, but to another inbox, let's say [email protected], using SMTP or LMTP as delivery agent. Once in the inbox, I need to be able to get the original envelope recipients ([email protected] and [email protected]) in some kind of headers. I successfully managed to get this result with local delivery (X-Original-To: header), but I couldn't find a way to keep the same information with smtp; it appears only in the Received: header, while I'd like to have a dedicated one, if possible. Is there a way I can get this kind of setup? Thanks for your help!
