User Guide

94 Kaspersky Anti-Spam 3.0
configuration file of Exim. The resulting configuration is stored in the
/var/lib/exim4/config.autogenerated file.
For the Debian distribution package, Kaspersky Anti-Spam can be integrated
with the Exim mail server either manually or automatically, using a special
script(see. section. 3.5 on page 27).
To configure the Exim mail server to work with the kas-pipe module, do
the following:
If the exim4.conf.template template is used for the Exim
configuration, add the above-provided strings to the corresponding
ROUTERS and TRANSPORTS sections.
If the templates from the /etc/exim4/conf.d/ directory are used for
the Exim configuration:
1. In the /etc/exim4/conf.d/router/ directory, create a new file
099_exim4-config_kas30router and add the following strings to
this file:
kas30router:
driver = accept
local_parts = passwd;$local_part : lsearch
condition = "${if !eq {$received_protocol}
{local-esmtp}{yes}}"
transport = kas30transport
2. In the /etc/exim4/conf.d/transport/ directory, create a new file
30_exim4-config_kas30transport and add the following strings
to this file:
kas30transport:
driver = lmtp
batch_max = 100
command = /usr/local/ap-mailfilter3/bin/kas-pipe
return_path_add = false
After making changes, run the update-exim4.conf script to apply the new
values to be used in the system.
A.2.5.
kas-exim
– a client module for the
Exim mail server
The kas-exim module provides integration of Kaspersky Anti-Spam with the Exim
mail server version 4.xx using localscan API.