Keywords: clamdoc

Next: Testing Up: Configuration Previous: On-access scanning Contents

## clamav-milter

Nigel Horne's `clamav-milter` is a very efficient email scanner designed for Sendmail. It's written entirely in C and only depends on `libclamav` or `clamd`. You can find detailed installation instructions in the `INSTALL` file that comes with the clamav-milter sources. Basically, to connect it with Sendmail add the following lines to `/etc/mail/sendmail.mc`:

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

If you're running it in `--external` mode, check entry in `clamd.conf` of the form:

    	LocalSocket /var/run/clamav/clamd.sock

Start clamav-milter

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

and restart sendmail.