The notes below are more for my benefit, but others may get some use out of it.
We use debian for our system, and are loosely based on the qmail setup over at http://qmail.jms1.net / http://qmailrocks.org

#ClamAV has some new features, so needs libcurses for stuff like clamdtop

apt-get install libncurses5-dev

cd /downloads

#get latest version

axel http://jaist.dl.sourceforge.net/sourceforge/clamav/clamav-0.95.tar.gz

tar -zxvf clamav-0.95.tar.gz

#We use /usr for db /etc for conf files

./configure –prefix=/usr –sysconfdir=/etc

make

#need to remove clam scanning from simcontrol or there will be bounces while we install due to lack of clamd

pico /var/qmail/control/simcontrol

clamav=no

#update qmail settings again

/var/qmail/bin/update-qmail #our own script…

#can now run make install, as its now safe…

make install

#stop the clamd service

cd /service

svc -d clamd clamd/log

#run clamd manually to check for errors

clamd

#if warning about /var/run/clamd.pid can’t be created, make a /var/run/clamd folder

mkdir /var/run/clamav

chown clamav.clamav /var/run/clamav

pico /etc/clamd

#change pid file location

PidFile /var/run/clamav/clamd.pid

#save & try again

clamd

#check logs if ok / not, troubleshoot yourself…

#restart service

cd /service

svc -u clamd clamd/log

#check everything is running ok – should see runtimes of > 2 seconds…

svstat * */log

#Re-enable virus scanning.

pico /var/qmail/control/simcontrol

clam=yes

/var/qmail/bin/update-qmail

#check mail is working ok – wait for a non spam / virus message to process and give clamd status 0 (may take a while!)

tail /var/log/qmail/qmail-smtpd/current

#install SCAMP – See http://www.sanesecurity.com (Additional phishing / trojan protection db’s for clamav)

cd /downloads

wget ftp://seibercom.net/pub/scamp.tar.gz

tar -xzvf scamp.tar.gz

cd  scamp-5.1/

cp scamp.sh /usr/local/bin

#run once to configure

scamp.sh

#run again to do gpg key generation

scamp.sh

#add to crontab

crontab -e

#add scamp

#Update Clam Alternate Scanner DB – Phishing / Trojan etc
0     */4   *   *     *     /usr/local/bin/scamp.sh -L -q -R

#done. Suggest watch logs for a while, and make sure things are running smoothly.

tail /var/log/qmail/qmail-smtpd/current -F

Post comment

Archives

Categories

Most Popular Posts

Tags

Apache Apple Apple Mail arm7 biltong china china telecom Chinese Spyware Removal Howto coffee cool debian dns dvd firmware foscam Google hacking how to howto icp Image ipcam Kitto lg dv340 licence Mac Moganshan nc745 nuvoton outage Picture problem region free hack Resize Search Engine Optimization SEO shanghai south africa spam taobao Thoughts Time Machine Tuning uclinux video

Recent Comments

  • jocc: finally. I done the installation properly. I made a USB drive (at less 8GB) formatted wih GUID labelled...
  • Lawrence Sheed: It gets an ip address via DHCP, so you need to provide DHCP service on something like a router or...
  • Denis: I Can noit connected to cam after RESET! What is my ip by factory ?
  • Lawrence Sheed: Yes, you need to have had a license for at least one year. Thats correct. When I’m back...
  • Lawrence Sheed: First off, do a list of your partitions. in the boot loader – ls If you really have erased...

PHOTOSTREAM

loz - yamaha - IMGP0106SDIM0437SDIM0436SDIM0435SDIM0434SDIM0433SDIM0432SDIM0431SDIM0430SDIM0429SDIM0428SDIM0427SDIM0426SDIM0425SDIM0424SDIM0423SDIM0422SDIM0421