On Tue, Jan 17, 2012 at 6:25 PM, David Kentwood
<[email protected]> 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