On Thu, 2006-11-02 at 12:07 +0100, Clamav wrote:
> Hello!
> I try to run sendmail with clamav-milter with the recommended user
> clamav. If I run everything as use root - there is no problem. If I
> change to user clamav I get first in the logfile:
> -LibClamAV Error: Can't open/create /var/run/clmilter.sock
> /tmp/clamav-ff091e4518d14f2e5663f334e2208283: Invalid argument
> 
> Because User clamav is not allowed to write to /var/run. If I change the
> permission in /var/run so that the user is allowed I get in the syslog
> file after sending an email:
> Nov  2 11:00:11 phantom sendmail[23725]: [ID 801593 mail.error]
> kA2B0BaM023725: Milter (clmilter): local socket name
> /var/run/clmilter.sock unsafe
> Nov  2 11:00:11 phantom sendmail[23725]: [ID 801593 mail.info]
> kA2B0BaM023725: Milter (clmilter): to error state
> 
> 
> I don't know how to solve this problem? Anyone any idea?

Simple:

mkdir /var/run/clamav
chown clamav:clamav /var/run/clamav

Use /var/run/clamav/clmilter as your socket name rather
than /var/run/clmilter.sock

> Thanks
> Wolfgang


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

Reply via email to