User Guide

Appendix A 111
Two techniques are used to avoid infinite looping:
kas-cgpro adds a special header to each message it has processed and
later checks messages for such headers;
by default kas-cgpro processes only those messages that were
received using SMTP protocol (see the AllTransports configuration
parameter).
A.3.6.2. The
kas-cgpro
configuration file
The kas-cgpro program's operation parameters are specified in configuration file
/usr/local/ap-mailfilter/etc/kas-cgpro.conf.
The name of the configuration file may be changed at the program restart:
kas-cgpro -C /path/to/conf/file
Configuration file example:
SpamtestAddr tcp:127.0.0.1:2255
ConnectTimeout 10000
RWTimeout 30000
SubmitFolder Submitted
MaxThreads 50
LoopHeader X-Proceed_240578_by_spamtest
AllTransports No
FilteringSizeLimit 500
DefaultDomain localhost
LogFacility MAIL
LogLevel Error
Parameters description:
SpamtestAddr – the address of a socket used for the communication and
interaction with the ap-mailfilter program. Format: tcp:host:port or
unix:/path/to/socket.
ConnectTimeout maximum allowable waiting time (in milliseconds) when
establishing connection with the filtering process.
RWTimeout – maximum allowable waiting time (in milliseconds) when
exchanging data with the filtering process.
SubmitFolder – the name of the folder where modified messages are
moved.
MaxThreads –maximum number of messages that can be processed at a
time.