On Wed, Jan 28, 2026 at 10:15:30AM -0500, pgnd via Postfix-users wrote:
> > Alternatively, you can make the extra maps conditional on other
> > parameters:
> > 
> >     recipient_bcc_maps = xxx:yyy, yyy:yyy,
> >      ${{$enable_forensics} == {yes} ? {zzz:zzz}}
> > 
> > With
> >     enable_forensics =yes
> > or
> >     enable_forensics = no
> 
> that's slick, and works nicely!

A variant is:

    main.cf:
        base_rcpt_bcc_maps = ...
        rcpt_bcc_maps = ..., $base_rcpt_bcc_maps
        rcpt_bcc_maps1 = ..., $base_rcpt_bcc_maps
        rcpt_bcc_maps2 = ..., $base_rcpt_bcc_maps

    master.cf
        cleanup   unix  n       -       n       -       0       cleanup
            -o { recipient_bcc_maps = $rcpt_bcc_maps }
        cleanup1   unix  n       -       n       -       0       cleanup
            -o { recipient_bcc_maps = $rcpt_bcc_maps1 }
        cleanup2   unix  n       -       n       -       0       cleanup
            -o { recipient_bcc_maps = $rcpt_bcc_maps2 }
        ...

Keeping in mind that the parameter is used only in cleanup(8) service,
so the only way to have multiple values is to have multiple cleanup
services in master.cf, with also multiple other services with "-o
cleanup_service_name=..." overrides (smtpd(8), pickup(8), local(8),
bounce(8), ...).

-- 
    Viktor.  🇺🇦 Слава Україні!
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to