On Sun, May 21, 2023 at 02:05:31PM -0400, Alex via Postfix-users wrote: > Can I follow up on this? I can't figure out why always_bcc mail is being > sent through the default content filter while mail designated for my > domain-specific transport is sent through another in my multi-instance > postfix config. I'd like the always_bcc user mail to still benefit from > being filtered through amavis, but through the transport designed for the > domain for which it was intended.
The BCC recipient is processed in much the same way as any other message recipient. The only special handling that comes to mind is DSN, where this recipient is treated as if NOTIFY=NEVER were specified. > local_transport = error:5.1.1 Mailbox unavailable > default_transport = smtp:[127.0.0.1]:10024 > relay_transport = $default_transport > virtual_transport = $default_transport > transport_maps = ${indexed}transport Perhaps the BCC recipient (domain) did not match any transport table keys, but the real recipient did? > > /etc/postfix-120/transport > domain1.com alex:[127.0.0.1]:10029 What is the domain part of the always BCC address. > May 21 13:40:12 cable postfix-120/qmgr[3714211]: 494948B53: from=< > mysqlstud...@gmail.com>, size=3214, nrcpt=2 (queue active) This message has two recipients, one original and one BCC. > May 21 13:40:12 cable amavis[3558243]: (3558243-06) ESMTP [127.0.0.1]:10024 > /var/spool/amavisd/tmp/amavis-20230521T020900-3558243-jefENl_V: < > mysqlstud...@gmail.com> -> <bcc-u...@cable.example.com> SIZE=3214 Received: > from cable.example.com ([145.239.111.120]) by localhost (cable.example.com > [127.0.0.1]) (amavis, port 10024) with ESMTP for <bcc-u...@cable.example.com>; > Sun, 21 May 2023 13:40:12 -0400 (EDT) The Bcc address <bcc-us...@cable.example.com> does not match "domain1.com", and unsurprisingly went to the default transport. > May 21 13:40:18 cable postfix/alex/smtp[3719703]: 494948B53: to=< > jre...@domain1.com>, relay=127.0.0.1[127.0.0.1]:10029, delay=6.9, > delays=1.2/0.02/0.01/5.7, dsn=2.0.0, status=sent (250 2.0.0 from > MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 0671630014B43) You neglected to share the other delivery log entry. Presumably BCC address via port 10024. The BCC address does not "inherit" the transport entry of any particular original recipient of the message, it gets resolved to a transport:nexthop "naturally". -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org