Read the same in:      Francais  Deutsch  Polski  Русский  English  
You are welcome to subscribe to "New articles in Knowledge base" mailing list:

Please take a moment to rate the quality of our articles:
Technical level 
Amount of information in articles 
Have we helped you so far?* 
Presentation of information, design 
Your comments* 
makes shorter
make longer
need outline main points
more practical staff, less theory
make a better search engine
translate into my native language (other than EN)
make a structure
need a redesign
write more articles
all perfect
Your own comment 
My comments refer to the articles dedicated to* 
corporate products
home products


 
Search :  
Search tips Article ID # :     
 

Kaspersky Anti-Spam 3.0

 

Recommendations how to install Kaspersky Anti-Spam 3.0 and Kaspersky Anti-Virus 5.5 for Unix Mail Servers on postfix mail server

 ID Article: 869    Other languages:  Francais  Deutsch  Polski  Русский  English      Views for 7 days 0    Last modified on 13.03.2008 14:34 Printable version

Concerning to: 

  • Kaspersky Anti-Virus 5.5 for Unix Mail Servers 
  • Kaspersky Anti-Spam 3.0

Kaspersky Anti-Virus 5.5 for Unix Mail Servers does not provide automatic change of its configuration files when working concurrently with Kaspersky Anti-Spam 3.0.

That is why do the following, to configure the system do:

1. Install Kaspersky Anti-Spam 3.0. Strictly follow the given recommendation: install the key file, using the script config-postfix.pl integrate Anti-Spam into your MTA. After integration the following lines will be added to the file master.cf:

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 BEGIN ###

127.0.0.1:9026 inet n        n              n     -               20 spawn

user=mailflt3 argv=/usr/local/ap-mailfilter3/bin/kas-pipe

127.0.0.1:9025  inet              n           -      n     -    &nnbsp;   25 smtpd

-o smtpd_authorized_xforward_hosts=127.0.0.0/8

-o local_recipient_maps=

-o relay_recipient_maps=

-o smtpd_restriction_classes=

-o smtpd_client_restrictions=

-o smtpd_helo_restrictions=

-o smtpd_sender_restrictions=

-o smtpd_recipient_restrictions=permit_mynetworks,reject

-o mynetworks=127.0.0.0/8

-o strict_rfc821_envelopes=no

 -o smtpd_error_sleep_time=0

-o smtpd_soft_error_limit=1001

-o smtpd_hard_error_limit=1000

kas3scan unix        -         -    n                 -   10               smtp

-o smtp_send_xforward_command=yes

### KASPERSKY ANTI-SPAM END ###

2. Install Kaspersky Anti-Virus 5.5 for Unix Mail Servers, without integration with postfix. (If during the installation you specify the path to the postfix configuration file – no changes will be added to the file anyway)

3. Add changes 

    • to the file master.cf
      • at the end of the file add:

localhost:10025 inet n n n - 10 spawn

user=kluser argv=/opt/kav/5.5/kav4mailservers/bin/smtpscanner

These lines instruct postfix to resend messages delivered to port 10025 to be checked by the Anti-Virus. 

    • to the file /usr/local/ap-mailfilter3/etc/filter.conf
      • At the end of the file add the lines:

PipeInProtocol smtp

PipeOutProtocol smtp

PipeOutgoingAddr tcp:127.0.0.1:10025

PipeUseXForward yes

If the file already contains similar lines, in the value PipeOutgoingAddr change the port to which the mail is redirected. The third line defines where the messages should be directed further after being checked by Anti-Spam. In the example it is port 10025 of the mail server from which the messages are further sent to be checked by the Anti-Virus. 

    • The file /etc/kav/5.5/kav4mailservers/kav4mailservers.conf: 
      • In the section [smtpscan.general] change the following parameters according to the given values:

ForwardMailer=smtp:127.0.0.1:9025

Protocol=smtp

The first line will show that the messages checked by the Anti-Virus should be sent to port 9025 of the mail server. Postfix will deliver messages from port 9025 to the recipients.

4. Run the following commands:

#postfix stop

#postfix start


 Did the provided info help you?

                       

 Give your detailed feedback.

 

Kaspersky Lab

Copyright © 1997-2013 Kaspersky Lab
Site map  |   Contact us  |   International Support Service  |  Send us a suspected virus

Stay connected