Help - Search - Members - Calendar
Full Version: HowTo Upgrade ClamAV to 0.84 for Ensim Pro
The Planet Forums > Control Panels > Ensim > Ensim HOWTOs
sushil2000
If you are getting the below messages in your "/tmp/ClamAV.update.log" file then its time to update clamav to take advantage of the latest functionality level:

CODE
ClamAV update process started at Tue May 10 13:11:01 2005

WARNING: Your ClamAV installation is OUTDATED - please update immediately!

WARNING: Local version: 0.80 Recommended version: 0.84

main.cvd is up to date (version: 31, sigs: 33079, f-level: 4, builder: tkojm)

WARNING: Your ClamAV installation is OUTDATED - please update immediately!

WARNING: Current functionality level = 3, required = 4

daily.cvd is up to date (version: 875, sigs: 1218, f-level: 4, builder: diego)

WARNING: Your ClamAV installation is OUTDATED - please update immediately!

WARNING: Current functionality level = 3, required = 4


The below clamav RPMS were recompiled from Source RPMS available from dag.wieers.com on RHEL3 . The process is outlined at: linuxweblog.com

md5sums and RPMS:

* 98e0a922c191dc087d98f843b9d2871e -- clamav-0.84-1.rf.i386.rpm
* 843f2d6fa41a5db8881ac0e59b3ff291 -- clamav-db-0.84-1.rf.i386.rpm
* fd39dce7fbe28b19360f8ef457d0d18c -- clamav-devel-0.84-1.rf.i386.rpm
* dd41858612cbcd8acf19e60c97a37321 -- clamd-0.84-1.rf.i386.rpm

Install via:
# rpm -Uvh clam*.rpm

Note: Since Ensim Pro uses MailScanner only clamav and clamav-db packages are required.

After Install:
1. Merge the "/etc/freshclam.conf" file with the "freshclam.conf.rpmnew" .
2. Remove the daily freshclam cron as MailScanner takes care of updating the ".cvd" database hourly.
3. In MailScanner.conf, check the setting of 'Monitors for ClamAV Updates' to ensure it matches the location of your ClamAV virus database files. (May need to change from "/var/lib/clamav" to "/var/clamav")
4. Restart MailScanner.
FaSan
Fedora Core 1 :


error: Failed dependencies:
libcom_err.so.3 is needed by clamav-0.84-1.rf
libcom_err.so.3 is needed by clamd-0.84-1.rf



FaSan
sushil2000
You may want to download the rpms compiled for fedora 1 from http://dag.wieers.com/packages/clamav/
REBIS
FYI, this version of ClamAV is already outdated:

#freshclam
ClamAV update process started at Wed May 11 17:59:50 2005
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.84 Recommended version: 0.85
polystigma
.84 must have just expired as dag.wieers doesnt have .85 RPM's yet.
Rebis - the upgrade to .85 will as simple as the .84 we just did a few days ago icon_wink.gif In this case NO config file mods will need to be done.
clanscc
When you think the rpms will be out?
polystigma
Dont know the answer to that, but you can keep checking here:
http://dag.wieers.com/packages/clamav/
he will post them as soon as they are available. Usually pretty quick about it, so i would keep checking over the next few days.
clanscc
Thanks.
sushil2000
Rebuilt from 0.85 source for RHEL3:

md5sums and downloads:

538db6cebe88fb8821e38e22eaf45408 -- clamav-0.85-1.ss.i386.rpm
c30e9ec48c30feda6c6fd4b0598a4a87 -- clamav-db-0.85-1.ss.i386.rpm
81182fd78caa0943fcf066bb7bca0d37 -- clamav-devel-0.85-1.ss.i386.rpm
06ec7fba19323eebf383b63c99c0ed69 -- clamd-0.85-1.ss.i386.rpm
polystigma
thanks sushil2000,
but i think im going to see if Dag makes his in a few days, as I know for a fact that I dont have any issue installing his rpms.
---just me being consistant

If anyone else jumps on this bandwagon, please let us know
sushil2000
I have used dags spec file with the current 0.85 release to rebuild it.

Also upgraded mine and seems to be doing fine. There were just some bug fixes in the current release.
polystigma
QUOTE
I have used dags spec file with the current 0.85 release to rebuild it.  

Also upgraded mine and seems to be doing fine. There were just some bug fixes in the current release.


thanks!
imcomguy
0.85 RPM's = flawless.

Great job, and thanks!
abubin
any 0.85 rpm for fedora1?

found this rpm for fedora1, can i upgrade with this package? Anyone tried this package on ensimized clamav?

http://rpm.pbone.net/index.php3/stat/4/idp...t.i386.rpm.html
sushil2000
It shouldn't be a problem and you do not need to change the database path either.
abubin
updated using rpm packages from http://dag.wieers.com/packages/clamav/?D=A

but when i did

[root]clamd -V
clamd / ClamAV version 0.75

and idea? clamd service is stopped as well, do i need to start it? if i remember correctly, mailscanner does not need clamd to be running.

using fedora1 with ensim 4.0.3

edit :

Found out about the problem. For those using Fedora1 of ensim, the rpm maintained by dag will install clamav into different folder. So, it's incompatible with ensim fedora1. You will need to get package from here which is compatible :

http://crash.fce.vutbr.cz/crash-hat/1/clamav/
abubin
can i know how i can retrieve the "freshclam" file in /etc/cron.daily?

I deleted it cause i was using mailscanner but now i need it cause i am using clamav-milter...

thanks in advance.
sushil2000
If you are using dags rpm then the below is what it contains:
CODE
#!/bin/sh



### A simple update script for the clamav virus database.

### This could as well be replaced by a SysV script.



### fix log file if needed

LOG_FILE="/var/log/clamav/freshclam.log"

if [ ! -f "$LOG_FILE" ]; then

   touch "$LOG_FILE"

   chmod 644 "$LOG_FILE"

   chown clamav.clamav "$LOG_FILE"

fi



/usr/bin/freshclam

   --quiet

   --datadir="/var/clamav"

   --log="$LOG_FILE"

   --log-verbose

   --daemon-notify="/etc/clamd.conf"
polystigma
New one out today/yesterday.....
ClamAV 0.85.1

get em at dags place

something i found that makes managing this a bit easier:
WebMin module for clamav: http://wbmclamav.labs.libre-entreprise.org/
maf
QUOTE (polystigma)
something i found that makes managing this a bit easier:
WebMin module for clamav: http://wbmclamav.labs.libre-entreprise.org/


This looks like a great module but I can't find any info on how to actually install and run it. Can you shed some light on this?

Mark
Carteluo
QUOTE (maf)
This looks like a great module but I can't find any info on how to actually install and run it. Can you shed some light on this?

Mark


It's so easy.. go to webmin -> Webmin Configuration -> Webmin Modules

Here upload the .wbm.gz clamav module (From uploaded file) then hit Install Module and that's it!! cool.gif

You will find it under system...

Cheers
anu_spg
cannot restart clamav-milter on my system ( Upgraded to 0.85)

I did it followed the instructions above. When I check the staus it :

# service clamav-milter status
clamav-milter dead but subsys locked


And when restart :

# service clamav-milter restart
Stopping Clamav Milter Daemon: [FAILED]
Starting Clamav Milter Daemon: [ OK ]

and when I checked the status again it still dead :

# service clamav-milter status
clamav-milter dead but subsys locked


I used clamav-0.85.1-1.0.rh7.rf.i386.rpm.

How to fix or enable it. Please anyone...


Thanks.
REBIS
QUOTE (anu_spg)
I used clamav-0.85.1-1.0.rh7.rf.i386.rpm.
How to fix or enable it. Please anyone...


Unless you're running RH7, I believe you grabbed the wrong rpm.
JamesC
How do you merge the /etc/freshclam.conf file with the freshclam.conf.rpmnew? is there an easy way or do you have to go in and redo it line by line?
sushil2000
Has to be done manually. However, you may want to diff the files just to check it first.

My favourite is `vim -d file1 file2` which splits the widow with the two files and highlighting the diffs.
bill1282
I updated clamav with:

clamav-0.85-1.1.fc1.rf.i386.rpm
clamav-db-0.85-1.1.fc1.rf.i386.rpm
clamav-devel-0.85-1.1.fc1.rf.i386.rpm
clamd-0.85-1.1.fc1.rf.i386.rpm

this is what I am getting
ClamAV update process started at Sun Jun 12 17:12:21 2005
WARNING: DNS record is older than 3 hours.
WARNING: Invalid DNS reply. Falling back to HTTP mode.
Reading CVD header (main.cvd): OK
main.cvd is up to date (version: 32, sigs: 34720, f-level: 5, builder: tkojm)
Reading CVD header (daily.cvd): OK
daily.cvd is up to date (version: 930, sigs: 890, f-level: 5, builder: ccordes)

How can I fix the warning

Thank you,
Bill
imagenooker
QUOTE (sushil2000)
After Install:
1. Merge the "/etc/freshclam.conf" file with the "freshclam.conf.rpmnew" .
2. Remove the daily freshclam cron as MailScanner takes care of updating the ".cvd" database hourly.
3. In MailScanner.conf, check the setting of 'Monitors for ClamAV Updates' to ensure it matches the location of your ClamAV virus database files. (May need to change from "/var/lib/clamav" to "/var/clamav")
4. Restart MailScanner.


I have a question about step 1. What am I merging exactly? (I've only ever merged with sdiff, and I've done that interactively.) A quick glance shows that I need to change the database dir in /etc/freshclam.conf. Would I be correct in assuming everything else is fine? Could I just manually edit /etc/freshclam.conf for that change? Or am would I be missing new entries.

edit: well, I picked through it manually. anything new in the rpmnew version was commented out. so I'm just going ahead and replacing the old conf with the rpmnew version.

and btw, this is for the latest version (.86.2-1.1.el3), and it also warned of these files"
/var/lib/clamav/main.cvd saved as /var/lib/clamav/man.cvd.rpmsave
/var/lib/clamav/daily.cvd saved as /var/lib/clamav/daily.cvd.rpmsave

These files are identical in size. and cmp -s outputs nothing, telling me they are byte identical. so no worries mate!
jread2
FYI. I just successfully updated my Ensim server to v0.87 using these instructions.
top500
Seems to me all your base clamav is offline, all I get is errors...

ERROR: md5 sum not found on remote server
ERROR: Can't get viruses.md5 sum from clamav.elektrapro.com
ERROR: Can't connect to port 80 of host clamav.ozforces.com
ERROR: Connection with clamav.ozforces.com failed.
ERROR: md5 sum not found on remote server
ERROR: Can't get viruses.md5 sum from clamav.essentkabel.com
ERROR: Can't connect to port 80 of host clamav.linux-sxs.org
ERROR: Connection with clamav.linux-sxs.org failed.

crash.fce is down, too...
L.J
QUOTE (Carteluo)
It's so easy.. go to webmin -> Webmin Configuration -> Webmin Modules

Here upload the .wbm.gz clamav module (From uploaded file) then hit Install Module and that's it!! cool.gif

You will find it under system...

Cheers


I take it that's not for Ensim then coz if it is I haven't a scooby about what your say in repsect to


webmin > webmin config etc....
polystigma
L.J:
Install webmin first then you can install the module following those instructions.
You can grab the webmin rpm from here: http://www.webmin.com/ just install it like any other rpm. It will not interfere with ensim. Just be careful with some of its modules, as if they are not configured properly, you may inadvertantly break something in ensim. Specifically some of the server modules like apache, sendmail, spamassassin, and a few others.
If you are leary of working in a SSH session, webmin will be your best friend.
mazza
last time i installed webmin it broke dns on an ensim box
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.