René Berber wrote: > Steven Jones wrote: > >> I have a very old install of Debian which many years ago I added clamav >> to, it is now on Debian 4.0 but I suspect over the years clamav has >> changed, but my config files probably have not... >> >> ....recently I have noticed that clamav-milter no longer works and I >> have this in the error log, > >> Feb 19 20:32:57 hermes sm-mta[26767]: m1J7Wv6d026767: Milter (clmilter): >> error connecting to filter: Connection refused by >> /var/run/clamav/clmilter.sock > ----------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > [snip] >> Trying to restart the clamav-milter from init.d never completes, just >> hangs.... > > That's probably another error. > > [snip] >> In the sendmail.mc I have, >> >> -------------------- >> define(`MILTER',1) >> >> INPUT_MAIL_FILTER(`clmilter',`S=/var/run/clamav/clamav-milter.ctl, F=, > ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> T=S:4m;R:4m')dnl >> define(`confINPUT_MAIL_FILTERS', `clmilter') >> ------------------- >> >> When trying to restart sendmail it does but the clamav-milter fails, I >> get this message... >> >> hermes:/var/log/clamav# /etc/init.d/sendmail restart >> Restarting Transport Agent: sendmailWARNING: Xclmilter: local socket >> name /var/run/clamav/clamav-milter.ctl missing >> >> So I touched /var/run/clamav/clamav-milter.ctl > >> No joy.... >> >> I un-installed and then re-installed clamav-milter...no joy.... >> >> Ideas please? > > First problem: You are using two different socket names.
=========== hermes:/etc/init.d# cd ../clamav/ hermes:/etc/clamav# grep clamav-milter.ctl * =========== hmmmm? where are these set/pointers then? I rebuilt sendmail.cf from sendmail.mc copying the path........no change..... sendmail.mc has, 8><-------- INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clamav-milter.ctl, F=, T=S:4m;R:4m')dnl define(`confINPUT_MAIL_FILTERS', `clmilter') 8><---------- from the -x output, 8><--------- + SOCKET_PATH=/var/run/clamav/clamav-milter.ctl 8><--------- > Second problem: Check the clamav-milter startup script... it shouldn't > hang, put a -x (at the end of the first line, i.e. #!/bin/sh -x) if > necessary to see what's it doing? Check the parameters --sendmail-cf where is this (--sendmail-cf) (flag?) ? not here, ========== hermes:/etc/init.d# cd ../clamav/ hermes:/etc/clamav# grep sendmail-cf * hermes:/etc/clamav# ========== or here, ========== hermes:/etc/clamav# cd ../init.d hermes:/etc/init.d# grep sendmail-cf * hermes:/etc/init.d# ========== ? > and local:/var/run/clamav/... should be the interesting ones. (as above) "clamav-milter start" hangs here, 8><-------- + pidfile=/dev/null + OPTIND=1 + getopts fn:p: opt + shift 0 + '[' /usr/sbin/clamav-milter = -- ']' + exec=/usr/sbin/clamav-milter + shift + '[' 0 = 1 ']' + '[' /dev/null ']' + eval /sbin/start-stop-daemon --start --nicelevel 0 --quiet --exec /usr/sbin/clamav-milter --oknodo --pidfile /dev/null -- --max-children=2 -ol --pidfile /var/run/clamav/clamav-milter.pid local:/var/run/clamav/clamav-milter.ctl ++ /sbin/start-stop-daemon --start --nicelevel 0 --quiet --exec /usr/sbin/clamav-milter --oknodo --pidfile /dev/null -- --max-children=2 -ol --pidfile /var/run/clamav/clamav-milter.pid local:/var/run/clamav/clamav-milter.ctl _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html