On 09/05/2010 02:52 PM, Frank Doege wrote:
Hi,

i have a postfix implementation where i use recipient_bcc maps to duplicate messages which are from users which are on my exchange server.

Don't you mean sender_bcc_maps in that case ?

This is needed
because users still want to be able to read there mail with the conventional
imap system ( so forwarding is no solution ).

The problem is that postfix seems to generate the bcc message before the spamfilter
and then send it without checks to the exchange.

The first is correct, the second is highly unlikely.

recipient_bcc_maps is parsed by cleanup(8), duplicating the message before it hits the incoming queue.

If you use the normal after-queue content_filter as your spam filter, then both messages will be processed by it.

You'd have to show logs of this happening to convince me that a bcc'd message bypasses the content-filter.

Of course, since you're not sharing what this "spamfilter" actually is, GIGO.


How can i change that behavior ? I would like that postfix does the bcc after the
spamfilter(amavis) has been run.

You could move the duplication to virtual_alias_maps:

incom...@domain.com    mail...@delivery.com     bcc_addr...@somehwere.com


For more details, refer to http://www.postfix.org/ADDRESS_REWRITING_README.html#auto_bcc

    and http://www.postfix.org/FILTER_README.html


J.


Reply via email to