J?rg Backschues:
> Hello,
> 
> I've set up a BCC map for archiving e-mails:
> 
> # Archiving
> sender_bcc_maps = pcre:${config_directory}/bcc_sender.pcre
> 
> bcc_sender.pcre:
> /(.*)@(.*)local\.domain/    archive_local.domain
> 
> And I'm also using batv-tools/milter 
> (<https://www.agwa.name/projects/batv-tools/>) as Milter:
> 
> # milter: BATV
> smtpd_milters = unix:/batv-milter/batv-milter.sock
> non_smtpd_milters = unix:/batv-milter/batv-milter.sock
> 
> If the original sender matches an entry in sender_bcc_maps, Postfix 
> 2.11.0 appears to increment the recipient count.

How many recipients are there before the bcc action?

> After batv-milter changes the sender, Postfix seems to forget about
> the BCC map.

Postfix does not undo and redo the previous sender_bcc_maps action
with the new sender address. For the same reason that if a Milter
changes message content, then Postfix isn't going to undo and redo
the previous header/body_checks with the new message content.

> The message is not sent to the BCC map address and there is a
> recipient count mismatch.
> 
> Mar  7 22:56:03 lnxs001 amavis[25031]: (25031-02) FWD from 
> <user@local.domain> -> <user@remote.domain>, 250 2.0.0 from 
> MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 3qJtll50rzzFT
> Mar  7 22:56:03 lnxs001 postfix/qmgr[20665]: 3qJtll50rzzFT: 
> from=<prvs=0874da4612=user@local.domain>, size=1919, nrcpt=2 (queue active)
> Mar  7 22:56:03 lnxs001 postfix/qmgr[20665]: warning: 3qJtll50rzzFT: 
> rcpt count mismatch (1)
> 
> Is this a possible bug or does the batv-milter something wrong?

That would be a bug. I'd appreciate it if you could run the cleanup
server with the -v action and log what Postfix and batv-milter are
saying to each other. That would save me the time to duplicate your
setup.

        Wietse

Reply via email to