E-SMITH SPAMASSASSIN + KASPERSKY HOWTO [ ONLY DEVELOPERS ] 1. rebuild qmail with qmailqueue patch and maildrop rpms ftp://ftp.ibiblio.org/pub/Linux/distributions/e-smith/releases/6.0/SRPMS/qmail-1.03*src.rpm http://untroubled.org/qmail+patches/current/release-*.tar.gz [ ENDUSERS START HERE ] 2. download kav ftp://ftp.kaspersky.ee/products/BussinesOptimal/Workstations/KAVLinuxWorkstation 3. unpack & install kav 3. download qmail-scanner http://heanet.dl.sourceforge.net/sourceforge/qmail-scanner/qmail-scanner-1.20.tgz 4. add qscand user: useradd -c "Qmail-Scanner Account" -s /bin/false -m qscand 5. if using kav5, patch qmail-scanner with kav5 patch cd qmail-scanner-1.20 patch -p1 < ../qmail-scanner-1.20-kav5.patch 6. install maildrop and qmail with qmailqueue patch rpm -Uvh maildrop qmail 6. install qmail-scanner ./configure --install 6. edit /etc/tcprules/tcp.smtp QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" for local net and world 7. rebuild tcp.smtp.cdb tcprules /etc/tcprules/tcp.smtp.cdb /etc/tcprules/tcp.smtp.tmp < /etc/tcprules/tcp.smtp 8. restart smtpfront-qmail and qmail /etc/init.d/smtpfront-qmail restart /etc/init.d/qmail restart 9. testing /var/qmail/bin/qmail-scanner-queue.pl -s tail -f /var/spool/qmailscan/qmail-queue.log try sending some virus and spam testmails 10. add /var/qmail/bin/qmail-scanner-queue.pl -z to crontab 11. that's it.