That's a neater solution than what I found. Thanks. Just wondering, how do you set variables such as $malware_name? or are the variables automatically set by Exim or by the ClamAV?
On Thu, Jan 19, 2012 at 10:06 AM, Todd Lyons <tly...@ivenue.com> wrote: > On Tue, Jan 17, 2012 at 6:25 PM, David Kentwood > <david.kentw...@gmail.com> wrote: > > Sorry i am not experienced with exim configuration. When you say "reject > at > > SMTP time", does adding the following to exim.conf suffice? > > > > check_message: > > deny message = This message contains malformed MIME ($demime_reason) > > demime = * > > condition = ${if >{$demime_errorlevel}{2}{1}{0}} > <snip> > > I got the above from a Directadmin tutorial > > Here's how I do it in mine. First I set in global setting: > > # Path to your clamav unix socket or network socket > av_scanner = clamd:/var/clamav/clamd.sock > > Then I put this somewhere early in the data acl: > > # Reject viruses > deny message = Contains a virus, malware, or is Phishing: > $malware_name > malware = * > > Run 'exim -bV' and make sure that the changes don't generate any > errors. As an example, if I typo one line, it will tell me: > > 2012-01-19 15:05:35 Exim configuration error in line 86 of > /etc/exim/exim.conf: > main option "avi_scanner" unknown > > Regards... Todd > -- > SOPA: Any attempt to [use legal means to] reverse technological > advances is doomed. --Leo Leporte > _______________________________________________ > Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net > http://www.clamav.net/support/ml > _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml