Appendix A
93
For the Debian distribution package, the integration with Exim has a number of
specific features because the configuration of the mail server is generated by a
special script
update-exim4.conf
from the template
/etc/exim4/exim4.conf.template
or from several templates located in the
/etc/exim4/conf.d/
directory. The number of the templates (one or several) is
defined by the
use_split_files
option of the
exim4-update.conf.conf
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.