jeffrey j donovan:
>
> On Jan 29, 2013, at 9:43 AM, Wietse Venema <[email protected]> wrote:
>
> > For conditional BCC, use sender_bcc_maps or recipient_bcc_maps.
>
> Thanks for the reply,
>
> So if i want to avoid bcc from specific host/ [email protected] I
> need to create a bcc_map for those that I do want copied and not
> use always_bcc.
Let the computer do the work for you.
/etc/postfix/main.cf:
sender_bcc_maps = pcre:/etc/postfix/sender_bcc.pcre
/etc/postfix/sender_bcc.pcre:
if !/^archive-sender@archive-host\.example\.com$/
/./ [email protected]
endif
That should bcc all mail except mail from
[email protected] and mail with the null
sender address (i.e. delivery status notifications).
Wietse