Difference between revisions of "ClamAV - Updating clamd for releases earlier than ZCS 8.0.6"

(Created page with "{{Archive}}{{Article Infobox|{{admin}}||{{ZCS 8.0}}|}}For those using ZCS 8.0.6 and prior, come 22 October 2016 anti-virus definitions will no longer update AND '''your ClamAV...")
 
Line 1: Line 1:
{{Archive}}{{Article Infobox|{{admin}}||{{ZCS 8.0}}|}}For those using ZCS 8.0.6 and prior, come 22 October 2016 anti-virus definitions will no longer update AND '''your ClamAV instance will stop working entirely'''.
+
{{BC|Certified}}
 +
__FORCETOC__
 +
<div class="col-md-12 ibox-content">
 +
=ClamAV - Updating clamd for releases earlier than ZCS 8.0.6 =
 +
{{KB|{{ZC}}|{{ZCS 8.0}}|{{ZCS 7.0}}||}}
  
EOL Source: http://blog.clamav.net/2016/05/clamav-097-engine-end-of-life.html
+
For those using ZCS 8.0.6 and prior, come 22 October 2016 anti-virus definitions will no longer update AND '''your ClamAV instance will stop working entirely'''.
 +
*EOL Source: http://blog.clamav.net/2016/05/clamav-097-engine-end-of-life.html
  
 
==Preventative methods==
 
==Preventative methods==
-Update ZCS to a newer version.
+
* Update ZCS to a newer version.
 
+
* Update just the ClamAV component.
-Update just the ClamAV component.
 
  
 
==Past EOL ?==
 
==Past EOL ?==
 +
===Turn off ClamAV from your Admin Console===
 +
Go to Server > Services 'as/av' tab > uncheck av.
 +
===Via CLI===
 +
Run the next commands as zimbra user (The minus sign is important, or you'll leave nothing but av running.):
 +
zmprov ms `zmhostname` -zimbraServiceEnabled Antivirus.
 +
zmamavisdctl reload
  
-Turn off ClamAV from your admin console > server > services 'as/av' tab > uncheck av. Via CLI it's zmprov ms `zmhostname` -zimbraServiceEnabled Antivirus. (The minus sign is important, or you'll leave nothing but av running.) Then zmamavisdctl reload. (This may leave you more vulnerable of course.)
+
'''(This may leave you more vulnerable of course.)'''
 
 
-Update just the ClamAV component.
 
  
 
==Manual ClamAV component upgrade:==
 
==Manual ClamAV component upgrade:==
 
 
Zimbra includes ClamAV 0.98.4 as of ZCS 8.0.7+.  The clamav-0.95.1 directory from an installed ZCS 8.0.7 or later installation can be copied directly to an earlier ZCS 8.0/7.2.x server.  To upgrade ClamAV, perform the following steps:
 
Zimbra includes ClamAV 0.98.4 as of ZCS 8.0.7+.  The clamav-0.95.1 directory from an installed ZCS 8.0.7 or later installation can be copied directly to an earlier ZCS 8.0/7.2.x server.  To upgrade ClamAV, perform the following steps:
 
 
===Downloads===
 
