Hi Wietse,
Thanks for the swift response!
1. recipient_bcc maps is only does inbound mail right ? I have to set
sender_bcc as well to catch the outbound?
2. bcc+$1=$2...@example.com is not clear for me. basically i have setup
another e-mail address to which primary postfix should send the archive
messages to.
On 2/23/2012 9:17 PM, Wietse Venema wrote:
Janantha Marasinghe:
Dear Friends,
I'm currently using always_bcc to archive inbound and outbound of my
postfix server. What do I have to do to preserve the original envelope
of the e-mails sent? I search the mailinglist archive at postfix users
but couldnt find a clear solution.
Use a regular expression:
/etc/postfix/main.cf:
recipient_bcc_maps = pcre:/etc/postfix/recipient_bcc
recipient_delimiter = +
/etc/postfix/recipient_bcc:
/^(.*)@(.*)/ bcc+$1=$2...@example.com
(it would also work with "recipient_delimiter = -", and
"bcc-$1=$2...@example.com").
Wietse