To integrate Kaspersky Security 8 for Linux Mail Server with Sendmail using the MC file:
dnl #KLMS-milter-begin-filter dnl
define(`_FFR_MILTER', `true')dnl
INPUT_MAIL_FILTER(`KLMS_Milter',`S=$filter_socket,${fail_type}T=S:3m;R:5m;E:10m') \
dnl
dnl #KLMS-milter-end-filter dnl
where $filter_socket is the IP address and port number or the UNIX socket that the filter uses to listen for incoming connections, written as follows: inet:<port>@<IP address> (for network sockets) or unix:<path to UNIX socket> (for UNIX sockets).
${fail_type} defines the action to be taken by the Sendmail server on messages if the filter works incorrectly. ${fail_type} can take the values "F=R", "F=A," or "F=T,". R means reject, A means accept, and T means tempfail. If you replace ${fail_type} with an empty line, the message will be skipped. The recommended option is tempfail.
Example:
|
[global] section, specify the path to the sendmail file in the following line:sendmail-path=<path to sendmail file>
[milter] section of the /etc/opt/kaspersky/klms/klms_filters.conf file (under Linux) or /usr/local/etc/kaspersky/klms/klms_filters.conf (under FreeBSD):socket=<IP address and port number> or <path to UNIX socket>
Example:
|
SENDMAIL_MILTER=1
SENDMAIL_USES_MC=1 if you have compiled the MC file, or 0 if not.
START_MILTER=1