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}}
  deny message = This message contains a virus or other harmful content
($malware_name)
  demime = *
  malware = */defer_ok
  deny message = This message contains an attachment of a type which we  do
not accept (.$found_extension)
  demime = bat:com:pif:prf:scr:vbs
  warn message = X-Antivirus-Scanner: Clean mail though you should still
use an Antivirus

I got the above from a Directadmin tutorial

thanks again

On Tue, Jan 17, 2012 at 6:39 PM, Brian Morrison <b...@fenrir.org.uk> wrote:

> On Tue, 17 Jan 2012 18:28:29 -0500
> David Kentwood <david.kentw...@gmail.com> wrote:
>
> > What happens if virus is detected by ClamAV, does the email gets deleted
> > automatically? or do I have to delete the infected mail manually
> afterwards?
>
> Normally you would configure Exim to refuse the email if it is shown as
> infected, so reject at SMTP time and thus never actually deliver the
> email.
>
> --
>
> Brian Morrison
>
>                "I am not young enough to know everything"
>                                                          Oscar Wilde
> _______________________________________________
> 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

Reply via email to