On Thu, 26 Feb 2004 at 13:55:53 -0000, Chris Evans wrote: > amavisd-new-20030616-p7 (Debian) > clamav 0.67-1 (from Debian stable -- I think) > > One interesting discovery I've made setting up amavisd-new and > clamav. Amavisd-new seems to expect to find the clamd.ctl socket at > /var/run/clamd.ctl and the default on the version of clamav I have > seemed to be /var/run/clamav/clamd.ctl. It's easy to reset that in
That's right. That location of socket is to let clamd run as _non_ root (user amavis is a good choice). [...] > So I decided it would be more efficient to comment out all the > primary and secondary antiviral calls in /etc/amavis/amavisd.conf > (since amavisd-new seemed to be trying all the ones that weren't > commented out and failing to find them at launch). I think that's Commenting them out isn't worth the trouble. They are searched for only at amavisd-new startup. > the only change I made, but then all my mail started to pile up and > amavisd-new continued to complain that it couldn't find that socket > (previously this hadn't caused the mail to block). I had a look at When socket wasn't available, a secondary scanner (clamscan) was used. This is a good thing to keep a secondary one at hand. Don't comment it out. > /etc/clamav/clamav.conf and saw that I could change the socket > location from /var/run/clamav/clamd.ctl to /var/run/clamd.ctl. Did A bad way. Change the socket definition in /etc/amavis/amavisd.conf, not in clamav.conf. Like here: \&ask_daemon, ["CONTSCAN {}\n", '/var/run/clamav/clamd.ctl'], -- Tomasz Papszun SysAdm @ TP S.A. Lodz, Poland | And it's only [EMAIL PROTECTED] http://www.lodz.tpsa.pl/ | ones and zeros. [EMAIL PROTECTED] http://www.ClamAV.net/ A GPL virus scanner ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users