Re: [exim] word filter

Top Page
Delete this message
Reply to this message
Author: Marc Perkel
Date:  
To: Exim-Users
Subject: Re: [exim] word filter


On 5/4/2010 12:22 AM, tower wrote:
> Hi,
>
> I must create some filters for mail subject and data against words like
> Viagra, ViAgRa, Porn, sex etc. Can You put here your filters sample?
>
> Regards
>
>


Here's what I'm using:

# - Master Subject Block List

deny    condition = ${if exists{/etc/exim/control/blocksubject.txt}\
         {${if 
match{$h_Subject:}{\x28${sg{${sg{${sg{${readfile{/etc/exim/control/blocksubject.txt}{|}}}{\\|+}{|}}}{#.*?\\|}{}}}{\\|\$}{}}\x29}{true}{false}}}\
     {no}}
     message = REJECTED - Master level subject block list - 
$acl_c_information


This allows you to create a file where each line is a word or phrase to
be blocked.


--
Marc Perkel - Sales/Support
support@???
http://www.junkemailfilter.com
Junk Email Filter dot com
415-992-3400