On a Redhat 9 box, I'm trying to run clamav-milter with sendmail.

clamav-milter 0.68
sendmail 8.12.8

* I'm using clamav rpms from fedora.us:

clamav-lib-0.68-0.fdr.2.rh90
clamav-milter-0.68-0.fdr.2.rh90
clamav-data-0.68-0.fdr.2.rh90
clamav-0.68-0.fdr.2.rh90
clamav-server-0.68-0.fdr.2.rh90

* 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')
...
---


(though according to sendmail.org, if you use INPUT_MAIL_FILTER, it will automatically add the define - I've tried with and without this line)

* I've tested clamscan, so I know that it works.

* 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


* The sockets seem to be in place:

# ls -l /var/run/clamd.milter/
total 4
-rw-rw----    1 clamilt  clamilt         5 Apr  9 15:42 clamd.pid
srwxrwxrwx    1 clamilt  clamilt         0 Apr  9 15:42 clamd.sock

# ls -l /var/run/clamav-milter/
total 0
srwxr-xr-x    1 clamilt  clamilt         0 Apr  9 15:44 clamav.sock


* Now, when I send a message to the server, I get the following log entries in /var/log/maillog:


Apr 12 12:00:14 dalriada sendmail[10042]: i3CJ0ESJ010042: milter_read(clamav-milter): cmd read returned 11, expecting 1431194445
Apr 12 12:00:14 dalriada sendmail[10042]: i3CJ0ESJ010042: Milter (clamav-milter): to error state
Apr 12 12:00:14 dalriada sendmail[10042]: i3CJ0ESJ010042: Milter (clamav-milter): init failed to open
Apr 12 12:00:14 dalriada sendmail[10042]: i3CJ0ESJ010042: Milter (clamav-milter): to error state


* So, the main problem is:

cmd read returned 11, expecting 1431194445

I have not found any info on this problem via googling. I would greatly appreciate if anyone could suggest something to try here, or if I need to supply more information.

Thanks.

Glenn
--
Glenn W. Bach
Manager, UNIX Systems Management Service
California Institute of Technology


------------------------------------------------------- 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