There's some confusion here.
There need to be TWO sockets. One is for clamd. The other is for clamav-milter.
sendmail.mc needs to point to the clamav-milter socket. clamav-milter needs to produce this socket for sendmail, and also know where the clamd socket is.


It works like this:
sendmail -> clamav-milter.sock
clamav-milter -> clamd.sock
clamd scans and passes the result back to clamav-milter
clamav-milter tells sendmail what to do

sendmail.mc should have
INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/milter.sock, F=T, T=S:4m;R:4m')dnl


/etc/clamav.conf (or clamd.conf for 8.x) should have
LocalSocket /var/run/clamav/clamd.sock

start clamd as
/usr/local/sbin/clamd

start clamav-milter as
/usr/local/sbin/clamav-milter -Cfq /var/run/clamav/milter.sock

FIRST start clamd, SECOND start clamav-milter, FINALLY start sendmail

[EMAIL PROTECTED] 805.964.4554 x902


Thankyou very much, that was the problem, I'd specified the same socket for both the communication between clamd/clamav-milter and clamav-milter/sendmail. Thanks to everyone else for thier suggestions also.

A now much relieved and somewhat embarrased

Simon :P



_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users

Reply via email to