procmail
[Top] [All Lists]

Re: Filter list of spammers

1997-05-18 10:06:00
Dirk Allard <allad000(_at_)trudi(_dot_)zdv(_dot_)Uni-Mainz(_dot_)DE> writes:

how can I write a receipe which reads in a list of "spammer domains" and
filters them from a specific header file. It should look like this:

:0:
* ^From:.*[read in names list]
spam

Any ideas?

The list should be in a simple format, e.g. one domain per line.

Take a look at http://www.panix.com/rc.shared - They have done
something very similar for Cyberpromo domains.  Also see
http://www.panix.com/uce.html

In summary, they define "CPDOM" in the procmailrc like this:

CPDOM=`cat /usr/local/filters/cpdomains | tr '\012' '|'` 

where cpdomains is a list of domain names, one per line.  

Then have recipies that apply CPDOM like this:

:0:
* $^(From|To|Received|Reply-to|X-Sender|Sender):.*(${CPDOM})
$TRASH

-- 
Jason R. Mastaler                                 jason(_at_)mastaler(_dot_)com

<Prev in Thread] Current Thread [Next in Thread>