Howto install & update ClamAV -0.91.2 - Easy way - 21.11.2007

sHuKKo

Verified User
Joined
Jun 24, 2003
Messages
89
Location
on the net!
EDIT:: THIS POST IS OUTDATED AND LINKS ARE REMOVED. PLEASE USE ORIGINAL @HOW@ SCRIPT.

NOTES:
I used to install clamav to my new servers using @How@'s update.script
But it seems like all posts are now deleted and some links not working. So I spent some time and create a new standalone clamav install script. Almost all parts of this script is taken from previous update.script.I tried this script on my several centos 5.x servers without any problem.
This script only installs clamav and does not make any changes on your exim.conf.

Code:
wget http://server.medyabim.com/clamd/clamavkur.sh
chmod +x clamavkur.sh
./clamavkur.sh

To change your exim.conf you can follow directions below:

Code:
nano -w /etc/exim.conf

before

Code:
primary_hostname =

add

Code:
av_scanner = clamd:/tmp/clamd

after

Code:
check_message:

add

Code:
deny message = This message contains malformed MIME ($demime_reason)
demime = *
condition = ${if >{$demime_errorlevel}{2}{1}{0}}
deny message = This message contains a virus or other harmful content ($malware_name)
demime = *
malware = *
deny message = This message contains an attachment of a type which we do not accept (.$found_extension)
demime = bat:com:pif:prf:scr:vbs
warn message = X-Antivirus-Scanner: Clean mail though you should still use an Antivirus

Save And Restart exim.

Code:
service exim restart
 
Last edited:
Hello,

I use this script but i think is a problem,

HTML:
[root@s1 ~]# clamscan
LibClamAV Error: cli_loaddb(): No supported database files found in /var/clamav
ERROR: Not supported data format

----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 0.90.1
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Time: 0.002 sec (0 m 0 s)

have a sugetion for me?

Tnx.

Eduard
 
Where to put the codes...

Hi
I'm very new to servers, and had some problems when editing exim.conf
A little confused were to put the codes. Anyone care to explain in BIG LETTERS?:confused:

Ron
 
New Clamav version

Shukko I´ve used your update tool and works fine. Now clamav released a new version of clamav 0.92.1-1. Can I use the same script to update or you should write down a new one?
 
install ClamAV whit RPM

EDIT:: THIS POST IS OUTDATED AND LINKS ARE REMOVED. PLEASE USE ORIGINAL @HOW@ SCRIPT.

NOTES:
I used to install clamav to my new servers using @How@'s update.script
But it seems like all posts are now deleted and some links not working. So I spent some time and create a new standalone clamav install script. Almost all parts of this script is taken from previous update.script.I tried this script on my several centos 5.x servers without any problem.
This script only installs clamav and does not make any changes on your exim.conf.

Code:
wget http://server.medyabim.com/clamd/clamavkur.sh
chmod +x clamavkur.sh
./clamavkur.sh

To change your exim.conf you can follow directions below:

Code:
nano -w /etc/exim.conf

before

Code:
primary_hostname =

add

Code:
av_scanner = clamd:/tmp/clamd

after

Code:
check_message:

add

Code:
deny message = This message contains malformed MIME ($demime_reason)
demime = *
condition = ${if >{$demime_errorlevel}{2}{1}{0}}
deny message = This message contains a virus or other harmful content ($malware_name)
demime = *
malware = *
deny message = This message contains an attachment of a type which we do not accept (.$found_extension)
demime = bat:com:pif:prf:scr:vbs
warn message = X-Antivirus-Scanner: Clean mail though you should still use an Antivirus

Save And Restart exim.

Code:
service exim restart

Hi , your ClamAV link doesn't work ! .
so i found ClamAV with RPM

i want install ClamAV with this RPMs :
Code:
http://packages.sw.be/clamav/
clamav-0.94-1.el5.rf.i386.rpm clamd-0.94-1.el5.rf.i386.rpm
clamav-db-0.94-1.el5.rf.i386.rpm
clamav-devel-0.94-1.el5.rf.i386.rpm
clamav-milter-0.94-1.el5.rf.i386.rpm

is this correct way ?!
when i want install this rpm with this command :
rpm -Uvh clamav-0.94-1.el5.rf.i386.rpm
SSH said :

[root@server ~]# rpm -Uvh clamav-0.94-1.el5.rf.i386.rpm
warning: clamav-0.94-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
clamav-db is needed by clamav-0.94-1.el5.rf.i386
libclamav.so.4 is needed by (installed) clamav-server-0.93-2.i386
libclamav.so.4(CLAMAV_PRIVATE) is needed by (installed) clamav-server-0.93-2.i386
libclamav.so.4(CLAMAV_PUBLIC) is needed by (installed) clamav-server-0.93-2.i386
clamav = 120:0.93-2 is needed by (installed) clamav-server-0.93-2.i386



any idea !? help me
 
Back
Top