HowTos/ClamAV

From Scalix Wiki
Revision as of 10:49, 14 June 2007 by William (Talk | contribs) (added section on how to integrate clamav with sendmail (not scalix))

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Scalix Wiki -> How-Tos -> ClamAV

... under construction ...


ClamAV-milter + Sendmail on RHEL/Centos/Fedora

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


1) download the rpms from http://dag.wieers.com/

wget http://dag.wieers.com/rpm/packages/clamav/clamav-0.90.3-1.el4.rf.i386.rpm

wget http://dag.wieers.com/rpm/packages/clamav/clamav-db-0.90.3-1.el4.rf.i386.rpm

wget http://dag.wieers.com/rpm/packages/clamav/clamav-milter-0.90.3-1.el4.rf.i386.rpm

wget http://dag.wieers.com/rpm/packages/clamav/clamd-0.90.3-1.el4.rf.i386.rpm

2)install the rpms:

rpm -ivh clam*

3) edit /etc/clamd.conf:

LocalSocket /var/run/clamav/clamav-milter.sock

4) run clamd

5) run freshclam

6) run clamav-milter:

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

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

8) restart sendmail

9) run omsendin if nessecary.