Configuring Qmail

To connect Dr.Web MailD to Qmail mail system, do the following:

1.Open the directory with Qmail executable files <qmail_dir> (usually they reside in the /var/qmail/bin directory) and rename the qmail-queue file to qmail-queue.original;

Внимание!

Note that if you moved the qmail-queue original file to another location or defined another name (different from qmail-queue.original), it is required to specify a new path to this file in the main configuration file of Dr.Web MailD. To do this, set the new file path as a value of the QmailQueue parameter in the [Qmail] section.

2.Instead of the renamed file create the following symbolic link in the same directory: qmail-queue -> %bin_dir/qmail-queue;

3.Set rights for users whose privileges are used to run the files.

The most convenient configuration is the one when Dr.Web MailD and qmail-queue operate under the drweb account. To enable proper functioning of the configuration, assign the following rights for %bin_dir/qmail-queue and %qmail_dir/qmail-queue:

-rws--x--x  X drweb  qmail SIZE DATE %bin_dir/qmail-queue
-rws--x--x  X qmailq qmail SIZE DATE %qmail_dir/qmail-queue.original

You can also do that using the following commands:

# chown drweb:qmail %bin_dir/qmail-queue
# chmod 4711 %bin_dir/qmail-queue
# chown qmailq:qmail %qmail_dir/qmail-queue.original
# chmod 4711 %qmail_dir/qmail-queue.original

4.  Also add qmailq and qmaild users to the drweb group and drweb user to the qmail group.