ClamAV Win32
From ASSPSMTP
On This Page |
Installing ClamAV and the Clamd Service on Win32.
Downloads
- clamAV.msi Requires .NET 2.0
- Website: http://w32.clamav.net/
As of version 0.92 ClamAV uses the pthreads API, which must be installed separately!
- Downloaded the latest pthread API dll from here and then place it in the
C:\Program Files\clamAV\directory. That's it!
Either Runclamd or the PowerTools package are required along with the ClamAV software
- Alternately you can use the PowerTools package available here.
- Free for personal use, commercial licenses are available via the contact information provided on the site.
ClamAV
Installation
- Install clamAV.msi with the default options.
- For this example we will use
C:\Program Files\clamAV\, You can change the install path if you like. - You will need to change the "TemporaryDirectory" in
C:\Program Files\clamAV\conf\clamd.confto the Windows Temp directory:
- Windows Server 2003
-
TemporaryDirectory "C:\Windows\Temp"
- Windows Server 2000, NT4
-
TemporaryDirectory "C:\WINNT\Temp"
- For this example we will use
- Note: There is no equals sign, you cannot use system variables, and the directory should be in quotes.
Configuration
Before going any further we need to disable some options in the default configuration that can cause performance issues on email servers.
- Open
C:\Program Files\clamAV\conf\clamd.confin notepad or another text editor.
- Search for
PhishingScanURLsandMailFollowURLs.
- We need to change them so they both read no.
- Your end result should look like this:
MailFollowURLs no
PhishingScanURLs no
Windows Service
For running the windows service you can use Runclamd or PowerTools.
Runclamd
- Extract
runclamd.ziptoC:\Program Files\clamAV\ - Open
C:\Program Files\clamAV\runclamd.ini- Locate
PathToClamd=c:\clamav-devel\bin\clamd.exe
- Change to
-
PathToClamd=C:\Program Files\clamAV\clamd.exe
-
- Save file and close
- Locate
- Install service
"C:\Program Files\clamAV\runclamd.exe" -install
- Make service startup on reboots
- Click Start, and then click Run.
- In the Open field type services.msc, click OK
- Find the "Run Clamd" service.
- Change Startup Type to Automatic.
- On the Log On Tab make sure Local System Account is checked.
- Start the service.
Powertools
- Install PowerTools.msi with default setting. (Same directory as ClamAV)
- In the Open field type services.msc, click OK".
- Find the "ClamAV" service.
- Startup Type Should already be set to Automatic.
- Start the service.
ASSP Configuration
- In the ASSP administration interface make sure the AvClamdPort is set to 3310
AvClamdPort = 3310
- Restart ASSP
- Watch those viruses get blocked
Update virus signatures
- You can create a scheduled task to run Freshclam.exe a few times a day to update the signatures for you.
- Command to run:
-
C:\Program Files\clamAV\freshclam.exe
- In addition to the normal ClamAV signatures you may with to use the SaneSecurity signatures which contain signatures for phishing, scam, and image spam emails.
- Install instructions for the sync script can be found here ClamAV SaneSecurity Signatures
Obligatory Disclaimer
These instructions are tested on Server 2003 Standard. I can not verify they will work for other versions of windows. --Geniusfreak


