![KAPERSKY ANTI-SPAM 3.0 - Administrator'S Manual Download Page 90](http://html1.mh-extra.com/html/kapersky/anti-spam-3-0/anti-spam-3-0_administrators-manual_653132090.webp)
90
Kaspersky Anti-Spam 3.0
A.2.4.1. Configuring Postfix to work with kas-
pipe
This section provides an example of the
kas-pipe
configuration for the Postfix
mail server that implements the following operational scheme:
•
kas-pipe
acts as a content filter (
content_filter
);
•
kas-pipe
receives mail through the
localhost:9026
network socket and the
kas3scan
service defined manually in the Postfix configuration file;
•
kas-pipe
transfers processed mail to Kaspersky Anti-Spam to the
localhost:9025
socket, via the SMTP protocol.
The
kas3scan
service limits the number of simultaneous connections and uses
the
smtp_send_xforward_command
option to transfer the IP-address of the
sender server to the
kas-pipe
module.
To implement this scheme, do the following:
1. In
the
filter.conf
configuration file, specify the following values:
ClientConnectTo tcp:127.0.0.1:2277
PipeMultipleMessagesAllowed yes
PipeInProtocol smtp
PipeOutProtocol smtp
PipeOutgoingAddr tcp:127.0.0.1:9025
PipeUseXForward yes
2. Modify the Postfix configuration file (
master.cf
) as follows:
smtp inet n - n - - smtpd
### KASPERSKY ANTI-SPAM BEGIN ###
-o content_filter=kas3scan:127.0.0.1:9026
### KASPERSKY ANTI-SPAM END ###
pickup fifo n - n 60 1 pickup
### KASPERSKY ANTI-SPAM BEGIN ###
-o content_filter=kas3scan:127.0.0.1:9026
### KASPERSKY ANTI-SPAM END ###
### KASPERSKY ANTI-SPAM BEGIN ###
127.0.0.1:9026 inet n n n - 20 spawn