===Downloads===
Redhat 6.x: [https://files.zimbra.com/downloads/clamav/rhel6_64/clamav-0.98.4.tar.gz clamav-0.98.4.tar.gz] [https://files.zimbra.com/downloads/clamav/rhel6_64/clamav-0.98.4.tar.gz.md5 md5] [https://files.zimbra.com/downloads/clamav/rhel6_64/clamav-0.98.4.tar.gz.sha256 sha256]<br>
+
* Redhat 6.x: [https://files.zimbra.com/downloads/clamav/rhel6_64/clamav-0.98.4.tar.gz clamav-0.98.4.tar.gz] [https://files.zimbra.com/downloads/clamav/rhel6_64/clamav-0.98.4.tar.gz.md5 md5] [https://files.zimbra.com/downloads/clamav/rhel6_64/clamav-0.98.4.tar.gz.sha256 sha256]<br>
 
+
* CentOS 6.x: [https://files.zimbra.com/downloads/clamav/rhel6_64/clamav-0.98.4.tar.gz clamav-0.98.4.tar.gz] [https://files.zimbra.com/downloads/clamav/rhel6_64/clamav-0.98.4.tar.gz.md5 md5] [https://files.zimbra.com/downloads/clamav/rhel6_64/clamav-0.98.4.tar.gz.sha256 sha256]<br>  
CentOS 6.x: [https://files.zimbra.com/downloads/clamav/rhel6_64/clamav-0.98.4.tar.gz clamav-0.98.4.tar.gz] [https://files.zimbra.com/downloads/clamav/rhel6_64/clamav-0.98.4.tar.gz.md5 md5] [https://files.zimbra.com/downloads/clamav/rhel6_64/clamav-0.98.4.tar.gz.sha256 sha256]<br>  
+
* SLES 11 64-bit: [https://files.zimbra.com/downloads/clamav/sles11_64/clamav-0.98.4.tar.gz clamav-0.98.4.tar.gz] [https://files.zimbra.com/downloads/clamav/sles11_64/clamav-0.98.4.tar.gz.md5 md5] [https://files.zimbra.com/downloads/clamav/sles11_64/clamav-0.98.4.tar.gz.sha256 sha256]<br>
 
+
* Ubuntu 10.04 64-bit: [https://files.zimbra.com/downloads/clamav/ubuntu10_64/clamav-0.98.4.tar.gz clamav-0.98.4.tar.gz] [https://files.zimbra.com/downloads/clamav/ubuntu10_64/clamav-0.98.4.tar.gz.md5 md5] [https://files.zimbra.com/downloads/clamav/ubuntu10_64/clamav-0.98.4.tar.gz.sha256 sha256]<br>
SLES 11 64-bit: [https://files.zimbra.com/downloads/clamav/sles11_64/clamav-0.98.4.tar.gz clamav-0.98.4.tar.gz] [https://files.zimbra.com/downloads/clamav/sles11_64/clamav-0.98.4.tar.gz.md5 md5] [https://files.zimbra.com/downloads/clamav/sles11_64/clamav-0.98.4.tar.gz.sha256 sha256]<br>
+
* Ubuntu 12.06 64-bit: [https://files.zimbra.com/downloads/clamav/ubuntu12_64/clamav-0.98.4.tar.gz clamav-0.98.4.tar.gz] [https://files.zimbra.com/downloads/clamav/ubuntu12_64/clamav-0.98.4.tar.gz.md5 md5] [https://files.zimbra.com/downloads/clamav/ubuntu12_64/clamav-0.98.4.tar.gz.sha256 sha256]<br>
 
 
Ubuntu 10.04 64-bit: [https://files.zimbra.com/downloads/clamav/ubuntu10_64/clamav-0.98.4.tar.gz clamav-0.98.4.tar.gz] [https://files.zimbra.com/downloads/clamav/ubuntu10_64/clamav-0.98.4.tar.gz.md5 md5] [https://files.zimbra.com/downloads/clamav/ubuntu10_64/clamav-0.98.4.tar.gz.sha256 sha256]<br>
 
 
 
Ubuntu 12.06 64-bit: [https://files.zimbra.com/downloads/clamav/ubuntu12_64/clamav-0.98.4.tar.gz clamav-0.98.4.tar.gz] [https://files.zimbra.com/downloads/clamav/ubuntu12_64/clamav-0.98.4.tar.gz.md5 md5] [https://files.zimbra.com/downloads/clamav/ubuntu12_64/clamav-0.98.4.tar.gz.sha256 sha256]<br>
 
  
 
===Other methods to obtain===
 
===Other methods to obtain===
1.  Install a new server with a later release of ZCS or use the above links.  The Free Open-Source release of ZCS is available at http://www.zimbra.com/downloads/os-downloads.html.  This document was tested with 8.5.1 (8.0.9 for Ubuntu 10), but any release starting with 8.0.7 or later will work.
+
* Install a new server with a later release of ZCS or use the above links.  The Free Open-Source release of ZCS is available at http://www.zimbra.com/downloads/os-downloads.html.  This document was tested with 8.5.1 (8.0.9 for Ubuntu 10), but any release starting with 8.0.7 or later will work.
2.  After the installation is complete, tar up clamav-0.95.1 on the new server:
+
* After the installation is complete, tar up clamav-0.95.1 on the new server:
 
  cd /opt/zimbra
 
  cd /opt/zimbra
 
  tar cf /tmp/clamav-0.98.4.tar clamav-0.98.4
 
  tar cf /tmp/clamav-0.98.4.tar clamav-0.98.4
  
 
===The Actual Update Instructions===
 
===The Actual Update Instructions===
3.  Copy this tar file to your existing ZCS server.
+
* Copy this tar file to your existing ZCS server.
 
  cd /opt/zimbra
 
  cd /opt/zimbra
 
  scp ''user''@''server'':/tmp/clamav-0.98.4.tgz.
 
  scp ''user''@''server'':/tmp/clamav-0.98.4.tgz.
4.  Untar the file.
+
* Untar the file.
 
  tar xzf clamav-0.98.4.tgz
 
  tar xzf clamav-0.98.4.tgz
5.  Stop ZCS services.
+
* Stop ZCS services.
 
  zmcontrol stop
 
  zmcontrol stop
6.  Change the symbolic link
+
* Change the symbolic link
 
  rm clamav
 
  rm clamav
 
  ln -s clamav-0.98.4 clamav
 
  ln -s clamav-0.98.4 clamav
Line 49: Line 51:
 
The output line will look similar to:
 
The output line will look similar to:
 
  lrwxrwxrwx  1 root root 25 Apr  9 15:39 clamav -> /opt/zimbra/clamav-0.98.4
 
  lrwxrwxrwx  1 root root 25 Apr  9 15:39 clamav -> /opt/zimbra/clamav-0.98.4
7.  Start services.
+
* Start services.
 
  zmcontrol start
 
  zmcontrol start
  
 
===Confirm===
 
===Confirm===
 
You can confirm that the new version of ClamAV is running by checking /opt/zimbra/log/clamd.log.  The most recent startup in the log should look similar to:
 
You can confirm that the new version of ClamAV is running by checking /opt/zimbra/log/clamd.log.  The most recent startup in the log should look similar to:
Sat Oct 22 18:42:31 2016 -> +++ Started at Sat Oct 22 18:42:31 2016
+
Sat Oct 22 18:42:31 2016 -> +++ Started at Sat Oct 22 18:42:31 2016
Sat Oct 22 18:42:31 2016 -> clamd daemon 0.98.4 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
+
Sat Oct 22 18:42:31 2016 -> clamd daemon 0.98.4 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
  
Test send-recieve of mail.
+
Test send-receive of mail.
  
 
With ClamAV 0.98 in place, updates should continue uninterrupted after October 22, 2016, and your system will remain protected.
 
With ClamAV 0.98 in place, updates should continue uninterrupted after October 22, 2016, and your system will remain protected.
  
 
This procedure was tested using ZCS 8.5.1 (and ZCS 8.0.9 for Ubuntu 10).
 
This procedure was tested using ZCS 8.5.1 (and ZCS 8.0.9 for Ubuntu 10).
 
  
 
{{Article Footer|ZCS 8.0.9 & 8.5.1|10/22/2016}}
 
{{Article Footer|ZCS 8.0.9 & 8.5.1|10/22/2016}}

Revision as of 22:29, 23 October 2016

ClamAV - Updating clamd for releases earlier than ZCS 8.0.6

   KB 23065        Last updated on 2016-10-23  




0.00
(0 votes)

For those using ZCS 8.0.6 and prior, come 22 October 2016 anti-virus definitions will no longer update AND your ClamAV instance will stop working entirely.

Preventative methods

  • Update ZCS to a newer version.
  • Update just the ClamAV component.

Past EOL ?

Turn off ClamAV from your Admin Console

Go to Server > Services 'as/av' tab > uncheck av.

Via CLI

Run the next commands as zimbra user (The minus sign is important, or you'll leave nothing but av running.):

zmprov ms `zmhostname` -zimbraServiceEnabled Antivirus. 
zmamavisdctl reload

(This may leave you more vulnerable of course.)

Manual ClamAV component upgrade:

Zimbra includes ClamAV 0.98.4 as of ZCS 8.0.7+. The clamav-0.95.1 directory from an installed ZCS 8.0.7 or later installation can be copied directly to an earlier ZCS 8.0/7.2.x server. To upgrade ClamAV, perform the following steps:

Downloads

Other methods to obtain

  • Install a new server with a later release of ZCS or use the above links. The Free Open-Source release of ZCS is available at http://www.zimbra.com/downloads/os-downloads.html. This document was tested with 8.5.1 (8.0.9 for Ubuntu 10), but any release starting with 8.0.7 or later will work.
  • After the installation is complete, tar up clamav-0.95.1 on the new server:
cd /opt/zimbra
tar cf /tmp/clamav-0.98.4.tar clamav-0.98.4

The Actual Update Instructions

  • Copy this tar file to your existing ZCS server.
cd /opt/zimbra
scp user@server:/tmp/clamav-0.98.4.tgz.
  • Untar the file.
tar xzf clamav-0.98.4.tgz
  • Stop ZCS services.
zmcontrol stop
  • Change the symbolic link
rm clamav
ln -s clamav-0.98.4 clamav
ls -l clamav

The output line will look similar to:

lrwxrwxrwx  1 root root 25 Apr  9 15:39 clamav -> /opt/zimbra/clamav-0.98.4
  • Start services.
zmcontrol start

Confirm

You can confirm that the new version of ClamAV is running by checking /opt/zimbra/log/clamd.log. The most recent startup in the log should look similar to:

Sat Oct 22 18:42:31 2016 -> +++ Started at Sat Oct 22 18:42:31 2016
Sat Oct 22 18:42:31 2016 -> clamd daemon 0.98.4 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)

Test send-receive of mail.

With ClamAV 0.98 in place, updates should continue uninterrupted after October 22, 2016, and your system will remain protected.

This procedure was tested using ZCS 8.5.1 (and ZCS 8.0.9 for Ubuntu 10).

Verified Against: ZCS 8.0.9 & 8.5.1 Date Created: 10/22/2016
Article ID: https://wiki.zimbra.com/index.php?title=ClamAV_-_Updating_clamd_for_releases_earlier_than_ZCS_8.0.6 Date Modified: 2016-10-23



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search