N
nihaopaul
Guest
ok took long enough, but i've just got clamav setup on my plesk box scanning emails before they are eccepted for delivery, for FreeBSD.
what you need:
install clamav
setup clamav
update with freshclam
start clamd
install ripmime (follow instructions)
untar/gipz qsheff
cd qsheff-xxx
echo "/usr/local/psa/qmail" > conf-qmaildir
echo "qmail" > conf-qmailgroup
Type './install.sh'
now the wrapper is installed (i let it use the qmail-scanner so atleast the users with dr.web also have that ability to scan and also spamassasin runs after)
ee /usr/local/etc/qsheff.conf
my settings:
#
# EnderUNIX Sheff configuration file
#
# http://www.enderunix.org/qsheff
#
# -b$
#
WORKDIRPREFIX = /var/spool/qsheffq
TEMPDIRPREFIX = /var/tmp/qsheffq
LOGFILE = /var/log/qsheff.log
RULEFILE = /usr/local/etc/qsheff.rules
WBLISTFILE = /usr/local/etc/qsheff.wblist
# Don't reply
# Usefull for random generated sender's
enable_blackhole = 0;
# 0: Don't panic when any function doesnt work
# Just continue to finish job.
# 1: Spammer and antivirus must work.
# Condone other errors.
# 2: Don't forgive any error.
paronia_level = 0
# Save mails contain spam or antivirus for ISPs.
# (That is provide quarantine to customers)
# ATTENTION: This feature needs more disk area.
# Don't enable it, if you unsure.
enable_quarantine = 0
# Enable White/Black List Control
enable_wblist = 0
# Enable subject filter
enable_subject_filter = 0
# Enable/disable spam program
enable_spam_prog = 0
# Enable/disable virus program
enable_virus_prog = 1
MIME_PROG = "/usr/local/bin/ripmime -i mesg -e -d"
MIME_PROG_OK_RET = 0
MIME_PROG_ERR_RET = -1
SPAM_PROG = "/usr/local/bin/zabit -i -d"
SPAM_PROG_OK_RET = 0
SPAM_PROG_SPAM_RET = 1
SPAM_PROG_ERR_RET = 2
VIRUS_PROG = "/usr/local/bin/clamdscan --quiet"
VIRUS_PROG_OK_RET = 0
VIRUS_PROG_VIRUS_RET = 1
VIRUS_PROG_ERR_RET = 2
QUEUE_PROG = /usr/local/psa/qmail/bin/qmail-queue.orig
ee /usr/local/etc/qsheff.wblist
comment out everything with a #
then we're setup and blocking those nasty viruses at the server!
oh look for mrtg also on the qsheff site. also if you want to use qscanq, enjoy trying, its is compatible with the latest version of clamav and you dont need the patch. heres a note from the developer:
what you need:
- clamav (i used the clamav-devel in ports)
- qsheff - http://www.enderunix.org/qsheff/index.php?sect=install&lang=en
- ripmime - http://www.pldaniels.com/ripmime/ripmime-1.4.dev.tar.gz
install clamav
setup clamav
update with freshclam
start clamd
install ripmime (follow instructions)
untar/gipz qsheff
cd qsheff-xxx
echo "/usr/local/psa/qmail" > conf-qmaildir
echo "qmail" > conf-qmailgroup
Type './install.sh'
now the wrapper is installed (i let it use the qmail-scanner so atleast the users with dr.web also have that ability to scan and also spamassasin runs after)
ee /usr/local/etc/qsheff.conf
my settings:
#
# EnderUNIX Sheff configuration file
#
# http://www.enderunix.org/qsheff
#
# -b$
#
WORKDIRPREFIX = /var/spool/qsheffq
TEMPDIRPREFIX = /var/tmp/qsheffq
LOGFILE = /var/log/qsheff.log
RULEFILE = /usr/local/etc/qsheff.rules
WBLISTFILE = /usr/local/etc/qsheff.wblist
# Don't reply
# Usefull for random generated sender's
enable_blackhole = 0;
# 0: Don't panic when any function doesnt work
# Just continue to finish job.
# 1: Spammer and antivirus must work.
# Condone other errors.
# 2: Don't forgive any error.
paronia_level = 0
# Save mails contain spam or antivirus for ISPs.
# (That is provide quarantine to customers)
# ATTENTION: This feature needs more disk area.
# Don't enable it, if you unsure.
enable_quarantine = 0
# Enable White/Black List Control
enable_wblist = 0
# Enable subject filter
enable_subject_filter = 0
# Enable/disable spam program
enable_spam_prog = 0
# Enable/disable virus program
enable_virus_prog = 1
MIME_PROG = "/usr/local/bin/ripmime -i mesg -e -d"
MIME_PROG_OK_RET = 0
MIME_PROG_ERR_RET = -1
SPAM_PROG = "/usr/local/bin/zabit -i -d"
SPAM_PROG_OK_RET = 0
SPAM_PROG_SPAM_RET = 1
SPAM_PROG_ERR_RET = 2
VIRUS_PROG = "/usr/local/bin/clamdscan --quiet"
VIRUS_PROG_OK_RET = 0
VIRUS_PROG_VIRUS_RET = 1
VIRUS_PROG_ERR_RET = 2
QUEUE_PROG = /usr/local/psa/qmail/bin/qmail-queue.orig
ee /usr/local/etc/qsheff.wblist
comment out everything with a #
then we're setup and blocking those nasty viruses at the server!
oh look for mrtg also on the qsheff site. also if you want to use qscanq, enjoy trying, its is compatible with the latest version of clamav and you dont need the patch. heres a note from the developer:
You can actually get by without the patch. The clamav people recommend setting the log file to /dev/stderr, instead of using my patch. This works on most (but not all) platforms; in particular it does work on Linux.
--Len.