Re: /usr/sbin/sendmail requeue and address expansion

2009-02-27 Thread Charles Marcus
On 2/26/2009 11:00 AM, Magnus Bäck wrote:
 You need to disable it on one side, but then enable it on the other.
 In addition to receive_override_options = no_address_mappings in
 main.cf

 Add something like
 -o receive_override_options=

 to the other side that you've defined in master.cf

 I would suggest selectively disabling the address rewriting instead of
 the other way around. The risk of error is greater if rewriting is
 disabled by default.

Hmmm, ok, I'll bite, since I may do this some day soon...

If this is better, why does 'The Book' - and more importantly, the
official docs (FILTER_README) - say to do it the other way?

-- 

Best regards,

Charles


Re: /usr/sbin/sendmail requeue and address expansion

2009-02-27 Thread mouss
Charles Marcus a écrit :
 On 2/26/2009 11:00 AM, Magnus Bäck wrote:
 You need to disable it on one side, but then enable it on the other.
 In addition to receive_override_options = no_address_mappings in
 main.cf

 Add something like
 -o receive_override_options=

 to the other side that you've defined in master.cf
 
 I would suggest selectively disabling the address rewriting instead of
 the other way around. The risk of error is greater if rewriting is
 disabled by default.
 
 Hmmm, ok, I'll bite, since I may do this some day soon...
 
 If this is better, why does 'The Book' - and more importantly, the
 official docs (FILTER_README) - say to do it the other way?
 

maybe because at the time it was written, it was hoped that people
really read the whole thing and understand it.

now, I think too many people had problems with this, and the docs should
be changed to propose the other wy: disable rewrite in master.cf
(maybe via a ${var}).


Re: /usr/sbin/sendmail requeue and address expansion

2009-02-26 Thread Wietse Venema
Look for receive_override_options in the MASTER.CF file
examples of the FILTER_README documentation.

Wietse


Re: /usr/sbin/sendmail requeue and address expansion

2009-02-26 Thread postfix

At 08:53 AM 2/26/2009, kj wrote:
When sending a mail to b...@example.com, bob receives one copy of the 
mail, but john and dave each receives two.  I understand the 
problem: postfix does the recipient expansion, sends it off to spamassassin.
Spamassassin requeues the mail via the sendmail binary, so postfix 
treats it as a new mail.


As you guess below, it's being expanded twice

I tried setting receive_override_options = no_address_mappings but 
this kills address expansion both before and after filtering.   Is 
there a way to disable it only on one side of the content_filter?


You need to disable it on one side, but then enable it on the other. 
In addition to receive_override_options = no_address_mappings in main.cf


Add something like
-o receive_override_options=

to the other side that you've defined in master.cf

Rick