First create a batch file containing...
Code: Select all
set scanner="C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 7.0\avp.com" %scanner% scan "%1" /i0 -es:15 if "%errorlevel%" == "101" goto virus if "%errorlevel%" == "102" goto virus :exit exit /b 0 :virus exit /b 1
Then save it as C:\hmailAV.bat
In hmail administrator go to settings -> antivirus and click the "external virus scanner" tab
for scanner executable enter " c:/hmailAV.bat "%FILE%" " with out the quotes at the end but WITH the quotes around %FILE%
Set the return value to "1" and click save.
You may get a little popup notification from Kaspersky when it detects a virus mut you can disable that.
Note: i turned off email scanning because i was using the same computer for client and server. I dont know if it will affect it if you are only running server.