Matus and Viktor, thank you for your responses! I'm trying to add an additional BCC for some mail recipients but not for all. All mails must go into the archive (always_bcc). This works so far. But now, for some recipients, I'd like to have an additional BCC. So recipient_bcc_maps seems to be what I'm looking for.
The reason behind this: I have to process the mails to *some* recipients with a custom written program using "pipe" transport - but *additional* to Spam and Virus filtering (Amavis), mail archival (always_bcc) and normal delivery (LMTP / Dovecot). I also thought about monitoring the affected Maildirs for changes (inotify). But I want the program based processing take place independently from what happens in the mailbox (deletion or moving of mails). The program should not fail if a user deletes a message faster than my program processed it. So I abandoned the Maildir monitoring approach. > Gesendet: Montag, 31. Mai 2021 um 10:26 Uhr > Von: "Viktor Dukhovni" <postfix-us...@dukhovni.org> > An: postfix-users@postfix.org > Betreff: Re: Use both recipient_bcc_maps and always_bcc > > On Mon, May 31, 2021 at 10:07:13AM +0200, r.barc...@habmalnefrage.de wrote: > > > I use the "always_bcc" option to collect all emails for a local email > > archive. > > > > Can one use recipient_bcc_maps in addition to that? > > > > So I could make emails to "u...@example.org" go into the archive > > (always_bcc) and also to another BCC address defined through > > recipient_bcc_maps? > > > > In the mailing list on Oct 27, 2016; 8:29am, Wietse wrote concerning > > recipient_bcc_maps: > > "As documented, you can't specify multiple addresses on the right-hand > > side." > > > > So recipient_bcc_maps could not define more than 1 address. > > But would 2 addresses work using a combination of always_bcc AND > > recipient_bcc_maps? > > Or does one of these options render the other one unusable? > > Methinkgs you're working too hard, ... Why not just use virtual(5) to > rewrite the configured logical BCC address(es) to whatever underlying > list of recipients you want? > > -- > Viktor. >