On Mon, May 14, 2012 at 09:32:19AM +0400, Vladimir V Kutyavin wrote: > On 12.05.2012 17:53, /dev/rob0 wrote: > >Another possibility might be an alternate cleanup(8) service: > >http://www.postfix.org/postconf.5.html#cleanup_service_name Give > >that cleanup service the necessary -o options to do the BCC. > > But I can't find any way to define non-default cleanup service name > only for the specified correspondence. Is it possible?
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=c...@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. > > Another possibility might be an alternate cleanup(8) service: > > http://www.postfix.org/postconf.5.html#cleanup_service_name > > Give that cleanup service the necessary -o options to do the BCC. 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. -- http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: