exim clamav problem after upgrade

CentOS5

Verified User
Joined
Jan 26, 2006
Messages
57
After upgrading clamav on my freebsd 5.4 server yesterday i get the following

malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (Connection refused)

I have killed the clamav that was running,restarted it, restared exim , every works fine for about 30 min and then it all falls over again, no mail in or out and same message as above. I have removed clamav from exim.conf as this is driving me mad, anyone seen this and know how to fix it.

freebsd 5.4
clamav-0.93.1_2
exim 4.69
 
So does clamav crash or what?

Is there any errors in /var/log/clamav/clamd.log
 
So does clamav crash or what?

Is there any errors in /var/log/clamav/clamd.log

Log size = 104858047, max = 104857600
LOGGING DISABLED (Maximal log file size exceeded).
Log size = 104858136, max = 104857600
LOGGING DISABLED (Maximal log file size exceeded).
mail#

and checked and logfile is 100m????? never had this problem before, going to set to 0 in clamd.conf


UPDATE

30 min later and it all stopped again, removed again frm exim.conf, so nothing to do with the log size.

clamd.log shows

Mon Jun 30 16:54:16 2008 -> No stats for Database check - forcing reload
Mon Jun 30 16:54:16 2008 -> Reading databases from /var/db/clamav

and exim panic log shows

malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (Connection refused)
 
Last edited:
Fixed

cd /usr/ports/security/clamav

change in Makefile

--enable-gethostbyname_r \

to

--disable-gethostbyname_r \

AND

change

PTHREAD_LIBS= -lthr

TO

PTHREAD_LIBS= -pthread

for freebsd5.4 on

The ltht was the main problem, it kept crashing clamav, works fine on my fbsd6 box but on 5.4 it had to be changed to -pthread.
 
Back
Top