Dear Mark and others,

I'm implementing Kaspersky AV version 5.5 in AMaViS version 2.4.1.

The config out-of-the-box contains:

 -----8<-----
  ### http://www.kaspersky.com/  (kav4mailservers)
  ['KasperskyLab AVP - aveclient',
 
['/usr/local/kav/bin/aveclient','/usr/local/share/kav/bin/aveclient',
     '/opt/kav/bin/aveclient','aveclient'],
    '-p /var/run/aveserver -s {}/*', [0,3,6,8],
qr/\b(INFECTED|SUSPICION)\b/,
    qr/(?:INFECTED|SUSPICION) (.+)/,
  ],
 -----8<-----

This was meant for Kaspersky AV version 5.0, because we didn't know
better from the man-page info of aveclient. The man-page for version 5.5
is better now and tells us:

 -----8<-----
       When launched with the -s option, aveclient returns one of the
follow-
       ing codes (if several files to be scanned are indicated in the
command
       line, the return code corresponds to the results of scanning the
last
       file):

       0      no viruses have been detected.

       1      unable to connect to aveserver.

       2      objects with an unknown viral code have been found.

       3      suspicious objects have been found.

       4      infected objects have been detected.

       5      all infected objects have been disinfected.

       6      scan results are unavailable: encrypted or  password
protected
              file.

       7      system  error launching the application (file not found,
unable
              to read the file).

       8      scan results are unavailable: file is corrupted or
input/output
              error.

       9      some  of  the  required parameters are missing from the
command
              line.
 -----8<-----

So, I must remove errorcode 3 in the array:

 -----8<-----
  ### http://www.kaspersky.com/  (kav4mailservers)
  ['KasperskyLab AVP - aveclient',
 
['/usr/local/kav/bin/aveclient','/usr/local/share/kav/bin/aveclient',
     '/opt/kav/5.5/kav4mailservers/bin/aveclient','aveclient'],
    '-p /var/run/aveserver -s {}/*', [0,6,8],
qr/\b(INFECTED|SUSPICION)\b/,
    qr/(?:INFECTED|SUSPICION) (.+)/,
  ],
 -----8<-----

While we are at this point. It bothers us very much that some virusses
are sent in password protected .ZIP files (.EXE is already BANNED at our
site) with the password in a .GIF-image in de e-mail. There are voices
over here to ban password protected .ZIP-files in e-mail. As you can see
from the exit code this could be done by removing errorcode 6 in there
array. Then add the word PROTECTED in the other string sections, so the
code would be:

 -----8<-----
  ### http://www.kaspersky.com/  (kav4mailservers)
  ['KasperskyLab AVP - aveclient',
 
['/usr/local/kav/bin/aveclient','/usr/local/share/kav/bin/aveclient',
     '/opt/kav/5.5/kav4mailservers/bin/aveclient','aveclient'],
    '-p /var/run/aveserver -s {}/*', [0,8],
qr/\b(INFECTED|SUSPICION|PROTECTED)\b/,
    qr/(?:INFECTED|SUSPICION|PROTECTED) (.+)/,
  ],
 -----8<-----

However in that case I would like the option to have a
'protected_file_lovers' where I can put users that communicate
frequently by sending password protected .ZIP files. So, this is not a
good place to make such a modification in amavisd.conf.

Do you have an alternative for us?

Cheers,
       Harrie

Harrie Overdijk, ECN, Postbox 1, 1755 ZG  Petten (NH), The Netherlands.
Internet: [EMAIL PROTECTED]              Noisenet: +31 224 56 4597
Homenet : [EMAIL PROTECTED]         FAXnet  : +31 224 56 8864
SURFnet-ICP/Postmaster/AntiSpam/WWW/ICT-Securitymanager of ECN.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to