5.6 Scanning e-mails in-transit in Qmail

This section applies to F-PROT Antivirus for UNIX Mail Server version only

The installation script install-f-prot.pl can automatically configure [sendmail|postfix|qmail] for in-transit scanning. This section describes how to do this manually.

In-transit mail scanning in Qmail can be achieved using the f-prot-qmail application. To achieve this functionality, f-prot-qmail must be put in place of qmail's qmail-queue utility while retaining the original qmail-queue program backed up as qmail-queue.orig.

Here is the procedure:

        # cd /var/qmail/bin
        # mv qmail-queue qmail-queue.orig
        # cp /opt/f-prot/mailtools/fp-qmail ./qmail-queue
        # chown qmailq.qmail qmail-queue
        # chmod 4711 qmail-queue

Now make sure you have scan-mail.pl running with the -server option, and f-protd is running as well. If they are, you should be able to make a connection to 127.0.0.1:11200 for scan-mail.pl and 127.0.0.1:10200 for fpscand.

The fp-qmail program will make a copy of each message in /tmp, contact the Mail Scanner at port 11200 and supply the Mail Scanner with the message. When the Mail Scanner has finished rewriting the message, the fp-qmail program will start the original qmail-queue program and supply it with the rewritten message.

Scan-mail.pl uses fpscand to do the actual virus scans. Make sure fpscand is running before starting the Mail Scanner.

Back to Index

Copyright © 2007 FRISK Software International. All rights reserved