Installing Clamav x64bit in Windows Server 2008 r2

Forum for things that doesn't really have anything to do with hMailServer. Such as php.ini, beer, etc etc.
Post Reply
brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-19 17:35

Anyone got any info on installing Clamav in Windows Server 2008 R2???

User avatar
mattg
Moderator
Moderator
Posts: 20792
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by mattg » 2010-07-20 02:00

I like this variant of clam AV - http://hideout.ath.cx/clamav/

It has a windows installer.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-20 08:38

True, however it does not seem to be compatible for microsoft server 2008 r2..... when i try and run the installer it says that the product is only compatible with windows 7 and vista and XP..... maybe i am doing something wrong but ill give it another try.... if any one else has had success installing ther version from this link http://hideout.ath.cx/clamav/ would be cool if someone could tell me how they got around they compatibility issues.

User avatar
tBB
Senior user
Senior user
Posts: 268
Joined: 2009-04-17 18:10
Location: The land of Beer and Sauerkraut!
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by tBB » 2010-07-20 08:49

brb1990 wrote:True, however it does not seem to be compatible for microsoft server 2008 r2..... when i try and run the installer it says that the product is only compatible with windows 7 and vista and XP..... maybe i am doing something wrong but ill give it another try
The Innosetup installer which I'm using shouldn't produce such messages. You seem to mix the version at http://hideout.ath.cx/clamav up with "clam-latest-xx.exe" from clamav.net. Besides, there is also a zip version available at hideout.ath.cx/clamav although using the installer is the recommended method.
brb1990 wrote:Anyone got any info on installing Clamav in Windows Server 2008 R2???
You've asked the same question already here http://www.hmailserver.com/forum/viewto ... 91#p112991 Please don't cross-post.

Best regards,

Nico

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-20 08:56

True, but i did so because it seemed like posting different query's into other thread topic wasnt the norm.... so i made a new one specific to the problem i was having..... and i just tried installing it again and so far so good....

bescher
Normal user
Normal user
Posts: 123
Joined: 2008-05-26 01:56
Location: Milwaukee Wi
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by bescher » 2010-07-20 09:56

I am running Nico's version of Clamav on a windows 2008 R2 64 bit with no problems at all. It ruins and runs and runs. Matter of fact even the Clamsup update program runs great on it

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-20 10:32

Do i still need to have powertools in order to have it run for hmailserver or was that only for the older versions of clamav?? cause if i do i cannot find a link that is still valid anywhere in the forums but the threads are already pretty old (07/08)......

User avatar
tBB
Senior user
Senior user
Posts: 268
Joined: 2009-04-17 18:10
Location: The land of Beer and Sauerkraut!
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by tBB » 2010-07-20 10:52

brb1990 wrote:Do i still need to have powertools in order to have it run for hmailserver or was that only for the older versions of clamav?? cause if i do i cannot find a link that is still valid anywhere in the forums but the threads are already pretty old (07/08)......
The old ClamAV "Powertools" are not needed (but I guess they can be used). See the posts by Dfitch and me here http://www.hmailserver.com/forum/viewto ... 12&t=13699 about how to install ClamAV as a service. Note that it doesn't need to run as service. You can as well start it in the background using the supplied chp.exe.

Best regards,

Nico

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-20 11:46

awesome... thanks for the tips i think im nearly there......

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-20 14:18

ok so here is where i am at...... i am very new to all of this so some of the questions might be retardedly simple but seeing as i have only started working on servers and what not im just gonna go for it and ask out right how to get this done!!

Like i said before i am running windows server 2008 R2 with hmailserver and a couple other programs..... the database is a MSSQL 2008 R2 and i have afterlogic running as the webmail.... anyway this is how far i have gotten with all the other parts of the mailserver and now im going about getting security in place and customizing the skin..... like i said beginner but slowly i am starting to get some grip on making everything gel....

