Update manual do Clamav no Zimbra

De Wiki Hackstore

Caso o clamav do Zimbra esteja desatualizado, basta fazer o update manual:

/opt/zimbra/data/clamav/db/
ou
/opt/zimbra/clamav/db/


> /opt/zimbra/log/clamd.log


yum groupinstall 'Development Tools'

yum install  libxml2-devel openssl-devel w3m

w3m 'https://www.clamav.net/downloads/production/clamav-0.99.2.tar.gz'

tar xzvpf clamav-0.99.2.tar.gz ; cd clamav-0.99.2

./configure --prefix=/opt/zimbra/clamav-0.99.2 --with-user=zimbra --with-group=zimbra

make

make check

make install


chown -R zimbra:zimbra /opt/zimbra/clamav-0.99.2

cd /opt/zimbra; rm clamav ; ln -s /opt/zimbra/clamav-0.99.2 clamav


su - zimbra

cd /opt/zimbra/clamav-0.99.2/etc/

cp /opt/zimbra/conf/clamd.conf . -p

cp /opt/zimbra/conf/freshclam.conf . -p

mkdir /opt/zimbra/clamav/db

mv /opt/zimbra/data/clamav/db /opt/zimbra/data/clamav/db-old

mkdir /opt/zimbra/data/clamav/db

chmod a+r /opt/zimbra/clamav/etc/freshclam.conf

zmantivirusctl stop

zmfreshclamctl start




/etc/init.d/zimbra stop

pkill -u zimbra

kill -9 <all process clamd>

/etc/init.d/zimbra start