Kaspersky Lab kaspersky anti-spam 2.0 Manual

Page of 133
Appendix A 
107
 
 
2.  make the following changes to file Local/Makefile
CFLAGS= -I/usr/local/ap-mailfilter/include 
EXTRALIBS_EXIM=-L/usr/local/ap-mailfilter/lib 
-lspamtest 
LOCAL_SCAN_SOURCE=Local/kas_exim.c 
LOCAL_SCAN_HAS_OPTIONS=yes 
3. compile 
Exim. 
A.3.4.2. 
kas-exim 
configuration parameters 
The kas-exim program's operation parameters are specified in configuration file 
of the Exim mail system, for example:  
begin local_scan 
spamtest_address = tcp:193.124.130.9:2255 
connect_timeout = 10000 
rw_timeout = 30000 
on_spamtest_error=tempfail 
spamtest_filtering_size_limit=512 
log_level=3 
Parameters description: 
spamtest_address
 – the address of a socket used for the communication 
and interaction with the filtering process. Format: tcp:host:port or 
unix:/path/to/socket
connect_timeout
 – maximum allowable waiting time (in milliseconds) when 
establishing connection with the filtering process. 
rw_timeout
 – maximum allowable waiting time (in milliseconds) when 
exchanging data with the filtering process. 
on_spamtest_error
 – error processing mode (unable to establish 
connection with the filtering process, waiting time exceeded when 
exchanging data, etc.) Allowable values: rejecttempfailaccept.  
spamtest_filtering_size_limit
 –the maximum message size (in kilobytes) 
that can be passed to the filtering module. Larger messages will be 
passed on without filtering. If the value of this parameter is 0 (default 
value), then this limit will not be applied and all messages will be sent to 
the filtering module.
 
log_level
 – a numeric value that determines the level of detail when writing 
to the log file. Writing is performed using debug-printf (i.e. in the debug 
mode of the Exim mail system).