# This is a small document that will describe for you how to install # anti-spam and anti-virus support for the qmail_lazydog_v2.x package using # clam antivirus and spamassasin. # Requirements: # zlib and zlib-devel # Recomendations: # bz2 libs and bz2 headers (bz2-libs / bz2-devel). # GNU MP library (gmp) # Set a good umask. umask 022 # Download clamav. wget http://aleron.dl.sourceforge.net/sourceforge/clamav/clamav-0.73.tar.gz ### Add the clamav user. groupadd clamav useradd -g clamav -s /bin/false -c "Clam AntiVirus" -d /var/clamav clamav # Install clamav. tar zxvf clamav-0.73.tar.gz cd clamav-0.73 ./configure --datadir=/var/clamav --with-dbdir=/var/clamav --sysconfdir=/var/clamav --disable-clamuko --disable-clamav make make install # Edit the clamav.conf. mv /var/clamav/clamav.conf /var/clamav/clamav.conf.old cat >/var/clamav/clamav.conf</dev/null 2>&1' | crontab -u clamav - # Install a startup script for clamd. cp contrib/init/RedHat/clamd /etc/init.d chmod 755 /etc/init.d/clamd # Install reformail from the Maildrop package. wget http://aleron.dl.sourceforge.net/sourceforge/courier/maildrop-1.6.3.tar.bz2 tar jxf maildrop-1.6.3.tar.bz2 cd maildrop-1.6.3 ./configure cd numlib make cd .. cd liblock/ make cd .. cd rfc822 make cd .. cd maildrop make reformail cp reformail /usr/local/bin chmod 755 /usr/local/bin/reformail cd ../.. # Install ripMIME. wget http://www.pldaniels.com/ripmime/ripmime-1.3.1.2.tar.gz tar zxf ripmime-1.3.1.2.tar.gz cd ripmime-1.3.1.2 make make install make libripmime cp libripmime.a /usr/local/lib/ cd .. # If you want to have Anti-spam support, just install spamassasin and make # it alter the subject of the messages and edit /var/qmail/bin/scanmail.sh # and change SPAM=no to SPAM=yes # If you want to be able to extract more compressiontypes during the virus # scan install unrar, unarj, zoo, lha, tar and gzip # and put the right path to them in /var/qmail/bin/scanmail.sh. # Now edit /var/qmail/service/init.smtpd # uncommend the following the: # #export QMAILQUEUE='/var/qmail/bin/qmail-spamc' # Line. # That's it, you are set now.