Sendmail & ClamAV
How easy is it to integrate ClamAV into the Sendmail MTA? Too easy! Thanks to an excellent FreeBSD port, you can configure ClamAV to build a mail filter that will scan mail before being delivered to users.
Simply build the ClamAV port and make sure to enable the extra clamav-milter option. Then append the following to your sendmail.mc file:
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m')dnl
The most important part is to make sure that if you already have a milter enabled, like milter-greylist that you include all of them in the configuration.
define(`confINPUT_MAIL_FILTERS', `greylist, clmilter')
Start up the ClamAV services, then restart sendmail and the system is all set.