so downloaded the ClamAV-096.1 and installed it.... after the installation ran the freshclam.exe and it updated the virus catalogue or whatever it is called. Now i read the other post about how it can be run as a service but i dont really want to do that.... Now i opened the conf files and had a look around and get reminds me a little of PHP.ini files and was wondering if i had to change anything or if the defaults were ok (this is just to get it running at first will then naturally change any settings tht i might need specifically for my mail server but sometime later)...... so this is where i get stuck!!!!

so when all that is done i am assuming all i need to do is run the chp.exe to have it run in the backround and then in hmailserver specify the executable path to C:\clamav\clamd.exe and database path to C:\clamav\data.....

TBH i would rather be able to use clamwin cause i got that to install in like 5 minutes but the eventual goal is to get the server to handle 600 people so needed something more efficient (cause as everyone has already stated it just uses way too much CPU power and the server is going to hopefully be able to run as a VM)... :?

If im right let me kno but im pretty sure im not cause I have been sending a eicar and it gets through every time :x

if i wasnt clear in explaining something just let me know and ill try a make my problem clearer....

any help would be much appreciated

brb

User avatar
tBB
Senior user
Senior user
Posts: 268
Joined: 2009-04-17 18:10
Location: The land of Beer and Sauerkraut!
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by tBB » 2010-07-20 14:35

brb1990 wrote:so when all that is done i am assuming all i need to do is run the chp.exe to have it run in the backround and then in hmailserver specify the executable path to C:\clamav\clamd.exe and database path to C:\clamav\data.....
Reading documentations is not your favorite thing, huh? ;) chp (Create Hidden Process) is just a wrapper which forces clamd/freshclam to run in the background. You have to execute chp with the program that it needs to run as parameter, eg "chp.exe clamd.exe" but I'd suggest to start clamd.exe without chp once to verify that it works correctly. The default settings in clamd.conf/freshclam.conf are fine as long as you're using c:\clamav as installation path.
brb1990 wrote:TBH i would rather be able to use clamwin cause i got that to install in like 5 minutes but the eventual goal is to get the server to handle 600 people so needed something more efficient (cause as everyone has already stated it just uses way too much CPU power and the server is going to hopefully be able to run as a VM)...
Installing ClamAV is just as simple as installing ClamWin. Just run the installer, use the default path (c:\clamav), put clamd in your autostart by using chp or use the service mode, set your scheduler to run freshclam periodically (or use it's service mode) and you're done. As for hMS, the only thing you need to do is configuring it to use clamDscan.exe.

Best regards,

Nico

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-20 14:48

dude this is a summer job for me and its been like a major read-athon for me the past 2 and a half weeks..... i had to make one mailserver with a php based webmail and a .NET based one both of which i have never used before and then had to muck about with the MSSQL DBscripts from hmailserver. For which i had no idea how to create all the tables and you are probably right, but at this point im kinda burned out reading documentation cause my brain has melted and is leaking out of my nose..... "nico" i dont kno if you are running a php based webmail like roundcube but just to get that running i think i read a bibles worth of documentation cause there are about 10000000000 people who think they know what they are talking about in terms of PHP and 2 people who actually know what they are talking about.... but anyways its up and running super smooth thanks for the tips much appreciated u saved my clean tshirt from getting dribbled on my my effectivly melted brain..... :D

brb

User avatar
tBB
Senior user
Senior user
Posts: 268
Joined: 2009-04-17 18:10
Location: The land of Beer and Sauerkraut!
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by tBB » 2010-07-20 15:09

brb1990 wrote:"nico" i dont kno if you are running a php based webmail like roundcube but just to get that running i think i read a bibles worth of documentation cause there are about 10000000000 people who think they know what they are talking about in terms of PHP and 2 people who actually know what they are talking about.... but anyways its up and running super smooth thanks for the tips much appreciated u saved my clean tshirt from getting dribbled on my my effectivly melted brain..... :D
:lol:

Actually I'm running a PHP based webmail but I'm working with this stuff way too long to remember how it was when I started :) However, glad that it's running now.

Best regards,

Nico

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-20 15:24

seeing as you know how everything fits together i was wondering if there was anything that i may have left out that i should maybe look into installing or maybe take a closer look at configuring. this is my entire system:

