Manual Installation

The following instructions spell out how to manually install Qmail-Scanner on your system. Simply run ./configure as normal without the "--install" option, and then:

mkdir -p /var/spool/qscan
mkdir -p /var/spool/qscan/quarantine/viruses/tmp /var/spool/qscan/quarantine/viruses/cur /var/spool/qscan/quarantine/viruses/new
mkdir -p /var/spool/qscan/quarantine/spam/tmp /var/spool/qscan/quarantine/spam/cur /var/spool/qscan/quarantine/spam/new
mkdir -p /var/spool/qscan/quarantine/policy/tmp /var/spool/qscan/quarantine/policy/cur /var/spool/qscan/quarantine/policy/new
mkdir -p /var/spool/qscan/working/tmp /var/spool/qscan/working/cur /var/spool/qscan/working/new
mkdir -p /var/spool/qscan/archive/tmp /var/spool/qscan/archive/cur /var/spool/qscan/archive/new
cp quarantine-events.txt /var/spool/qscan/
chown -R qscand:qscand /var/spool/qscan/
cp qmail-scanner-queue.pl /var/qmail/bin/qmail-scanner-queue.pl
chown qscand:qscand /var/qmail/bin/qmail-scanner-queue.pl
chmod 4755  /var/qmail/bin/qmail-scanner-queue.pl #(i.e same perms as qmail-queue, but owned by qscand instead of qmailq)
#run "/var/qmail/bin/qmail-scanner-queue.pl -h" to view the few command-line options there are
/var/qmail/bin/qmail-scanner-queue.pl -z        # to initialize the version file.
/var/qmail/bin/qmail-scanner-queue.pl -g        #to initialize the perlscanner database.

 

After this is done - as with the automated install - you will have to alter your system's Qmail startup scripts (e.g. /service/smtpd/run or /etc/tcpcontrol/smtp.rules) to call QMAILQUEUE as documented.

If you are wanting to run Qmail-Scanner without the QMAILQUEUE patch, then you're in (almost) unsupported territory as the number of possible problems increases dramatically. Anyway, if you are interested, you should generate the qmail-scanner-queue.pl program with a few different options (see "./configure --help" for details). What follows is an example only:

./configure --debug yes --admin me --domain my.domain --notify psender,nmlvadm \
 --log-details syslog --unzip yes --no-QQ-check  \
 --qmail-queue-binary /var/qmail/bin/qmail-queue.real

This contains two options not normally used: the "--no-QQ-check" and "--qmail-queue-binary" options. The first stops ./configure checking for the presence of the QMAILQUEUE patch, and the second tells Qmail-Scanner where the "real" Qmail qmail-queue binary is. In this case it is moved to /var/qmail/bin/qmail-queue.real. Once this is done, the resulting qmail-scanner-queue.pl program can be copied onto /var/qmail/bin/qmail-queue. But be careful - infinite loop territory...

Last Updated: Sunday 13th 2005f March 2005 09:12:22 PM GMT