I have Fedora FC5, all the clamav* rpm's installed and sendmail is working ok.
I followed the instructions in the /usr/share/doc/clamav-server*/README file 
and created and clamd.sendmail instance. All <SERVICE> are replaced with 
sendmail.

Before using the clam rpms I have downloaded the clam source and was able to 
make this work. But I would rather use the rpm method because I am not the only 
person who maintains the server and using yum is a good thing :)

Using the old clamd service I could add the clamav-milter and it worked. With 
the new use of the 'instance' a test email shows not X-Virus statements in the 
headers. And the logs do not show anything. Do you have to create a 
clamd.sendmail (my naming) and how does clamav-milter know how talk to the 
instances socket? If there are any decent howtos or faqs about how to sent up a 
instance (I am almost googled out on that one :) ) please let me know. Below is 
my entries.

/etc/clamd.d/milter.conf <- just placed a # in front of example line
/etc/clamd.d/sendmail.conf: (changes)
LogFile /var/log/clamd.sendmail
LogVerbose
PidFile /var/run/clamd.sendmail/clamd.pid
LocalSocket /var/run/clamd.sendmail/clamd.sock
User clamsendmail

/etc/passwd enty:
clamsendmail:x:501:502:Clamav Sendmail  
User:/var/run/clamd.sendmail:/sbin/nologin

/etc/group:
clamsendmail:x:502:

/etc/sysconfig/clamd.sendmail:
CLAMD_CONFIGFILE=/etc/clamd.d/sendmail.conf
CLAMD_SOCKET=/var/run/clamd.sendmail/clamd.sock
CLAMD_OPTIONS=

/etc/mail/sendmail.mc line (used m4 sendmail.mc > sendmail.cf after change)
INPUT_MAIL_FILTER(`clamav', 
`S=local:/var/run/clamav-milter/clamav.sock,F=,T=S:4m;R:4m')dnl

results of ps ax | grep clam:
clamd.sendmail -c /etc/clamd.d/sendmail.conf
/usr/sbin/clamav-milter --max-children=2 -c /etc/clamd.d/milter.conf 
local:/var/run/clamav-milter/clamav.sock

ls -l /var/run:
drwxr-x--- 2 clamsendmail root    4096 Jun  5 18:25 clamd.sendmail

ls -lR /var/run:
-rw-rw---- 1 clamsendmail clamsendmail 5 Jun  5 18:25 clamd.pid
srwxrwxrwx 1 clamsendmail clamsendmail 0 Jun  5 18:25 clamd.sock







                
---------------------------------
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail Beta.
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to