This article describes how to install and configure the latest ClamAV on Insight Server.
This article describes the specific action how to compile ClamAV for use with Insight Server. This article is not intended to replace the ClamAV documentation, please consult the ClamAV documentation for compiler requirements and prerequisites.
1. Download and extract the latest version of ClamAV:
http://sourceforge.net/projects/clamav/files/
NOTE:Before you begin, make sure that you have zlib and zlib-devel packages installed on your system.
1. To install zlib and zlib-devel on a Red Hat based server, type the following commands:
# yum install zlib zlib-devel <enter>
2. To install zlib and zlib-devel on a Debian based server, type the following commands:
# apt-get install zlib1g zlib1g-dev <enter>
2. Log into the Insight Server admin interface and disable your content filter
1. Go to: Configuration > Services > Postfix
2. Scroll down to the section heading UCE Controls (SPAM)
3. Uncheck the item content filter
4. Scroll down to the bottom of the page and select the Restart button to restart Postfix.
3. Compile and Install ClamAV
On your server's command line, in the folder you extracted the ClamAV source to. Execute the below commands.
# CFLAGS="-I/opt/insight/include -lpthread" LDFLAGS="-L/opt/insight/lib" ./configure --prefix=/opt/insight --with-user=amavis --with-group=amavis --disable-zlib-vcheck
# make <enter>
# make install <enter>
4. Changing the configuration file
Note:Some of the configuration parameters have changed in the latest versions of ClamAV.
1. Open /opt/insight/etc/clamd.conf in a text editor
2. Comment the following two lines by adding a # at the beginning of the line.
Line 73: #FixStaleSocket
Line 226: #ArchiveMaxFileSize 20M
3. Save and exit the text file.
5. Verify that the clamd.log has the proper ownership.
1. On the server's command line, type the following:
# chown amavis.amavis /opt/insight/logs/clamd.log
6. Run ldconfig to update your dynamic linker run-time bindings.
# ldconfig
7. To verify that Clam Antivirus has been updated run:
# /opt/insight/sbin/clamd --version
8. Run FreshClam
# /opt/insight/bin/freshclam
9. Go back into the Insight Server admin interface and re-enable the content filter under the heading UCE Control (SPAM)
1. Go to: Configuration > Services > Postfix
2. Scroll down to the section heading UCE Controls (SPAM)
3. Check the item content filter
4. Scroll down to the bottom of the page and select the Restart button to restart Postfix.
Your installation is complete. |