## clamav-milter
Keywords: clamdoc

Homepage: part of the ClamAV package
Supports: clamd
Nigel Horne's clamav-milter is a very fast email scanner designed for sendmail. It's written entirely in C and uses ClamAV's internal mail scanner (also written by Nigel).
Installation:
You need libmilter development files. Configure ClamAV with

        $ ./configure --enable-milter

and recompile. The program will be installed in /usr/local/sbin/clamav-milter. The following instructions were adopted from Nigel's INSTALL file: add to /etc/mail/sendmail.mc:

    INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clmilter.sock,
    F=, T=S:4m;R:4m')dnl
    define(`confINPUT_MAIL_FILTERS', `clmilter')

Check entries in clamav.conf of the form:

    	LocalSocket /var/run/clamd.sock
    	ScanMail
    	StreamSaveToDisk

Start clamav-milter:

    	/usr/local/sbin/clamav-milter -lo /var/run/clmilter.sock

and restart sendmail.