Richard Raether via Postfix-users:
> Should I take out thee always_bcc in main.cf? Would this solution also
> allow everything else to be BCC'd? Allsoo what would the line be if
> "lists" were not in the domain name. I'm not familliar with the syntax.
Use always_bcc if you want to copy all email messages.
Use recipient_bcc_maps (and/or sender_bcc_maps) if you do want to
copy selectively based on the recipient (and/or sender).
I don't know what you need to exclude, so you need to adapt the
example, or you need to provide *in direct email to me* the domain
name(s) and/or email addresses that need to be excluded.
Wietse
> Excuse. my ignorance,
>
> Richard
>
> On 3/21/24 8:54 AM, Wietse Venema via Postfix-users wrote:
> > Richard Raether via Postfix-users:
> >> We have an auditor account where all incoming and outgoing mail is BCC'd
> >> to, to retain for compliance reasons. However, since mailman retains its
> >> own archives, and we have a mailman on a separate server with a separate
> >> domain, is there a way to tell postfix DO bcc everything EXCEPT DON'T
> >> bcc anything from this particular domain? BTW, the other machine uses
> >> our mail server as a relay, which might make a difference.
> > It is not possible with always_bcc (as the name suggests, it does
> > make any distinction).
> >
> > It is possible if you use sender_bcc_maps and/or reciopient_bcc_maps.
> >
> > Example for recipient_bcc_maps, to exclude BCC copies for recipients
> > that match [email protected]:
> >
> > /etc/postfix/main.cf:
> > recipient_bcc_maps = pcre:/etc/postfix/recipient_bcc
> >
> > /etc/postfix/recipient_bcc:
> > # DO NOT indent text between the IF and ENDIF lines!
> > IF !/@lists\.example\.com$/
> > /./ ...auditor...
> > ENDIF
> >
> > Wietse
> > _______________________________________________
> > Postfix-users mailing list -- [email protected]
> > To unsubscribe send an email to [email protected]
> _______________________________________________
> Postfix-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]