Another dirty workaround to hide X-Envelope-To from other recipients than the piler archive:

        smtp      unix  -       -       -       -       -       smtp
          -o smtp_header_checks=pcre:/etc/postfix/x-remove-envelope-to
smtp_keep_envelope_to unix - - - - - smtp
        lmtp      unix  -       -       -       -       -       lmtp
          -o lmtp_header_checks=pcre:/etc/postfix/x-remove-envelope-to

        piler.domain.tld        smtp_keep_envelope_to:[mypilerhost]:25

        /^X-Envelope-To/        IGNORE

This uses smtp_keep_envelope_to as transport to piler.
Everything else is sent via smtp (when default_transport is smtp, of course). smtp then removes the "X-Envelope-To" header. Yes, I add it and then remove it. :-/

Just wanted to share this idea...


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to