I suppose then that I am mostly to blame. Being held up entirely by other projects, I haven't kept my mail server up to date. Is there a yum repo for zimbra?
Release 4.5.6_GA_1044.RHEL5_20070706174250 CentOS5{i} FOSS edition
I know my signatures are kept up to date, but the clam software itself needs updating.. It would still be nice if zimbra told the admin in advance before this happens. Could also show when zimbra update packages are available, or had an option to force clam to run with an out of date engine. It wouldn't have been so bad, if it just used the old anti-virus. The problem was that it wouldn't attache amavisd to port 10024, so postfix had to defer the mail.
Anyway, if there are others who find themselves in a jam, and need a quick fix. I'll provide a clam upgrade script... Use it at your own risk, or better yet just use it for reference only!
Code:
#!/bin/bash
#
#
# !!!!!! WARNING !!!!!!!!!!
# This script is absolutely untested. I wrote it after the fact
# as reference, for the next time this happens. I repeat I have
# not actually tested to see if it even runs. You probobly want
# to just run through the steps manually to prevent harming your
# system... Again, this script took 2 minutes to write, and has
# never been tested, and there absolutely no error checking.
#
# Otherwise, if you really want to run it, uncomment the exit
# satement.
#
# Anonomous - 20071119
#
##################################################################
exit
NOW=date +%Y%m%d%H%M%S
BUILDDIR=${NOW}_clamav_build
ClamVer="clamav-0.91.2"
ClamURL="http://easynews.dl.sourceforge.net/sourceforge/clamav/clamav-0.91.2.tar.gz"
echo "Installing dependencies if nessesary"
yum -y install gcc glibc zlib-devel gmp-devel bzip2-devel
echo "Preparing Source"
mkdir ${BUILDDIR} && cd ${BUILDDIR}
wget ${ClamURL}
tar -zxvf ${ClamVer}.tar.gz
cd ${ClamVer}
echo "==== Building and Installing ClamAV ===="
./configure --prefix=/opt/zimbra/${ClamVer} --with-user=zimbra --with-group=zimbra
make && make check && make install
chown -R zimbra:zimbra /opt/zimbra/${ClamVer}
cd /opt/zimbra/${ClamVer}/etc
mv clamd.conf clamd.conf.orig
mv freshclam.conf freshclam.conf.orig
cp /opt/zimbra/conf/clamd.conf .
cp /opt/zimbra/conf/freshclam.conf .
sudo -u zmcontrol stop
cd /opt/zimbra
unlink clamav
ln -s ${ClamVer} clamav
echo "==== Freshen ========="
sudo -u zimbra /opt/zimbra/clamav/bin/freshclam
echo "===== Starting Zimbra ======="
echo " If it doesn't work, try a reboot"
sudo -u zimbra zmcontrol start