View Full Version : when clamd stops working
albatroz
11-16-2004, 10:15 AM
I have configured exiscan+clamd
But I have noticed that almost every 7/8 days. Clamd stops working, and as a result our emails (inbound/outbound) become rejected.
Does anybody have experienced something similar? Any recommendations?
Having clamd + exim restart by cron every x days would help?
Extra info: Clamd executes freshclam by itself not by cron.
matthewventura
11-17-2005, 07:14 PM
It just started happening to me today after almost a year without problems... any clue? It happened twice today and I have to go in and stop then start clamd
/usr/local/sbin/clamd stop
nobaloney
11-18-2005, 03:48 PM
I moved the thread to 3rd Party Software since clamd isn't part of DirectAdmin.
Jeff
matthewventura
11-18-2005, 03:55 PM
clamav stops working ever 30 min when it does a sanity check
any ideas?
anyone have the upgrade procedure for clamav on freebsd and da?
@how@
11-19-2005, 06:42 AM
add in /etc/crontab for daily restart
01 04 * * * root /usr/local/sbin/clamd restart
work fine with me,
matthewventura
11-19-2005, 10:41 AM
We wrote a script to restart every 5 min because clamd was dying every 30. However this still seemed to not work since not only is clamd dying it is also freezing and leaves its process running, effectively stopping all mail.
I tested clamscan and did a scan of my server from command line and it dumped halfway through.
So maybe my clamd.conf is setup and allowing too big of files, the wrong type of files?
What I'd like to do at this point is to find out how to remove clamd from exim's use.
I tried just commenting out the av= line in the exim.conf. How do you remove clamd/clamav?
matthewventura
11-19-2005, 10:53 AM
btw this is the error I get in my logs:
2005-11-19 10:04:55 1EdX55-000DFQ-MH malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (Connection refused)
GranTW
11-19-2005, 12:30 PM
Open your clamd.conf normally /etc/clamd.conf
and look for #LocalSocket
Uncomment the line and make sure the path is the same in that error msg.
Also look for #TCPSocket or sumthing simular and comment the line out.
Save and restart clamd.
Thanks,
Grant
matthewventura
11-19-2005, 01:06 PM
both are correct in mysetup...
I ran this script to reset the permissions and maybe that will solve the problem...
cd /usr/local/directadmin/scripts
./set_permission.sh email
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.