User Guide

Chapter 6 85
4. In accordance with the received processing result the client module
modifies the message – if required – and returns it to the mail server.
Interaction between the client module, filtering master process and filtering
process is done through a network or local socket using an internal protocol.
The use of a network socket allows placing the filtering server and the mail
server with integrated client module on different servers. And when there is not
much mail traffic to process, the dedicated filtering server can serve a number of
mail servers. This configuration requires manual adjustment of settings that
control interaction of Kaspersky Anti-Spam and mail server components.
A.2.2. Global settings of client modules
Kaspersky Anti-Spam version 3.0 keeps client module settings in the filtering
server’s global configuration file – filter.conf - which is located in the /usr/local/ap-
mailfilter3/etc/ directory.
The following settings are common for all client modules:
ClientConnectTo – the socket address for interaction with the filtering
server. An entry in the format tcp:<host>:<port>, where <host> is IP
address of the filtering server, <port> is the connection port—points to
the network socket, and an entry in the format unix:<path_to_file>,
where <path_to_file> is the path to file—points to a local socket.
ClientConnectTimeout – the maximum waiting time (in seconds) when
attempting to connect to the filtering server.
ClientDataTimeout – the maximum waiting time (in seconds) when
exchanging data with filtering server.
ClientOnError – the error handling mode (impossible to establish a
connection to the filtering server, timeout during data exchange, etc.).
Possible values:
reject – do not accept message and return the error code 5xx
during SMTP session;
tempfail – temporarily reject a message and return the error
code 4xx during SMTP session (used by default);
accept – accept the message.
When using Sendmail mail server, accept denotes that a
message should be accepted without further processing by
other Milter-filters employed by the server after Kaspersky
Anti-Spam.