Koozali.org: home of the SME Server

ClamAV Again

cc_skavenger

ClamAV Again
« on: January 27, 2005, 04:42:22 PM »
Having an issue with some new viruses coming through my mail server.  Ran freshclam to make sure it is updating and received this message:

[root@mail-server root]# freshclam
ClamAV update process started at Thu Jan 27 09:37:34 2005
WARNING: Your ClamAV installation is OUTDATED - please update immediately!
WARNING: Local version: 0.80 Recommended version: 0.81
main.cvd is up to date (version: 29, sigs: 29086, f-level: 3, builder: tomek)
daily.cvd is up to date (version: 689, sigs: 775, f-level: 4, builder: diego)
WARNING: Your ClamAV installation is OUTDATED - please update immediately!
WARNING: Current functionality level = 3, required = 4


Anyone else getting this?

TIA

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
ClamAV Again
« Reply #1 on: January 27, 2005, 06:40:50 PM »
There are very busy at Clamav :-) They released the new 0.81 yesterday and they already nag about outdated installations....

I have build the new 0.81 and included it in the installation/upgrade script from:

http://sme.swerts-knudsen.dk/howtos/howto_22.htm

Rgds,
Jesper

cc_skavenger

ClamAV Again
« Reply #2 on: January 27, 2005, 06:44:12 PM »
I saw the rpms in the download area, but was waiting...

Thanks for the great work.

Henk

ClamAV Again
« Reply #3 on: January 27, 2005, 08:10:42 PM »
Thanks a lot Jesper. I've just updated my server. Not a single problem!

mach1_4fun

ClamAV Again
« Reply #4 on: January 28, 2005, 12:01:11 AM »
Thanks Jesper!, the upgrade went without a hitch!
your contribs have saved me alot of headaches!

mbachmann

ClamAV Again
« Reply #5 on: January 28, 2005, 08:45:34 AM »
Thanks Jesper. You are the man, again.

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
ClamAV Again
« Reply #6 on: January 28, 2005, 10:19:40 AM »
me2 Jesper - you are a hero  :-D

(seriously making me lazy  8-) ...
fiddled with freshlcam et al for an hour
just to find you had it already "on a plate"
)

-THANKS-
Reinhold
............

knaidoo

error when installing script
« Reply #7 on: January 28, 2005, 11:23:23 AM »
Hi, for some reason I get the following error when trying to install script:

Checking for existing installations.... Please wait!
Installing ClamAntivirus on SME 6.0.....
Downloading RPMs from http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/AntiVirus
--05:20:24--  http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/AntiVirus/clamav-es-libs-0.75.1-es01.i386.rpm
           => clamav-es-libs-0.75.1-es01.i386.rpm'
Resolving www.contribs.org... done.
Connecting to www.contribs.org[207.182.33.10]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
Checking for existing installations.... Please wait!
Installing ClamAntivirus on SME 6.0.....
Downloading RPMs from http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/AntiVirus
--05:20:39--  http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/AntiVirus/clamav-es-libs-0.75.1-es01.i386.rpm
           => clamav-es-libs-0.75.1-es01.i386.rpm'
Resolving www.contribs.org... done.
Connecting to www.contribs.org[207.182.33.10]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
05:20:39 ERROR 404: Not Found.

--05:20:39--  http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/AntiVirus/clamav-es-0.75.1-es01.i386.rpm
           => clamav-es-0.75.1-es01.i386.rpm'
Resolving www.contribs.org... done.
Connecting to www.contribs.org[207.182.33.10]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
05:20:39 ERROR 404: Not Found.

--05:20:40--  http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/AntiVirus/sme-antivirus-1.0.1-1.noarch.rpm
           => sme-antivirus-1.0.1-1.noarch.rpm'
Resolving www.contribs.org... done.
Connecting to www.contribs.org[207.182.33.10]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
05:20:40 ERROR 404: Not Found.

clamd: unrecognized service
Updating the Clam Virus database - Please wait....
antivirus_install.sh: /usr/bin/freshclam: No such file or directory
Installation of Antivirus has successfully completed.

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
ClamAV Again
« Reply #8 on: January 28, 2005, 11:55:24 AM »
knaidoo

Seems you haven't downloaded the NEWest install script from Jespers website.
The rpms you got errors from are all outdated and already removed from contribs...

DOWNLOAD the new url Jesper gave above !!!
http://sme.swerts-knudsen.dk/howtos/howto_22.htm

regards
Reinhold

P.S.: You may want to do this in a new directory !?
............

knaidoo

fixed..I missed out the -N switch
« Reply #9 on: January 28, 2005, 11:59:03 AM »
Thanks Reinhold and Jesper, that worked.[/quote]

Offline Mjohnson

  • *
  • 172
  • +0/-0
ClamAV Again
« Reply #10 on: January 28, 2005, 01:19:11 PM »
Thanks Jesper...

Once again your efforts have made my day!!
......

Offline svangool

  • ****
  • 73
  • +0/-0
ClamAV Again
« Reply #11 on: January 29, 2005, 02:23:17 PM »
I had to "help" a little, I have an upgraded 6.0 and had CA 8.0 running:

During install:
...
clamav-es-0.80-es03 being uninstalled to prepare for upgrade....
antivirus_install.sh: service: command not found
warning: /usr/share/clamav/main.cvd saved as /usr/share/clamav/main.cvd.rpmsave
...
Amavis-ng Already patched
antivirus_install.sh: service: command not found
Updating the Clam Virus database - Please wait....
...
Database updated (29888 signatures) from db.us.clamav.net (IP: 209.200.146.2)
ERROR: Clamd was NOT notified: Can't connect to clamd through /var/lib/clamav/clamd.sock
connect(): No such file or directory
Update of Antivirus has successfully completed.

Log of an EICAR test message (but this happens also with ANY message):
...
Jan 29 13:50:14 myurl amavis[29693]: Not attempting to unpack 00000002
Jan 29 13:50:14 myurl amavis[29693]: AMAVIS::AV::CLAMD: Cannot connect to /var/lib/clamav/clamd.sock.
Jan 29 13:50:14 myurl amavis[29693]: Error while scanning for viruses with AMAVIS::AV::CLAMD:
Jan 29 13:50:14 myurl amavis[29693]: AMAVIS::MTA::Qmail: Freezing message
Jan 29 13:50:14 myurl amavis[29693]: Quarantining infected message to /var/spool/amavis-ng/problems/41fb8686-73fd
...

Well it's clear that CLAMD was not started, manually entering "/etc/rc.d/init.d/clamd start" did the job.

Then it works, thanks!

Sjef
......

Offline svangool

  • ****
  • 73
  • +0/-0
ClamAV Again
« Reply #12 on: January 29, 2005, 02:42:59 PM »
To make the process clean, I modified the install script:
service clamd start=>/etc/rc.d/init.d/clamd start
service clamd stop=>/etc/rc.d/init.d/clamd stop

That made it working for me!

Sjef
......

Offline ajkeane

  • *****
  • 187
  • +0/-0
    • http://keane.co.nz
ClamAV Again
« Reply #13 on: January 30, 2005, 09:31:09 AM »
I have upgraded using the above link but am now recieving the message below. Any ideas on how to correct this.

LibClamAV Warning: Unknown machine type in PE header (0x8664)
LibClamAV Warning: Broken PE header detected.

Thanks

Tony
...

Offline zoran

  • **
  • 26
  • +0/-0
undefined error
« Reply #14 on: February 01, 2005, 05:43:49 PM »
I jost got this in my mail box:

Can't call method "prop" on an undefined value at /usr/bin/antivirus-stats.pl line 46.