On Wed, 2005-11-23 at 17:35, Mike Staver wrote: > >>I successfully got clamd to fire right up after I created and edited the > >>initial /etc/clam.conf file it needed. I read on the project site that > >>you can set up clamav-milter to be a sort of hook into Sendmail, which I > >>also run. I added these lines to my sendmail.mc file: > >> > >>INPUT_MAIL_FILTER(‘clmilter’,‘S=local:/var/run/clamav/clmilter.sock,F=, > >>T=S:4m;R:4m’)dnl > >>define(‘confINPUT_MAIL_FILTERS’, ‘clmilter’) > >> > >>Then I restart sendmail, and I get this error: > >> > >># /etc/init.d/sendmail restart > >>Shutting down sendmail: [ OK ] > >>Shutting down sm-client: [ OK ] > >>Starting sendmail: 554 5.0.0 /etc/mail/sendmail.cf: line 1672: > >>Xclmilter: unknown filter equate = > >>554 5.0.0 /etc/mail/sendmail.cf: line 1672: Xclmilter: empty or missing > >>socket information > >>[FAILED] > >>Starting sm-client: [ OK ] > >> > >>I've searched google groups for this error message, and I only found one > >>link, which wasn't in English. I did notice the part though about > >>having to start the clamav-milter first. So, I tried: > >> > >># /etc/init.d/clamav-milter restart > >>Stopping Clamav Milter Daemon: [FAILED] > >>Starting Clamav Milter Daemon: clamav-milter: socket-addr > >>(local:/var/clamav/clmilter.socket) doesn't agree with sendmail.cf > >>[FAILED] > >> > >>So, I'm seeing something in these errors: references to two different files: > >> > >>/var/run/clamav/clmilter.sock > >>/var/clamav/clmilter.socket > >> > >>I went into the sendmail.mc file and edited it to match > >>/var/clamav/clmilter.socket and tried it again, but that didn't work either. > >> > >>Has anyone seen this before? > >> > >>_______________________________________________ > >>http://lurker.clamav.net/list/clamav-users.html > > > > > > Yes. I have run into this problem before. > > > > Make sure the /etc/sysconfig/clamav-milter file and the > > /etc/mail/sendmail.[mc]f file reference the same file. > > > > Make sure permissions are correct on both the file and the directory > > /var/clamav. > > > > In my case, clamav-milter is running as clamav:clamav. > > > > ls -l /var/clamav > > drwxr-xr-x 3 clamav clamav 240 Nov 23 12:39 . > > srwxr-xr-x 1 clamav clamav 0 Nov 23 08:10 clmilter.socket > > Thanks Eric, I got clamav-milter starting fine now based on having them > both point at the same file. Now my problem is still this with sendmail: > > # /etc/init.d/sendmail restart > Shutting down sendmail: [ OK ] > Shutting down sm-client: [ OK ] > Starting sendmail: 554 5.0.0 /etc/mail/sendmail.cf: line 1672: > Xclmilter: unknown filter equate = > 554 5.0.0 /etc/mail/sendmail.cf: line 1672: Xclmilter: empty or missing > socket information > [FAILED] > Starting sm-client: [ OK ] > > I'm not sure what to do here - since I took this line straight from the > ClamAV install doc: > > INPUT_MAIL_FILTER(‘clmilter’,‘S=local:/var/clamav/clmilter.socket,F=, > T=S:4m;R:4m’)dnl > define(‘confINPUT_MAIL_FILTERS’, ‘clmilter’) > > Granted, I modified it to point to the right file - but the syntax is > the same. My only question at this point - this file (clmilter.socket), > it still doesn't exist yet. When should it get created? I've restarted > clamd and clamav-milter. Then I fire up sendmail, and I get that error.
The file clmilter.socket is created when you start clamav-milter (service clamav-milter start). What does line 1672 look like in your sendmail.cf file? Here is a what mine looks like. INPUT_MAIL_FILTER(`clmilter',`S=local:/var/clamav/clmilter.socket,F=,T=S:4m;R:4m')dnl define(`confINPUT_MAIL_FILTERS',`clmilter')dnl You should open with an ASCII backtick (`) and close with a (vertical) ASCII apostrophe ('). -Eric -- Eric Hoeve <[EMAIL PROTECTED]> _______________________________________________ http://lurker.clamav.net/list/clamav-users.html