OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: strange double bcc issue with bcc maps on postfix

From: Peter Rabbitson (rabbitrabbit.us)
Date: Thu Aug 02 2007 - 09:59:16 CDT


Nathan wrote:
> All email send to and from my users is automatically bcc'd to an audit
> user through a 'always bcc' entry in main.cf. A few users have
> additional bcc's for their sent and received mail (established through
> recipient_bcc_maps and sender_bcc_maps) to their supervisors.
>
> For some reason, when those users (whose mail is bcc'd through
> "always_bcc", "recipient_bcc_maps," and "sender_bcc_maps") send email,
> their sent messages shows in between one and four times (twice is the
> norm) in the audit user (whose email is checked by GNU tools like cat
> and grep, not by a MUA) and supervisor's inbox.
>

Since you are sending mail to a content filter, mail passes through
Postfix twice and the BCC mapping is performad as many times as well.
You need to specify receive_override_options = no_address_mappings
before you send mail to the filter as described here:
http://www.postfix.org/postconf.5.html#receive_override_options

For different ways to do this check this thread:
http://tech.groups.yahoo.com/group/postfix-users/message/221912

HTH

Peter