On Wed, Jun 03, 2009 at 09:11:52PM +0300, Nikos Papadopoulos wrote:

> Dear friends,
> 
> I have configured Postfix with the Always_BCC and I would like to exclude 
> some of 
> the email accounts from being copied to the "BCC Account".
> Is it possible? If so what should I do?

Disable always_bcc (always => always) and use recipient_bcc_maps or
sender_bcc_maps to selectively "bcc", based on the sender or recipients.
Exceptions, are possible via regexp or PCRE tables.

        if !/^us...@example\.com/
        /^/     bcc_for_everyone_e...@example.com
        endif

Alternatively, you can "bcc" a discarded address:

        us...@example.com       nob...@discard.invalid
        @example.com            bcc_for_everyone_e...@example.com

    transport:
        discard.invalid         discard:silently

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to