----- Original Message ----- 
From: "G.W. Haywood" <[EMAIL PROTECTED]>
To: <clamav-users@lists.clamav.net>
Sent: Sunday, December 11, 2005 5:26 PM
Subject: [Clamav-users] Re: clamav-milter & sendmail


> Hi there,
>
> On Sun, 11 Dec 2005 Obantec Support wrote:
>
> > it seems to run ok but i get this in maillog
> > Dec 10 20:01:58 proteus2a sendmail[29655]: jBAK1wmP029655: Milter
(clamav):
> > local socket name /var/run/clamav/clamav-milter.sock unsafe
>
> See for example
>
>
http://lists.freebsd.org/pipermail/freebsd-questions/2004-October/061365.html
>
> > What have i missed?
>
> Sendmail documentation.  Google.  Numerous FAQs.  :)
>
> 73,
> Ged.
> _______________________________________________
> http://lurker.clamav.net/list/clamav-users.html
<snip>

I googled but did not find the answer. the link you provided does not seem
to help unless i have missed something.
when i add the sendmail lines to sendmail.mc

INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clamav-milter.sock, F=,
T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `clamav')
from F=, T=S:4m;R:4m is not used apparently as INPUT_MAIL_FILTER only takes
2 arguments.

and rebuild using M4 sendmail is running, i then start clamav with the
start-up script and verify sock & pid in /var/run/clamav
then start clamav-milter with its start-up script and verify sock & pid in
/var/run/clamav

maillog shows start-up ok but as i have debug set it clamd.conf i then see
the errors

Dec 10 20:01:58 proteus2a sendmail[29655]: jBAK1wmP029655: Milter (clamav):
local socket name /var/run/clamav/clamav-milter.sock unsafe
Dec 10 20:01:59 proteus2a sendmail[29655]: jBAK1wmP029655: Milter (clamav):
to error state
Dec 10 20:02:28 proteus2a sendmail[29874]: jBAK2SAQ029874: Milter add:
header: X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87
on proteus2a.obantec.net
Dec 10 20:03:02 proteus2a sendmail[29926]: jBAK32ob029926: Milter add:
header: X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87
on proteus2a.obantec.net
Dec 10 20:03:05 proteus2a sendmail[29282]: jBAK13vY029282: Milter (clamav):
write(Q) returned -1, expected 5: Broken pipe
Dec 10 20:03:05 proteus2a sendmail[29282]: jBAK13vY029282: Milter (clamav):
to error state

/var/run/clamav is chmod 700

Mark

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

Reply via email to