User Guide

Chapter 6 89
This scheme can be implemented with any mail server that either supports
running a second instance with different settings, or delivers via LMTP protocol,
or delivers all mail to the specified mail server through SMTP.
Configuration of client module interaction with mail server can be performed with
special scripts (see the item 3.5 on page 27), and manually.
Manual configuration for a client module is done by modifying the filter.conf
configuration file located in the /usr/local/ap-mailfilter3/etc/ directory. The
following is a fragment of that file listing the client module settings:
ClientConnectTo tcp:127.0.0.1:2277
ClientConnectTimeout 10
ClientDataTimeout 30
PipeInProtocol lmtp
PipeOutProtocol lmtp
PipeOutgoingAddr exec:/usr/sbin/sendmail –bs
PipeMultipleMessagesAllowed yes
ClientDefaultDomain localhost
ClientOnError accept
ClientFilteringSizeLimit 500
In addition to the settings described earlier in the appendix A.2.2, for the kas-
milter module you can set the following parameters in the filter.conf file:
PipeInProtocol – the protocol used for receiving mail messages. The
possible values are smtp, lmtp.
PipeOutProtocol – the protocol used for sending processed mail
messages. The possible values are smtp, lmtp.
PipeHELOGreeting – the domain name used by the
kas-pipe module for a greeting during SMTP session. The default value is
kas30pipe.+ <server domain name>.
PipeOutgoingAddr – socket address used for transfer of processed
messages. An entry in the format tcp:<host>:<port>, where <host>
filtering server’s IP address, <port> – connection port, points to a network
socket, and entry in format unix:<path_to_file>, where <path_to_file>
the path to socket file, points to a local socket, and entry in format
exec:/<path to the program executable> – <parameters> points to the
program that will be run for transferring messages.
PipeOutConnectTimeout=5...600 – timeout for establishment of
connection to a socket or program used for transfer of processed
messages (defined by the PipeOutgoingAddr parameter).