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. -- -------------------------------------------------------------------------- | Stephen Gran | "I am ecstatic that some moron re- | | [EMAIL PROTECTED] | invented a 1995 windows fuckup."=20 | | http://www.lobefin.net/~steve | -- Alan Cox | --------------------------------------------------------------------------
pgp00000.pgp
Description: PGP signature
