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