Shoot.

I was hoping this wasn't a dumb mistake.

Thanks for pointing this out.

Glenn

Stephen Gran wrote:
On Mon, Apr 12, 2004 at 12:13:13PM -0700, Glenn W. Bach said:

* I've configured clamav (w/ #Example):
LocalSocket /var/run/clamd.milter/clamd.sock
StreamSaveToDisk
* I've configured sendmail:
INPUT_MAIL_FILTER(`clamav-milter',`S=local:/var/run/clamd.milter/clamd.sock,F=, 
T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `clamav-milter')

* I'm running clamd, and clamav-milter (and sendmail of course):

20254 ? S 0:01 [clamd.milter]
20376 ? S 0:00 /usr/sbin/clamav-milter --max-children=2 -l -c /etc/clamd.d/milter.conf local:/var/run/clamav-milter/clamav.sock


I took the liberty of wrapping your INPUT_MAIL_FILTER line - I assume
that's how you have it.  Your problem is this:
INPUT_MAIL_FILTER[...]local:/var/run/clamd.milter/clamd.sock
does not match this:
/usr/sbin/clamav-milter[...]local:/var/run/clamav-milter/clamav.sock

That's where the communication takes place - clamav-milter reads
clamav.conf to get the location of the socket file for clamd.  Senmail
has to communicate with the milter, not clamd.

Change your sendmail.mc to read like this:
INPUT_MAIL_FILTER(`clamav-milter',`S=local:/var/run/clamav-milter/clamav.sock,F=, 
T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `clamav-milter')

And you should be fine.


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to