Page 1 of 1

Avira AntiVir Integration

Posted: 2008-07-15 13:32
by supermeg
If you want to Avira AntiVir for hmailserver extrnal AV, you need to a little Avira Tool named as AVCLS

You can download from this link

AVCLS is a command line scanner.. It uses your Avira Antivir products virus defination file and it can response a return code for hmailserver..

Usage..

Copy avcls.exe to your AntiVir directory..

C:\Program Files\Avira\{Your Product}

Check the "Use the external scanner" on hmailserver antivirus tab..

Scanner Executable = "C:\Program Files\Avira\AntiVir Server\avcls.exe" "%FILE" -allfiles -z -noboot -nombr -e -del -dmdel -heuristic:2 -r1 -q -alltypes

I'm using AntiVir Server on my Windows 2003 Server.. Please specify your antivir product folder..

Return Code = 3

Now, you can test it...

You can receive an eicar test code infected mail from http://www.info-techs.com/eicar.shtml

Avira, More than Security :)

Re: Avira AntiVir Integration

Posted: 2008-07-15 21:46
by ^DooM^
Awesome, thanks. I use Avira myself on my home PC and laptops. Great product does what it says on the tin :)

Re: Avira AntiVir Integration

Posted: 2008-07-27 21:13
by pixelpoint
Thank you for this tip,
supermeg wrote:Scanner Executable = "C:\Program Files\Avira\AntiVir Server\avcls.exe" "%FILE" -allfiles -z -noboot -nombr -e -del -dmdel -heuristic:2 -r1 -q -alltypes
I think, you have to change the filemacro from "%FILE" to "%FILE%".

I've tested this configuration with the EICAR-Virus but I didn't get the errorlevel resultcode = 3. Oh, very strange :cry: . Do you have an entry in your logfiles when a virus is found?

Bye

Lars

Re: Avira AntiVir Integration

Posted: 2008-07-28 12:21
by pixelpoint
Hi,

I've found the entry in the logfile :oops:

Code: Select all

"APPLICATION"	4980	"2008-07-28 11:53:37.171"	"SMTPDeliverer - Message 103: Delivering message from eicartest@info-techs.com (eicartest@info-techs.com) to xxxx@xxxx.xxx. File: D:\hMailServer\Data\{6E8605F6-BD42-4647-9531-F329F6A4ED79}.eml"
"DEBUG"	4980	"2008-07-28 11:53:37.171"	"CustomVirusScanner::Scan()"
"TCPIP"	4928	"2008-07-28 11:53:37.281"	"Disconnecting socket 1884 for session 1226"
"DEBUG"	4928	"2008-07-28 11:53:37.281"	"Socket::~Socket(ID: 1226)"
"DEBUG"	5764	"2008-07-28 11:53:37.281"	"ExternalFetch::~Start"
"DEBUG"	4980	"2008-07-28 11:53:41.140"	"CustomVirusScanner::Scan() - "C:\Programme\Avira\AntiVir PersonalEdition Premium\avcls.exe" "D:\hMailServer\Data\{6E8605F6-BD42-4647-9531-F329F6A4ED79}.eml" -allfiles -z -noboot -nombr -e -del -dmdel -heuristic:2 -r1 -q -alltypes - Returned 0"
I get the returncode 0 while scanning the mail with the EICAR-Virus. Is there something wrong with the parameters of the commandline?

Best regards

Lars

Re: Avira AntiVir Integration

Posted: 2008-08-16 14:07
by bagu
Is there any way to do the same thing with avira antivir free edition ?
Thanks

Re: Avira AntiVir Integration

Posted: 2008-09-25 11:30
by supermeg
bagu wrote:Is there any way to do the same thing with avira antivir free edition ?
Thanks
Unfortunately, AVCLS doesn't work with free editions..

Re: Avira AntiVir Integration

Posted: 2008-11-11 03:19
by westdam
also free edition doesnt work on a server enviroiment.

Re: Avira AntiVir Integration

Posted: 2008-11-15 01:25
by ewieldra
@westdam

this is not completely true .

The installer will not work on server enviroments ...
But you can extract the installer and do a manual installation of the services/drivers

Re: Avira AntiVir Integration

Posted: 2008-11-15 07:49
by katip
Free edition requires a linefeed (hit Enter) after scanning is done, IIRC.
Otherwise it hangs. There may be a workaround with a batchfile though.

Re: Avira AntiVir Integration

Posted: 2009-07-02 13:19
by Melibokus73
Free edition requires a linefeed (hit Enter) after scanning is done, IIRC.
Otherwise it hangs. There may be a workaround with a batchfile though.
Does this still work ??

I get a "LoadLibrary() failed, err=126" error