Re: header checks not working

2009-07-01 Thread Rob Brandt
Jan P. Kessler wrote, On 7/1/2009 12:34 PM: Bingo: -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks Any negative consequences for eliminating this line, or changing it to: -o receive_override_options=no_unknown_recipient_checks header_checks will be executed t

Re: header checks not working

2009-07-01 Thread Rob Brandt
Brian Evans - Postfix List wrote, On 7/1/2009 10:40 AM: Do you have anything like: "receive_override_options=no_header_body_checks" in master.cf for the content_filter reinjection? This will not match if so. Bingo: -o receive_override_options=no_header_body_checks,no_unknown_recipient_che

Re: header checks not working

2009-07-01 Thread Rob Brandt
Rob Brandt wrote, On 7/1/2009 9:09 AM: Excellent, I now get a match using postmap. If the spam doesn't cease, I'll be back. Thanks everyone! Rob Nuts. I am still getting spam. Is there any reason header_checks might not be enabled? Is header_checks being run before SA

Re: header checks not working

2009-07-01 Thread Rob Brandt
Magnus Bäck wrote, On 6/30/2009 11:39 PM: On Wed, July 1, 2009 8:13 am, Rob Brandt said: Could I get an example of how to use postmap -q? I have tried: postmap -q "X-Spam-Flag: YES" /etc/postfix/header_checks where "X-Spam-Flag: YES" is the header I am trying to ch

Re: header checks not working

2009-06-30 Thread Rob Brandt
Magnus Bäck wrote: On Wednesday, July 01, 2009 at 07:02 CEST, Rob Brandt wrote: Sahil Tandon wrote: I prefer pcre:, but the following patterns should work with regexp: as well. No, {n} isn't supported by regexp. /^Subject:.*\*{3}SPAM\*{3}/ DISCARD ***SPAM*** /^X-Spam-Flag

Re: header checks not working

2009-06-30 Thread Rob Brandt
out. Is here a log somewhere where I can see what's going on? Rob Sahil Tandon wrote: On Tue, 30 Jun 2009, Rob Brandt wrote: I'm trying to set up a basic header check to get rid of emails sa marks as spam. I've added the following link to main.cf: header_checks = regexp:/etc/p

header checks not working

2009-06-30 Thread Rob Brandt
I'm trying to set up a basic header check to get rid of emails sa marks as spam. I've added the following link to main.cf: header_checks = regexp:/etc/postfix/filter /etc/postfix/filter has: # No ***SPAM*** /^Subject .*\*\*\*SPAM\*\*\*/ DISCARD ***SPAM*** # SPam flag /^X-Spam-Flag .YES/