Setting up ClamAV

"Clam Antivirus is a GPL anti-virus toolkit for UNIX. The main purpose of this software is the integration with mail servers (attachment scanning). The package provides a flexible and scalable multi-threaded daemon, a command line scanner, and a tool for automatic updating via Internet. The programs are based on a shared library distributed with the Clam Antivirus package, which you can use with your own software. Most importantly, the virus database is kept up to date ."

Quoted from the Clam Antivirus website at http://www.ClamA V.net

By default amavisd calls ClamAV to scan e-mails that come in. ClamAV can be contacted either via a network port or a local socket (a special file). By default it uses a TCP socket which amavisd is already set up for.

ClamAV at this point isn't configured to run as a service, so fire up YaST, select System then System Services (RunLevel)

Clamav Gateway

Scroll down to the clamd service and click Enable. Click OK to the message pop-up.

To make sure the virus signature database gets updated, you will also need to enable the freshclam service, listed further down.

After enabling both services click Finish then Yes to save changes and close YaST.

By default freshclam will check for updates every 2 hours via HTTP, which can be changed by editing the file /etc/freshclam.conf accordingly and re-starting the service by running /etc/init.d/freshclam restart

If you need to go via a proxy, edit /etc/freshclam.conf, scroll down to the # Proxy Settings section and edit the settings as required. An example might look like:

# Proxy settings

# Default: disabled HTTPProxyServer proxy.com HTTPProxyPort 8080 HTTPProxyUsername myusername HTTPProxyPassword mypass

You can also check to ensure the updates are working by running cat /var/log/mail in a terminal and looking for freshclam notices.

Was this article helpful?

0 0
How To Protect Yourself From Spyware and Adware

How To Protect Yourself From Spyware and Adware

If you don't have any knowledge about adware/spyware completely taking over your computer. This letter will be the most important one that you've ever read. Never Worry About Someone Watching Your Each-And-Every Move Online, Educate Yourself With This Hard Hitting E-Book That Will Leave No Stone Unturned About Adware/Spyware.

Get My Free Ebook


Post a comment