Avira AntiVir Integration

This section contains scripts that hMailServer has contributed with. hMailServer 4 is needed to use these.
Post Reply
supermeg
New user
New user
Posts: 2
Joined: 2008-07-15 13:18

Avira AntiVir Integration

Post by supermeg » 2008-07-15 13:32

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 :)

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: Avira AntiVir Integration

Post by ^DooM^ » 2008-07-15 21:46

Awesome, thanks. I use Avira myself on my home PC and laptops. Great product does what it says on the tin :)
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

User avatar
pixelpoint
New user
New user
Posts: 4
Joined: 2008-07-10 12:15
Location: Germany

Re: Avira AntiVir Integration

Post by pixelpoint » 2008-07-27 21:13

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

User avatar
pixelpoint
New user
New user
Posts: 4
Joined: 2008-07-10 12:15
Location: Germany

Re: Avira AntiVir Integration

Post by pixelpoint » 2008-07-28 12:21

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

User avatar
bagu
Normal user
Normal user
Posts: 212
Joined: 2005-06-17 03:08
Location: France
Contact:

Re: Avira AntiVir Integration

Post by bagu » 2008-08-16 14:07

Is there any way to do the same thing with avira antivir free edition ?
Thanks
hMailServer 5.6.8 With SpamAssassin 3.4.2

supermeg
New user
New user
Posts: 2
Joined: 2008-07-15 13:18

Re: Avira AntiVir Integration

Post by supermeg » 2008-09-25 11:30

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..

westdam
Senior user
Senior user
Posts: 728
Joined: 2006-08-01 21:24
Location: Padova, Italy
Contact:

Re: Avira AntiVir Integration

Post by westdam » 2008-11-11 03:19

also free edition doesnt work on a server enviroiment.

ewieldra
Normal user
Normal user
Posts: 37
Joined: 2008-04-24 23:23
Location: The Netherlands

Re: Avira AntiVir Integration

Post by ewieldra » 2008-11-15 01:25

@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
Best regards,

Emiel Wieldraaijer
The Netherlands

User avatar
katip
Senior user
Senior user
Posts: 735
Joined: 2006-12-22 07:58
Location: Istanbul

Re: Avira AntiVir Integration

Post by katip » 2008-11-15 07:49

Free edition requires a linefeed (hit Enter) after scanning is done, IIRC.
Otherwise it hangs. There may be a workaround with a batchfile though.
Katip
--
HMS 5.7.0 x64, MariaDB 10.4.10 x64, SA 3.4.2, ClamAV 0.101.2 + SaneS

Melibokus73
Normal user
Normal user
Posts: 87
Joined: 2009-06-26 20:13

Re: Avira AntiVir Integration

Post by Melibokus73 » 2009-07-02 13:19

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

Post Reply