Windows server 2008 R2,
hMailserver (as the mailserver)
Afterlogic Lite as the webmail
MSSQL database
Clamav as the anti virus
I had spamassassin working but found that the built in spam blocker was sufficient
all in all the system works i just dont want to then show the boss and have a big gaping hole somewhere!!!! :shock:

im backing the DB stuff by just mirroring it onto a different drive (Its all in a VM so its pretty easy that way) . I did have one other question concerning where the contact data for hmailsever is being saved. It is in the Data directory under hmailserver on drive C: and i only have a couple of test email accounts on the server at the moment and did the math for how much space 600 accounts would take and i came out with a calculation under 50mb so i was wondering if it was cool to just leave the contact info on the C: drive. And in your case are you backing up the contact information in a DB or do you just do it periodically and just copy them out???

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by Bill48105 » 2010-07-20 15:40

brb1990,
Hate to jump in & add my 2 cents but if their mail & setup are important (and most is or why bother) it'd be good idea to do regular backups of their Data folder and SQL dump/backups in addition to the mirroring.. Just in case, ya know. Mirror won't do much good for anything but hard drive failure as the mirror copy will be 'bad' too for things like accidental deletes, upgrades gone wrong, etc. Anyway, something to think about.
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

User avatar
mattg
Moderator
Moderator
Posts: 20792
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by mattg » 2010-07-20 16:53

brb1990 wrote:I did have one other question concerning where the contact data for hmailsever is being saved.
What 'contact data' are you talking about?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-20 17:21

under path C:\program files (x86)\hmailserver\data\localhost.local(in my case the domain)\(my test accounts....................)

wasnt really sure what they were but considering the files ad the same names as the accounts thought it was the account information....

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-20 17:22

damn just read tht again.... did not mean to say contact data..... i was thinking the account info under the domain folder....

User avatar
mattg
Moderator
Moderator
Posts: 20792
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by mattg » 2010-07-21 03:17

Ok

That's actually where the email messages are stored.
The information about the location of the messages, and the account information is stored on the database
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-21 10:07

OK so now I have moved all the data files onto another drive (D:) and then under C:\program files (x86)\hmailserver\Bin the config file..... changed the paths to correspond with the new locations and then restarted the server so that they would take effect.... the problem is now that everything does get saved into the new location but a copy of the data folder gets created in the old location namely C:\Programfiles (x86)\hmailserver.....

From what "mattg" said the file locations are stored in the database and i have looked everywhere in my MSSQL database manager for a data directory where i can also change it to the new location so that a copy is not created in the old location.....

User avatar
mattg
Moderator
Moderator
Posts: 20792
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by mattg » 2010-07-21 10:49

You also need to update the existing records in the database

http://www.hmailserver.com/documentatio ... _directory
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

mustang
New user
New user
Posts: 11
Joined: 2006-11-08 09:28

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by mustang » 2010-07-21 12:36

Any advice on this database change, wich records/tables have to be modified?

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

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by ^DooM^ » 2010-07-21 13:02

the path in hm_messages, search forum it has been discussed many many times before.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

User avatar
mattg
Moderator
Moderator
Posts: 20792
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by mattg » 2010-07-21 16:19

And it is also detailed in the link I posted
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-22 09:52

so i thought i had it all down yesterday so i moved on to backing stuff up.... but comming back today looking under services clamd.exe wasnt there anymore and i thought tht was strange.... so i installed it as a service again (using InstallUtil.exe out for the run window) and it worked but was only visible in the services window for as short time as clamd *32 and then it disappeared..... so i tried just seeing if clamd.exe would run by itself and same deal only opens for a short time so for good measure i installed it using the chp.exe and same deal under task manager it would be visible for a few seconds then it is gone.... so i looked in the clamd config file and i couldnt find anything that would cause this...

has anyone else had this problem before..... earlier in this thread someone said they had this version running on server 2008 r2 and it ran and ran and ran.... has anyone else had the same problem with ClamAV-096.1 from http://hideout.ath.cx/clamav/.....

