For some reason the Dr.Web, qmail and SpamAssassin integration on Plesk sometimes does not work properly after an upgrade.
It is important to make sure that the binaries in the
/var/qmail/bin directory have the following permissions, to enable Dr.Web, qmail and SpamAssassin to work together.
-r-s–x–x 1 drweb qmail 161024 Mar 19 01:34 qmail-queue
-r-s–x–x 1 drweb qmail 161024 Mar 19 01:34 qmail-queue.drweb
-r-s–x–x 1 qmailq qmail 15936 Aug 24 2005 qmail-queue.origin
The process runs as follows:
- Incoming mail will be delivered using the
qmail-queuebinary, which is a specially compiled version that allows qmail to scan the email for viruses.
qmail-queuebinary will write a temporary file in the
/var/drweb/spool/directory. It is therefore important to check the permissions on the
/var/drweb/spool/. They should be:
drwxrwx— 2 drweb nofiles 4096 May 3 13:20 spool
qmail-queuebinary will also read the
/etc/drweb/drweb_qmail.conffile and it will execute the file found in the
QmailQueue =tag, once virus scanning is complete. The
QmailQueue =tag usually contains:
- After the virus scanning process completes, the
qmail-queue.originbinary will run. This binary will in turn run the SpamAssassin rules as defined in each users configuration.
The following files maybe useful in locating a problem:
/usr/local/psa/var/log/maillog– This file contains the mail logs and you will quickly see if any errors are being generated in it.
/var/drweb/log/drwebd.log- This file contains the Dr.Web logs for all scanned emails.