Jay Chandler wrote:
Is there a way to exempt users from the always_bcc option (i.e., general
counsel doesn't want mail logged in the system)? I seem to recall there
was a way to build an exclusion class, but my brain's gone to bed before
I have tonight, it would seem...
use recipient_bcc_maps instead.
you can generate the list of recipients to bcc with a script or
"generate" them on the fly using sql, ldap, or pcre (or regexp).
alternative, bcc every recipient but embed the original recipient into
the bcc address. you can then discard selective bcc addresses.
For example:
recipient_bcc_maps =
pcre:/etc/postfix/recipient_bcc
== recipient_bcc:
/(.*)@example\.com$/ [EMAIL PROTECTED]
...
then use transport_maps to discard some:
[EMAIL PROTECTED] discard:
...
if you don't want per user transports (latency), first use a virtual
alias to rewrite the addresses to [EMAIL PROTECTED], then discard
mail to "discard.example.org".