User Guide

Chapter 6 93
3. Having processed the message, kas-pipe returns it using the exim –bs
command. The message again is queued in the Exim queue. However,
the router for the kas-pipe module will be skipped because the mail was
sent locally.
4. Exim delivers the message to the recipient.
To implement this scheme, do the following:
1. In the filter.conf configuration file, specify the following values:
PipeInProtocol lmtp
PipeOutProtocol smtp
PipeOutgoingAddr exec:/usr/local/sbin/exim -bs
2. Modify the Exim configuration file as follows:
Add the following lines in the ROUTERS section:
begin routers
# ROUTER ADDED BY KAS 3.0 INSTALLER
kas30router:
driver = accept
local_parts = passwd;$local_part : lsearch
condition = "${if !eq {$received_protocol}
{local-esmtp}{yes}}"
transport = kas30transport
Add the following lines in the TRANSPORTS section:
begin transports
# TRANSPORT ADDED BY KAS 3.0 INSTALLER
kas30transport:
driver = lmtp
batch_max = 100
command = /usr/local/ap-mailfilter3/bin/kas-pipe
return_path_add = false
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