I’m using a mail server: hMailServer 4.4.2.275.
OS: Windows Vista Ultimate x64 (Finnish) with all latest updates installed.
I’m using command: ““C:\Program Files\Alwil Software\Avast4\ashCmd.exe” /A /C /D /F=PW /T=A /P=1”
to detect viruses. My problem is: when i sended eicar test file to my mailbox it didn’t detect it as a virus in mailserver.
Avast should return value: “1” when it finds an virus but it returned “0”.
Is this new for the build 1085? I’m not aware of any changes in the command-line scanner.
I tried it and it works without any problems here (btw, /F=PW doesn’t have much sense - it’s the same as /F=W).
So, are you sure you pass the right file to the scanner? Wasn’t the eicar test string simply embedded in the e-mail body (as text)?
The arguments were OK (I mean, I pasted your command-line into ashCmd, ran it from a batch and it worked correctly - errorlevel was 1).
If you pass this .eml file into ashCmd directly (from a command-line) - does it find the virus? Or, you can add the report-file-creation argument to the command line (/r=*c:\ashcmd.log) - is the virus detected?
This is a multi-part message in MIME format.
--------------070105030606080309000007
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
I’ve split these posts from the beta announcement thread, since it doesn’t seem to be related.
So, if you copy&paste this content into a .eml file and run ashCmd on it, it doesn’t report anything? It detects the eicar without any problems here… (in both files, actually)
I used the same command-line as you posted originally (except for the location change): d:\avast4\ashCmd.exe f:\test\1.eml /A /C /D /F=PW /T=A /P=1
Result: virus was detected, .eml file deleted, %errorlevel% = 1
To make sure the CLSID in the filename doesn’t get incorrectly resolved somewhere, I also tried with your filenames (and with other CLSIDs)… no difference.
Can your redirect the output from ashCmd to a file (e.g. with the /_ argument) to see what was really scanned?