On Thu, 7 Sep 2006, Scott Moseman wrote:

> Date: Thu, 7 Sep 2006 22:31:43 -0500
> From: Scott Moseman <[EMAIL PROTECTED]>
> Reply-To: ClamAV users ML <[email protected]>
> To: [email protected]
> Subject: [Clamav-users] clamav-milter will not create socket file
> 
> I have searched all over, but I cannot find the solution...
> 
> Here's the configuration files:
> 
> # cat /etc/mail/sendmail.cf | grep clmilter
> O InputMailFilters=clmilter
> Xclmilter, S=local:/var/run/clamav/clmilter.sock, T=S:4m;R:4m
> 
> # cat /etc/sysconfig/clamav-milter | grep clmilter
> -o local:/var/run/clamav/clmilter.sock
> 
> The daemon tells me that it started ok:
> 
> # /etc/init.d/clamav-milter start
> Starting Clamav Milter Daemon: [ OK ]
> 
> Here's the errors that I'm seeing in Sendmail:
> 
> # cat /var/log/maillog | grep clmilter | tail -2
> Milter (clmilter): local socket name /var/run/clamav/clmilter.sock unsafe
> Milter (clmilter): to error state
> 
> Here's the permission tree for the socket file:
> 
> # ls -l / | grep var
> drwxr-xr-x  25 root root     4096 Sep  7 21:05 var
> # ls -l /var | grep run
> drwxr-xr-x  18 root    root    4096 Sep  7 21:45 run
> # ls -l /var/run | grep clamav
> drwxr-xr-x  2 clamav clamav  4096 Sep  7 22:22 clamav
> # ls -l /var/run/clamav/
> total 12
> -rw-rw----  1 clamav clamav 5 Sep  7 21:17 clamd.pid
> srwxrwxrwx  1 clamav clamav 0 Sep  7 21:17 clamd.sock
> 
> You notice that there's no socket file created though.
> Does anything appear obvious that I'm missing or that
> I need to configure differently?  I don't know why it may
> not be creating the socket file under /var/run/clamav.

I am not running clamd, so can't talk from experience there.  However I am
running another milter (smf-sav) which has far more restrictive
permissions to keep sendmail happy:

# ls -ld /var/run/smfs
drwx------  2 smfs smfs 4096 2006-09-08 08:26 /var/run/smfs

# ls -l /var/run/smfs
srw-------  1 smfs smfs 0 2006-09-08 08:26 smf-sav.sock

Based on the above, you might try setting /var/run/clamav to 700.

You list a clamd.sock file - that is your socket.

Regards

Jim Holland
System Administrator
MANGO - Zimbabwe's non-profit e-mail service
Tel: (263-4)-334111/304471



_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to