Can recipient_bcc_maps be over-riden in master.cf?

2008-12-27 Thread Jeff Weinberger

Hi:

I am having a problem with duplicate bcc's (from recipient_bcc_maps)  
and I suspect I know why - but I hope someone can point me to a  
solution.


I have a content filter set up for dspam (content_filter = dspam:dspam  
in main.cf) set up as described in the "Advanced content filter  
example" section of http://www.postfix.com/FILTER_README.html - it  
works fine.


Now I've added the ability for selected virtual mailbox addresses to  
trigger recipient_bcc_maps so that a bcc is generated to a specific  
address only when mail is sent to designated recipients.


This is where the problem arises.

When mail arrives, the bcc is generated and sent. Then when the mail  
is injected back into postfix after the content filter, another bcc is  
generated and sent. The secind bcc is, of course, undesireable.


I tried adding:

  -o recipient_bcc_maps=

to the overrides for localhost:10026 (where dspam reinjects the mail)  
but that did not change the behavior. It still generated the second bcc.


I don't see this documented per se (am I missing something?), but can  
recipient_bcc_maps be over-riden this way? If not, is there another  
way to avoid the second bcc?


Thank you for any help, pointers and/or advice you can offer!!

Re: Can recipient_bcc_maps be over-riden in master.cf?

2008-12-28 Thread Magnus Bäck
On Sunday, December 28, 2008 at 08:09 CET,
 Jeff Weinberger  wrote:

[...]

> When mail arrives, the bcc is generated and sent. Then when the mail
> is injected back into postfix after the content filter, another bcc is
> generated and sent. The secind bcc is, of course, undesireable.
> 
> I tried adding:
> 
>   -o recipient_bcc_maps=
> 
> to the overrides for localhost:10026 (where dspam reinjects the mail)
> but that did not change the behavior. It still generated the second
> bcc.

See FILTER_README, look for the keyword receive_override_options.

master.cf:
localhost:10026 inet ... smtpd
-o receive_override_options=no_address_mappings

Please do not start new threads by replying to old messages.

-- 
Magnus Bäck
mag...@dsek.lth.se


Re: Can recipient_bcc_maps be over-riden in master.cf?

2008-12-28 Thread jeff_homeip
--- In postfix-us...@yahoogroups.com, Magnus Bäck  wrote:
>
> On Sunday, December 28, 2008 at 08:09 CET,
>  Jeff Weinberger  wrote:
>
> [...]
>
> > When mail arrives, the bcc is generated and sent. Then when the mail
> > is injected back into postfix after the content filter, another bcc is
> > generated and sent. The secind bcc is, of course, undesireable.
> >
> > I tried adding:
> >
> >   -o recipient_bcc_maps=
> >
> > to the overrides for localhost:10026 (where dspam reinjects the mail)
> > but that did not change the behavior. It still generated the second
> > bcc.
>
> See FILTER_README, look for the keyword receive_override_options.
>
> master.cf:
> localhost:10026 inet ... smtpd
> -o receive_override_options=no_address_mappings
>
> Please do not start new threads by replying to old messages.
>
> --
> Magnus Bäck
> mag...@...
>

Feeling a bit stupid today - that's exactly what is suggested also in
ADDRESS_REWRITING_README right after the recipient_bcc_maps (which is the 
example I
followed in the first place). Sorry.

Thank you very much - and, of course, it worked perfectly!