On Wed, Apr 21, 2021 at 11:17:19AM -0400, Alex wrote:

> I have postfix configured in a multi-instance setup in conjunction
> with amavisd. I'm using always_bcc to create a copy of each email sent
> or received.

This does not create a "copy", it adds a recipient to the message.

> The problem is that, while postfix appears to deliver the bcc-user
> email separately from the other recipients,

This is not the case, the bcc user is treated just like any other
recipient.  If all the other users are sent in one go to a content
filter, the same will be true for the Bcc recipients.

> amavis somehow delivers to all the recipients, including the bcc-user,
> as one email.

Why is that a problem?  Ultimately the message is delivered to all
the recipients, including the bcc recipiets, and at some point the
envelope may split with separate per mailbox deliveries.

> How do I configure always_bcc to bypass amavisd altogether so it isn't
> processed at all?

In a single instance deployment, you can't.  Content filters apply to
all recipients.  In a multi-instance deployment, you avoid using
"content_filter" and use the transport table to select the appropriate
delivery mechanism for each recipient domain:

        input instance --->  filter1 ----> output instance
                              .....
                       --->  filterN ---->

One of the "filter" channels can be a direct connection to the output
instance, bypassing filtering.

-- 
    Viktor.

Reply via email to