clamav-milter
is a very fast email scanner designed for
Sendmail. It's written entirely in C and only depends on 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/clmilter.sock, F=, T=S:4m;R:4m')dnl define(`confINPUT_MAIL_FILTERS', `clmilter')Check entry in
clamd.conf
of the form:
LocalSocket /var/run/clamd.sockStart clamav-milter
/usr/local/sbin/clamav-milter -lo /var/run/clmilter.sockand restart sendmail.