ClamAV and Mail Server .NET
First, let us get ClamAV working on the server computer:
- Download ClamAV by SOSDG (4.2 MB);
- Run downloaded executable file, make sure to select Contributed Tools
when selecting install options (by default it is NOT selected), also you may want
to uncheck ClamAV Virus Test Files to avoid warnings from your
other antiviruses, when they detect test viruses...
- Install the package in the default directory (c:\clamav-devel\). I tried drive
D, but it had certain configuration reading problems. I guess, it is better
to keep it on drive C;
- Go to the folder c:\clamav-devel\thirdparty\RunClamd\, go to DOS
prompt, and execute following command:
runclamd -install
It will install the ClamAV scanner as a windows service. It is important to have
it running as a daemon, because otherwise virus scanning is really slow, engine
has to be loaded and unloded each time mail goes through your server (If you do
not see runclamd utility, it means, you did not check Contributed Tools option when
installing ClamAV - see above);
- Run Services from Control Panel - Administrative Tools, find the service
Run Clamd, make its startup type Automatic (Properties dialog),
so that it starts up itself when windows reboots, and start it;
Now we are ready to enable ClamAV in our mail server:
- Run mail server UI;
- Go to Security - Anti Spam - AntiVirus - ClamAV Antivirus, enable antivirus,
and along with other options specify the path to the ClamAV (by default, it is c:\clamav-devel\).
Now you are safe... Don't forget to run freshclam.exe utility in
c:\clamav-devel\bin directory to keep your
virus definitions up to date!
Back to the list of documents
Back to the Mail Server .NET FAQ
Back to the Mail Server .NET