On Wed, 2003-12-24 at 10:03, Bruce Marshall wrote:
Here are the pertinent parts:
(using spamc and spamd to get better performance) The 'cntspam' is a small program I wrote to count the number of spams sent to /dev/null. It can be deleted.
The procmailrc setup below sends emails with a 'hit count' of 10 or above to / dev/null. 4 or above go into the folder: /var/spool/mail/highspam
#get rid of spammers
:0fw | spamc
:0e { EXITCODE=$? }
:0 * ^X-Spam-Status:.*hits=[1-9][0-9] { :0 c | /usr/local/bin/cntspam
:0 /dev/null }
:0:hispam.lock * ^X-Spam-Status:.*hits=[4-9][\ \.] /var/spool/mail/highspam
# At this point, go on and distribute the mail to other folders as normal.
Now this is what most people on this list appreciate (at least I do). An answer with some meat to it showing a real world example. Since you will find a lot of newbies on this list this is more helpful than just saying it should/could work. Thanks Bruce, -- Ken Schneider unix user since 1989 linux user since 1994 SuSE user since 1998 (5.2)