User avatar
tBB
Senior user
Senior user
Posts: 268
Joined: 2009-04-17 18:10
Location: The land of Beer and Sauerkraut!
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by tBB » 2010-07-22 10:00

As I've mentioned above, you should start clamd.exe manually once to verify that it's working correctly. Just open a CMD window in the ClamAV folder and start clamd.exe. You should then see what causes the problem. Alternatively you can enable the log in clamd.conf and look there.

Best regards,

Nico

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-22 10:21

sorry i cried wolf again..... spent awhile looking around and found well think i found why..... didnt have the virus catalog updated so clamd didnt have anthing to use.....

User avatar
tBB
Senior user
Senior user
Posts: 268
Joined: 2009-04-17 18:10
Location: The land of Beer and Sauerkraut!
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by tBB » 2010-07-22 10:33

Oh... :roll: You should set the system scheduler to run freshclam regularly, eg once per hour (preferably not at the full hour) or run freshclam as a service too.

Best regards,

Nico

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-22 11:09

ok so its easy to get it to run using the chp but i cant seem to get it to run as a service.... i think this is because it has window...

the create command I am trying to use is:

>sc create clamav binpath= "c:\clamav\chp.exe c:\clamav\clamd.exe"

it creates the service but doesnt let me start it.

i have also tried to do it by just adding:

>sc create clamav binpath= "c:\clamav\clamd.exe

both of which i cannot get to run!!!!!!! :evil:

User avatar
tBB
Senior user
Senior user
Posts: 268
Joined: 2009-04-17 18:10
Location: The land of Beer and Sauerkraut!
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by tBB » 2010-07-22 11:24

clamd.exe --help reveals

Windows Service:
--daemon     Start in Service mode (internal)
--install     Install Windows Service
--uninstall     Uninstall Windows Service

Hint: The same applies to freshclam.exe ;)

Probably I should write a complete howto and ask one of the admins to post it as sticky here because over time it gets somewhat boring to answer the same questions over and over again.

Best regards,

Nico

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-22 11:42

ok i got that bit and works fine..... but i still cant get it to start as a service i get a failure notice that says:

"the service "ClamAV Free Antivirus Scanner Service" could not be started on "Mailserver"

Failure 1053: the service does not answer the start command"

might not be perfect but im translating it from german but failure 1053 is the problem.

starting it as a task works!!! just not as a service......

User avatar
tBB
Senior user
Senior user
Posts: 268
Joined: 2009-04-17 18:10
Location: The land of Beer and Sauerkraut!
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by tBB » 2010-07-22 11:53

Hm. I suspect something with the registry paths under Win64. Could you please add --config-file=c:\clamav\clamd.conf to the command line of the clamd service entry and see if it works then?

Best regards,

Nico

By the way, seeing that you're from Germany you can also PM me in German if that's easier for you. See my location :)

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-22 12:19

ok so it worked like that...... so for anyone that is looking to do the same thing (run clamd.exe as a service) on microsoft server 2008 r2 the working command is:

sc create ClamAV binpath= "c:\clamav\clamd.exe --daemon --config-file=c:\clamav\clamd.conf"

thanks for hte help nico.... one thing I knowticed was that when it was starting itself up it needs a bunch a CPU power so recommend that in the service options under automatic start that the delayed option be used i.e it starts afer the main booting is done so that it has a better chance to load itself without failing.... in the options i also set it to restart loading after it fails twice.... im looking into increasing the timeout times for loading a service once i get that down so that it loads smooth il post tht back up......

User avatar
tBB
Senior user
Senior user
Posts: 268
Joined: 2009-04-17 18:10
Location: The land of Beer and Sauerkraut!
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by tBB » 2010-07-22 12:32

brb1990 wrote:ok so it worked like that...... so for anyone that is looking to do the same thing (run clamd.exe as a service) on microsoft server 2008 r2 the working command is:

