Hi guys,

This is to help people out there who's still trying to install clamav,
spamassassin and simscan but failed. As you know from my last email,  I was
confused where to put the QMAILQUEUE, should it be in qmail-smtpd.rules or
/service/smtpd/tcp. A half hour ago I still failed to use clamav to scan
emails, but after I reinstalled clamav to use simscan user, instead of
clamav user, simscan can cooperate well with clamav and spamassassin.

This is what I did that make simscan succeed to work with spamassassin and
clamav.
1. clamav installation
 Add user simscan and join simscan user into qmail group
configur clam anti-virus with --with-user=simscan and --with-group=qmail
and installed it into the /var/lib/clamav. Then chown the directory

chown -R simscan.qmail /var/lib/clamav

Configure /etc/clamd.conf, change
  User simscan

2. spamassassin installation
Nothing special with spamassassin installation since I used the same
installation procedure in qmailrocks.org (installation for QMAIL server -
not qmail-ldap)

3. simscan installation
Configure simscan with
#./configure --disable-ripmime --enable-spam=y --enable-spam-passthru=y \
--enable-custom-smtp-reject=n --enable-clamdscan=/usr/bin/clamdscan
--enable-custom-smtp-reject=n \
--enable-dropmsg=n --enable-qmaildir=/var/qmail
--enable-qmail-queue=/var/qmail/bin/qmail-queue \
--enable-clamavdb-path=/var/lib/clamav/db
--enable-sigtool-path=/usr/bin/sigtool \
--enable-per-domain=y --enable-received=y

# make && make install

# vi /var/qmail/control/simcontrol
 :clam=yes,spam=yes,spam_passthru=no
# /var/qmail/bin/simscanmk

# cd /var/qmail/control/ ; vi qmail-smtpd.rules
 127.:allow,RELAYCLIENT="",SMTPAUTH="",AUTHREQUIRED=""
172.168.:allow
,RELAYCLIENT="",SMTPAUTH="",AUTHREQUIRED="",QMAILQUEUE="/var/qmail/bin/simscan"
# make
# svc -t /service/smtpd

Now I can have this in the email's header
Received: by simscan 1.1.0 ppid: 18782, pid: 18784, t: 5.4558s
scanners: clamav: 0.90.1/m:42/d:2691 spam: 3.1.8

That's all, guys. Any comments or suggestions are welcome. Thanx for all
your help.

Best regards,

sato

Reply via email to