On Thu, May 18, 2023 at 4:39 AM Matus UHLAR - fantomas via Postfix-users <
postfix-users@postfix.org> wrote:

> On 17.05.23 22:11, Alex via Postfix-users wrote:
> >I'm using postfix (postmulti) with amavisd and trying to have separate
> >content filters based on the domain so I can make decisions on the destiny
> >of the email from within amavisd. Currently all mail is processed by the
> >same amavisd policy_bank.
>
> so, amavis returns mail to postfix always the same way?
>
> > The problem now is that mail is being sent
> >through the content filter designated in my transport map as well as the
> >default transport filter.
>
> So, when amavis sends mail back to postfix, it gets filtered again.
>

No, looking at this again, I think what's happening is the always_bcc user
is being sent through 10024, while the actual recipient is being sent
through 10029:

May 18 06:57:43 cable amavis[2800375]: (2800375-01) ESMTP [127.0.0.1]:10024
/var/spool/amavisd/tmp/amavis-20230518T065743-2800375-wHC33xAt: <
mysqlstud...@gmail.com> -> <bcc-u...@cable.example.com> SIZE=3161 Received:
from cable.example.com ([145.239.XXX.120]) by localhost (cable.example.com
[127.0.0.1]) (amavis, port 10024) with ESMTP for <bcc-u...@cable.example.com>;
Thu, 18 May 2023 06:57:43 -0400 (EDT)

May 18 06:57:43 cable amavis[2800376]: (2800376-01) ESMTP [127.0.0.1]:10029
/var/spool/amavisd/tmp/amavis-20230518T065743-2800376-nYSpx4LR: <
mysqlstud...@gmail.com> -> <u...@example.com> Received: from
cable.example.com ([145.239.XXX.120]) by localhost (cable.example.com
[127.0.0.1]) (amavis, port 10029) with ESMTP for <u...@example.com>; Thu,
18 May 2023 06:57:43 -0400 (EDT)

Before I started experimenting with multiple ports, the always_bcc user and
the actual user(s) would be part of the same transport message.

Thanks,
Alex
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to