Manual Integration with QMail server
January 24, 2025
ID 56887
The QMail server does not support the integration of extensions. To integrate Kaspersky Security 8 for Linux Mail Server with QMail server manually, replace the original executable file with the /opt/kaspersky/klms/lib/bin/kavklms-qmail (under Linux) or /usr/local/libexec/kaspersky/klms/klms-qmail (under FreeBSD) queue file supplied with Kaspersky Security for Linux Mail Server. This file supports message filtering and transmits messages back to the original qmail-queue file for subsequent delivery. Rename the original qmail-queue file to qmail-queue-real.
Messages are sent for scanning before insertion in the mail queue (before-queue filtering).
To integrate Kaspersky Security 8 for Linux Mail Server with QMail manually:
- Specify
/var/qmail/bin/sendmail
as thesenmail-path
parameter’s value in the[global]
section of theklms_filters.conf
file. - Copy the
/var/qmail/bin/qmail-queue
file to the/var/qmail/bin/qmail-queue-real
folder using the following command:#cp –fp /var/qmail/bin/qmail-queue /var/qmail/bin/qmail-queue-real
- Copy the filter file from the Kaspersky Security 8 for Linux Mail Server distribution kit to the
qmail
folder using the following command:- for Linux:
#cp -fp /opt/kaspersky/klms/libexec/qmail-queue /var/qmail/bin/qmail-queue
- for FreeBSD:
#cp -fp /usr/local/libexec/kaspersky/klms/qmail-queue /var/qmail/bin/qmail-queue
- for Linux:
- Set the following access rights for the
qmail-queue
andqmail-queue-real
files:# ls -la /var/qmail/bin/qmail-queue*
-rws--s--x 1 qmaild klusers 2287242 Feb 19 20:53 /var/qmail/bin/qmail-queue
-rws--x--x 1 qmailq qmail 19288 June 27 2013 /var/qmail/bin/qmail-queue-real
- In the filter settings file klms_filter.conf, go to the
[global]
section and make sure that theheader-guard
setting has its value set totrue
. - Restart the Kaspersky Security 8 for Linux Mail Server:
service klms restart