1 week's spam

Raymond Dijkxhoorn raymond at PROLOCATION.NET
Mon Jan 12 13:27:38 GMT 2004


> http://www.merchantsoverseas.com/wwwroot/gorilla/bigevil.cf
> I have seen some hits that would have passed otherwise:

I altered the auto update scrpt that was posted for the bigevil list.
Might be of interest for other people also:

## This file updates the big evil policy file for spam assassin
DATE=`date +"%Y%m%d-%H%M"`

[ -f /tmp/bigevil.cf ] && rm -f /tmp/bigevil.cf
wget -N http://www.merchantsoverseas.com/wwwroot/gorilla/bigevil.cf -O
/tmp/bigevil.cf 2>&1 | grep -q 'saved'
  if [ $? = 0 ] ; then
   cmp -s /tmp/bigevil.cf /etc/mail/spamassassin/bigevil.cf || {
   # do the mv's and emails here
   [ -f /etc/mail/spamassassin/bigevil.cf ] && mv -f
/etc/mail/spamassassin/bigevil.cf /etc/mail/spamassassin/bigevil.cf.$DATE
   [ -f /tmp/bigevil.cf ] && mv -f /tmp/bigevil.cf
   echo "BIG EVIL has changed on `hostname`.  The new evil is \ `head -n 1
/etc/mail/spamassassin/bigevil.cf`" | mail your at addy.here -s "The
big evil
 policy has been updated" < /etc/mail/spamassassin/bigevil.cf
      /etc/rc.d/init.d/MailScanner reload > /dev/null 2>&1
## EOF

Will fetch the list and check if its updated, just put in your cron.daily
or something.


More information about the MailScanner mailing list