OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Always_BCC Exceptions

From: Victor Duchovni (Victor.Duchovnimorganstanley.com)
Date: Wed Jun 03 2009 - 13:20:14 CDT


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 !/^user1example\.com/
        /^/ bcc_for_everyone_elseexample.com
        endif

Alternatively, you can "bcc" a discarded address:

        user1example.com nobodydiscard.invalid
        example.com bcc_for_everyone_elseexample.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:majordomopostfix.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.