OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: header checks not working

From: Rob Brandt (brontocsd-bes.net)
Date: Wed Jul 01 2009 - 00:02:25 CDT


Still doesn't seem to be working. Still using regexp, it seems I don't
have pcre installed as postfix throws errors when I try it. I'm
focusing on the X-Spam-Flag one since they both should eliminate the
same emails anyway. I've tried it both with the colon and without. 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/postfix/filter
>
> I prefer pcre:, but the following patterns should work with regexp: as well.
>
>> # No ***SPAM***
>> /^Subject .*\*\*\*SPAM\*\*\*/ DISCARD ***SPAM***
>
> /^Subject:.*\*{3}SPAM\*{3}/ DISCARD ***SPAM***
>
>> # SPam flag
>> /^X-Spam-Flag .YES/ DISCARD Spam Flag
>
> /^X-Spam-Flag: YES$/ DISCARD Spam Flag
>