sc create ClamAV binpath= "c:\clamav\clamd.exe --daemon --config-file=c:\clamav\clamd.conf"
I thought it. Probably it makes sense to let the internal service installer add that parameter by default. I'll have a look..
brb1990 wrote: thanks for hte help nico.... one thing I knowticed was that when it was starting itself up it needs a bunch a CPU power so recommend that in the service options under automatic start that the delayed option be used i.e it starts afer the main booting is done so that it has a better chance to load itself without failing.... in the options i also set it to restart
The CPU spike you're seeing is the initial loading of the signatures. After that the cpu usage drops down to zero (until something gets scanned, of course).
brb1990 wrote: loading after it fails twice.... im looking into increasing the timeout times for loading a service once i get that down so that it loads smooth il post tht back up......
If you scroll down at my page you'll see a script which adjusts the default service timeout value of Windows. The next ClamAV version will also load the signatures much faster.

Best regards,

Nico

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-22 13:32

awesome thanks for the heads up.... worked like a charm....

User avatar
tBB
Senior user
Senior user
Posts: 268
Joined: 2009-04-17 18:10
Location: The land of Beer and Sauerkraut!
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by tBB » 2010-07-22 19:55

tBB wrote:Probably it makes sense to let the internal service installer add that parameter by default. I'll have a look..
OK, done. I've modified clamd/freshclam's service creation code to include the --config-file=installpath\cfgfile parameter.

By the way, it would be also possible to let the installer create the service if the user likes to. Do you (or anyone else) think I should add that too?

Thanks and best regards,

Nico

DeanoX
Senior user
Senior user
Posts: 480
Joined: 2005-11-05 00:07
Location: Michigan

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by DeanoX » 2010-07-22 20:52

tBB wrote:By the way, it would be also possible to let the installer create the service if the user likes to. Do you (or anyone else) think I should add that too?
Yes, that would be a nice option.

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-23 10:30

So been testing the virus scanner using Eicar and the emails have been getting through (both clamd.exe and freshclam.exe are running as services and both services are running after booting) .... im using the clamwin plug in:

ClamScan Executable: C:\clamav\clamdscan.exe
Path to ClamScan Database: C:\clamav\data

I enabled logging in the conf file and deleted the delete.me files in the folders in clamav.... i cant seem to find what i am missing???

User avatar
tBB
Senior user
Senior user
Posts: 268
Joined: 2009-04-17 18:10
Location: The land of Beer and Sauerkraut!
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by tBB » 2010-07-23 11:03

I suspect something with the call to clamdscan in hMS is wrong. You can temporarily (!) enable "LogClean yes" in clamd.conf. If ClamD logs EICAR as clean (what I doubt) then ClamAV isn't working correctly. If nothing gets logged, nothing was scanned.

Best regards,

Nico

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-23 14:09

So i am pretty sure that nothing is being scanned..... i uncommented LogClean Yes and after sending the mail it still doesn't get picked up.... logging is allowed for both clamd.exe and clamdscan.exe and they update themselves and log the updates and self checks but no mail scans..... tried the clamwin executable and the external executable but both didnt register any scans in the log.....

could this be a permissions problem??? with hmailserver blocking clamav's abilities to scan the mails??

or is it more probable that there is a problem somewhere in the config files for either clamav or hmailser??
bescher wrote:I am running Nico's version of Clamav on a windows 2008 R2 64 bit with no problems at all. It ruins and runs and runs. Matter of fact even the Clamsup update program runs great on it
I was curious if you are running clamd.exe using the chp.exe or as a service??? and if you are running freshclam.exe in windows scheduler??

I am running both as a service.

User avatar
tBB
Senior user
Senior user
Posts: 268
Joined: 2009-04-17 18:10
Location: The land of Beer and Sauerkraut!
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by tBB » 2010-07-23 15:09

Running ClamD/FreshClam as service or by using chp.exe doesn't make the slightest difference in terms of functionality. There is also nothing in the ClamAV cfg files that could cause ClamAV to not scan files at all. To verify that ClamAV is working, get a zipped EICAR e.g. here http://www.aleph-tec.com/eicar/index.php, save it to disk and scan it manually. I bet ClamDScan catches it w/o a problem.

