ClamAV: Difference between revisions

From DWIKI
mNo edit summary
Line 12: Line 12:


  cd $LOCATION || exit -1
  cd $LOCATION || exit -1
  wget --timestamping http://ftp.tiscali.nl/sanesecurity/phish.ndb.gz && gunzip -f phish.ndb.gz
  wget --timestamping http://ftp.tiscali.nl/sanesecurity/phish.ndb.gz && gunzip -f phish.ndb.gz
  wget --timestamping http://ftp.tiscali.nl/sanesecurity/scam.ndb.gz && gunzip -f scam.ndb.gz
  wget --timestamping http://ftp.tiscali.nl/sanesecurity/scam.ndb.gz && gunzip -f scam.ndb.gz
Line 19: Line 18:
  wget -O - http://www.malware.com.br/cgi/submit?action=list_clamav > mbl.db
  wget -O - http://www.malware.com.br/cgi/submit?action=list_clamav > mbl.db
  wget http://www.malware.com.br/cgi/submit?action=list_clamav
  wget http://www.malware.com.br/cgi/submit?action=list_clamav
  chown clamav.clamav *
  chown clamav.clamav *
  killall -HUP clamd
  killall -HUP clamd

Revision as of 08:34, 1 April 2008

Clam Antivirus

Virus scanner for mail and files.

A handy script for adding more goodies

#!/bin/bash
LOCATION=/var/lib/clamav
cd $LOCATION || exit -1
wget --timestamping http://ftp.tiscali.nl/sanesecurity/phish.ndb.gz && gunzip -f phish.ndb.gz
wget --timestamping http://ftp.tiscali.nl/sanesecurity/scam.ndb.gz && gunzip -f scam.ndb.gz
wget --timestamping http://download.mirror.msrbl.com/MSRBL-SPAM.ndb
wget --timestamping  http://download.mirror.msrbl.com/MSRBL-Images.hdb
wget -O - http://www.malware.com.br/cgi/submit?action=list_clamav > mbl.db
wget http://www.malware.com.br/cgi/submit?action=list_clamav
chown clamav.clamav *
killall -HUP clamd

FAQ

Amavis not finding socket clamd.ctl

Means clamd is busy handling the queue after a powre failure or such, the socket won't be created before it's done.