X-Envelope-To / X-Original-To on outgoing mails for mail archive

hello all,
I had already asked in another post how I adjust the headers for incoming mails.
It’s about connecting securepoint uma as an email archive to nethserver.

solution for incoming mails:

now the question remains open, what changes do i have to make so that i also have the correct header for outgoing mails?

Thanks a lot for your help!

What header do you need to set, X-Envelope-To?
I have no idea but if it works similarly to piler mail archive module then maybe this can give you a clue (info from https://www.mailpiler.org/wiki/current:installation):

If you have postfix (including zimbra), then add the following to main.cf:


  smtpd_recipient_restrictions = reject_non_fqdn_recipient, ..., \
                    check_recipient_access pcre:$config_directory/x-add->>envelope-to, ...

  always_bcc = archive@piler.yourdomain.com


  /(.*)/   prepend X-Envelope-To: $1

Note that such configuration might reveal Bcc addresses to the recipients in the To/Cc fields.

1 Like