OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Better way to match headers

From: mouss (usebsdfree.fr)
Date: Mon Jan 02 2006 - 16:10:11 CST


Joey a écrit :
> Currently I am matching in header_checks things like this:
> header_checks = regexp:/etc/postfix/header_checks
>
> File contains things like this:
>
> /^(To|From|Cc|Reply-To):.*emailoffernetwork\.com/ REJECT Header TFCR 1060
> /^(To|From|Cc|Reply-To):.*ideasforthegoodlife\.com/ REJECT Header TFCR 1061
>
> /^Subject:.*Weight Loss Pills/ REJECT SubJect Rejected
> /^Subject:.*STOP SNORING IMMEDIATELY/ REJECT SubJect Rejected
>

Content filters are better at this. You have a plenty of choices:
spamassassin (via amavisd-new or not), dspam, bogofilter, ...