Auction Profits Unleashed

Saturday 16 June 2007

WARNING: Your ClamAV installation is OUTDATED!

Had a nice bit of regular work to do today - MailScanner Logwatch reported:
 
    WARNING: Your ClamAV installation is OUTDATED!
    WARNING: Local version: 0.90.2 Recommended version: 0.90.3
    DON'T PANIC! Read http://www.clamav.net/support/faq
 
Now I don't believe the information provided at the ClamAV support FAQ is very clear for users with a mailscanner setup, so I thought I might give a quick tutorial here.
 
First of all go to http://clamav.net and download the latest stable ClamAV distribution. While the development releases are available via svn, unfortunately, you have to go to sourceforge.net to get the production quality releases. Download the tar-ball from Sourceforge (clamav-0.90.3.tar.gz in this case). If your server is not local you will have to upload this tar-ball via ftp a directory on your server.
 
1. The first job is to back up your configuration files - I stick the copies in the backup folder for convenience,
cp /usr/local/etc/clamd.conf /backup/clamd.conf
cp /usr/local/etc/freshclam.conf /backup/freshclam.conf
 
2. In the directory in which you placed the tar-ball, you need to expand the distribution,
tar -xzf clamav-xxx.tar.gz (the xxx is replaced by the version of the distribution 0.90.3 here giving tar -xzf clamav-0.90.3.tar.gz)
 
3. Go into the expanded directory and run the install,
cd clamav-xxx (this version cd clamav-0.90.3)
./configure --disable-zlib-vcheck (parameters are not always needed - include them just in case)
make
make install
 
4. Copy your configuration files back,
cp /backup/clamd.conf /usr/local/etc/clamd.conf
cp /backup/freshclam.conf /usr/local/etc/freshclam.conf
 
5. (If you are using the perl clamav module (that would be unusual with a mailscanner install), update it now
/scripts/perlinstaller --force Mail::ClamAV) Otherwise, run freshclam to get up to date definitions,
freshclam
 
6. Restart MailScanner,
service MailScanner restart
 
You logwatch will report the outdated warning one more time as it appears to give the version details from the last time it was run (at the top, it states "Date Range Processed: yesterday"), but after that you will only see the main.cvd and daily.inc status messages.
 
You might want to bookmark this post as version 0.91.0 is coming soon!! 
 
Have a virus free day!!
 

1 comment:

Anonymous said...

Thank you so much; as Linux newbie this was a annoying problem for me but now I know how to fix it... Thanks thanks thanks!!!!