Page 1 of 1

ClamAV-milter + Sendmail on RHEL4 - setup details

Posted: Thu Jun 14, 2007 5:55 am
by William
Hello,

I looked at:
http://www.scalix.com/wiki/index.php?ti ... Tos/ClamAV
but it was blank.

Having just installed ClamAV with Sendmail I thought I would share the setup procedure here, for the people who already have sendmail set up as the transport agent and who want to connect ClamAV into sendmail rather than into Scalix.

1) download the rpms from http://dag.wieers.com/
wget http://dag.wieers.com/rpm/packages/clam ... f.i386.rpm
wget http://dag.wieers.com/rpm/packages/clam ... f.i386.rpm
wget http://dag.wieers.com/rpm/packages/clam ... f.i386.rpm
wget http://dag.wieers.com/rpm/packages/clam ... f.i386.rpm

2)install the rpms:
rpm -ivh clam*

2) edit /etc/clamd.conf:
LocalSocket /var/run/clamav/clamav-milter.sock

3) run clamd

4) run freshclam

5) run clamav-milter:
/usr/sbin/clamav-milter -ol local:/var/run/clamav/clamav-milter.sock --postmaster=root@domain.com --quarantine=root@domain.com


6) edit sendmail configuration:
INPUT_MAIL_FILTER(`clmilter', `S=local:/var/run/clamav/clamav-milter.sock, F=, T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `clmilter')dnl


7) restart sendmail

8) run omsendin if nessecary.

Posted: Thu Jun 14, 2007 8:09 am
by ScalixSupport
Hi William!

Just in case you get Service Router error on sending mail, this is how you would solve it:
viewtopic.php?t=6673

Hope this helps.

Thanks,
Subir