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. 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 and local:/var/run/clamav/... should be the interesting ones. -- René Berber _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html