Steven Jones wrote:

[snip]
>>> Feb 19 20:32:57 hermes sm-mta[26767]: m1J7Wv6d026767: Milter (clmilter): 
>>> error connecting to filter: Connection refused by 
>>> /var/run/clamav/clmilter.sock

Is this message still appearing?

 >>> So I touched /var/run/clamav/clamav-milter.ctl

Remove this file, 'touch' creates regular files, not sockets, and in any 
case not the milter or sendmail can use what you create.

[snip]
>> 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?) ?

It's optional, clamav-milter looks for your sendmail.cf file in /etc and 
  /etc/mail (to make the sanity check Niegel mentioned).

> "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

Looks good.  The clmilter.sock probably is from an old sendmail 
configuration, or you have more than one installation of sendmail.
-- 
René Berber

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to