On Wed, Jun 15, 2011 at 07:44:53PM -0400, Wietse Venema wrote:
> > We do not use it before/after filter. The setup is that BCC mapping
> > is only needed for sending outgoing mail (we send a copy to the
> > "Sent" folder) so we enable BCC mapping by default (in main.cf)
> > and disable it on default smtpd that handles incoming mail (we
> > obviously need the other mappings there but do not need bcc mappings).
>
> I see. What about using this instead?
>
> /etc/postfix/master.cf
> smtp inet n - n - - smtpd
> -o sender_bcc_maps=
> submission inet n - n - - smtpd
>
> /etc/postfix/main.cf:
> sender_bcc_maps = maptype:mapname
>
> Or this?
>
> /etc/postfix/master.cf
> smtp inet n - n - - smtpd
> submission inet n - n - - smtpd
> -o sender_bcc_maps=maptype:mapname
As the OP observed, correctly, this won't work since bcc is done in cleanup,
so a cleanup_service_name= override is required instead. However, a better
solution is for the OP to not pursue the pointless "consolidation"
(making a more complex mess out of a few simple parts). Just learn to
manage multiple instances better.
--
Viktor.