User Guide

Chapter 6 101
A.3.1. Main configuration file filter.conf
The configuration file /usr/local/ap-mailfilter3/etc/filter.conf contains that regulate
operation of all Kaspersky Anti-Spam components (excluding the updating
module).
General settings
RootPath – path to the Kaspersky Anti-Spam installation directory. The
default value is /usr/local/ap-mailfilter3.
LogFacility=mail|user|local0|local1|local2|local3|local4|local5|local6|
local7 – a category, according to which records are logged in the syslog
facility. The default value is mail.
LogLevel=0|1|2|3|4|5 – level of detail of records in the syslog facility. The
default value is 2.
User – the rights of this user are used to start filtering server processes. As
a value, you can use either the user name or user uid.
Group – the rights of this group are used to start filtering server processes.
As a value, you can use either the group name or gid.
Filtering server settings
ServerListen – socket using which the filtering server interacts with the
module integrated into the mail server. The format of the value is
tcp:<host>:<port>, where <host> is the IP-address (or name) of the
mail server, <port> is the port number that specifies a network socket,
and the record unix:<path_to_file>, where <path_to_file> is the path
to the socket file, specifies a local socket. Set the <host> parameter to
0.0.0.0 in order to bind the filtering server to any interface.
For compatibility purposes, local socket created for interaction
between mail server and the filtration server allows any user
that has logged on to write to that socket.
FilterPath – path to the executable file of the ap-mailfilter filtering process.
ServerStartFilters – number of ap-mailfilter filtering processes started when
the filtering module is launched. The default value is 0. The
ServerStartFilters value must not exceed the ServerMaxFilters
parameter.
ServerMaxFilters=1...200 – maximum number of simultaneously running
filtering processes ap-mailfilter. The default value is 10.