Most probably the problem is somewhere else in your setup. In Settings -> Protocols -> SMTP -> AntiVirus -> External virus scanner make sure that you include "%FILE%" at the end of the clamdscan.exe command line, otherwise hMS just calls clamdscan without any file. Also make sure that the return value is correct. The whole thing is well described here: http://www.hmailserver.com/documentatio ... _antivirus

Best regards,

Nico

bescher
Normal user
Normal user
Posts: 123
Joined: 2008-05-26 01:56
Location: Milwaukee Wi
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by bescher » 2010-07-25 10:18

I am ruuning clamd as a service using srvany,exe


Nico has done a great job with this version
(96)
Bob

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-27 11:55

OK..... i will try installing it as a service using srvany.exe but did u try installing it as a service using sc.exe cause when installed using sc.exe it doesnt show up in the registry therefore u cannot edit it..... should i give up trying to install it using the sc.exe or am i missing something??

User avatar
tBB
Senior user
Senior user
Posts: 268
Joined: 2009-04-17 18:10
Location: The land of Beer and Sauerkraut!
Contact:

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by tBB » 2010-07-27 14:23

Sigh...yes, it seems indeed as if you're missing something. Once again: It doesn't make the slightest difference in terms of ClamAV's functionality if it runs by using svrany, sc, instsrv, powershell, firedaemon, the internal service mode or no service mode at all.

Actually all of these methods are being used by people here at the forum. The only difference of the service mode is that it runs without a user being logged in and that it's restarted in case it fails. You've also told that the service(s) are running well on your machine and log signature updates and stuff.

Did you try downloading a EICAR and scan it locally by using ClamDScan under the same account where hMS is running like I've suggested? Did ClamAV catch it? Yes? Then your ClamAV installation is working perfectly well and you should really start searching for the error somewhere else in your setup.

Perhaps you should try Process Monitor http://technet.microsoft.com/en-us/sysi ... 96645.aspx to check if hMS is accessing ClamDScan at all (what I doubt).

Best regards,

Nico

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-27 14:44

OK.... so i finally got it figured out and everything is running smoothly.... once again just want to say thanks for all the help in getting there.... I have had to write an installation guide for the project in its entirety and have cataloged every step in order to get ClamAV to work in hMailServer for Windows Server 2008 R2 by installing them as services using the sc.exe.... It is currently written in German but seeing as I got so much help in this forum I wouldnt have a problem writing an english version and posting it somewhere..... I cant actually host the content myself but could sent a .pdf by PM to anyone willing to host, if people were tired of answering dumb questions like mine..... its super detailed with screen shots and what not cause i had a hard time finding where a lot of stuff was located in Server 2008 R2.....

let me know...

peace

mustang
New user
New user
Posts: 11
Joined: 2006-11-08 09:28

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by mustang » 2010-07-28 15:07

brb1990 wrote:OK.... so i finally got it figured out and everything is running smoothly.... once again just want to say thanks for all the help in getting there.... I have had to write an installation guide for the project in its entirety and have cataloged every step in order to get ClamAV to work in hMailServer for Windows Server 2008 R2 by installing them as services using the sc.exe.... It is currently written in German but seeing as I got so much help in this forum I wouldnt have a problem writing an english version and posting it somewhere..... I cant actually host the content myself but could sent a .pdf by PM to anyone willing to host, if people were tired of answering dumb questions like mine..... its super detailed with screen shots and what not cause i had a hard time finding where a lot of stuff was located in Server 2008 R2.....

let me know...

peace

Hi brb1990,
Im interested in this english guide, if you can send it to mustang[at]mordamus.nl ill make it public so other people can read it.


Gr,

brb1990
New user
New user
Posts: 23
Joined: 2010-07-19 16:42

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by brb1990 » 2010-07-28 17:17

Not a problem.... Send it by the end of the day....

thedealer
New user
New user
Posts: 7
Joined: 2011-07-14 18:39

Re: Installing Clamav x64bit in Windows Server 2008 r2

Post by thedealer » 2011-07-15 17:40

Sorry for the bumped thread guys, but where is the public english guide now located? I'm new to the forums, so i apologize if I am overlooking something that might be totally obvious. I appreciate any guidance.

Post Reply