1. Edit configuration option based on your machine configuration, here is mine
./configure \
--enable-user=qscand \
--enable-clamav \
--enable-clamdscan=/usr/local/bin/clamdscan \
--enable-custom-smtp-reject=y \
--enable-per-domain=y \
--enable-attach=y \
--enable-dropmsg=n \
--enable-spam=y \
--enable-spam-hits=5 \
--enable-spam-passthru=y \
--enable-qmail-queue=/var/qmail/bin/qmail-queue \
--enable-ripmime=/usr/local/bin/ripmime \
--enable-sigtool-path=/usr/local/bin/sigtool \
--enable-received=y
and then run the above configure script
2. Run make && make install-strip
3. fix permissions on the /var/qmail/simscan/ directory
chmod g+s /var/qmail/simscan/
4. Set all mails to be scanned, machine wide by editing /var/qmail/supervise/qmail-smtpd/run
vi /var/qmail/supervise/qmail-smtpd/run
5. Add the line
QMAILQUEUE="/var/qmail/bin/simscan"; export QMAILQUEUE
6. Alternatively you can have much greater control by stating which actions to be performed on emails coming from different IP addresses: for instance mine is set to scan ALL mails and is probably the simplest setup.
Edit the /var/qmail/control/simcontrol file and place your options in there:
vi /var/qmail/control/simcontrol
As i said above mine scans ALL mails form ALL IP addrresses with:
:clam=yes,trophie=no,spam=no
7. Run /var/qmail/bin/simscanmk to convert the /var/qmail/control/simcontrol into the /var/qmail/control/simcontrol.cdb file
/var/qmail/bin/simscanmk
/var/qmail/bin/simscanmk -g
8. Restart qmail with
qmailctl restart
1 comment:
You can find an updated version of QMR for Debian on http://qmailrocks.thibs.com
Post a Comment