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 -- Sahil Tandon <sa...@tandon.net>