Normally, trimming of excess quotes is a Good Thing. This time some
of the quotes were not excess, however. Here's the parent post:
On Sat, May 12, 2012 at 08:53:57AM -0500, /dev/rob0 wrote:
> On Sat, May 12, 2012 at 03:28:08PM +0400, Vladimir V Kutyavin wrote:
> > I have set this trigger for the specification of non-default options
> > with key -o, I need to override always_bcc option:
> >
> >
127.0.0.1:10027 inet n - n - 10 smtpd
> > -o content_filter=
> > -o smtpd_sender_restrictions=
> > -o always_bcc=co...@AAAAAAA.org
>
> Options given to smtpd(8) must be valid options for smtpd; neither
> always_bcc nor recipient_bcc_maps are among those options.
>
> > How to make it work?
>
> This is one way:
>
>
http://www.postfix.org/postconf.5.html#receive_override_options
>
> " -o receive_override_options=no_address_mappings"
>
> Be aware that this disables ALL address mappings there, so it will
> eliminate your BCC, not change it.
>
What you will want is something like this in
master.cf:
127.0.0.1:10027 inet n - n - 10 smtpd
-o content_filter=
-o smtpd_sender_restrictions=
-o cleanup_service_name=altbcc
-o syslog_name=postfix/altbcc
altbcc unix n - n - 0 cleanup
-o recipient_bcc_maps=$hash:$config_directory/alt_rcpt_bcc
$config_directory/alt_rcpt_bcc contains your BCC mappings, and a
transport(5) mapping directs the appropriate mail to this special
smtpd.