[exim] where do I add clamav to exim.conf (exim 4.5x)

Pàgina inicial
Delete this message
Reply to this message
Autor: Robert Cates
Data:  
A: Exim, Users
Assumpte: [exim] where do I add clamav to exim.conf (exim 4.5x)
Hi all,

somehow this seems to me to be a rather dumb questions, but I'm just not
sure where I should add this...

I would like to add the following (clamav config) to my (default) exim.conf
file, but where?:

# Reject messages that have serious MIME errors.
# This calls the demime condition again, but it
# will return cached results.
deny message = Serious MIME defect detected ($demime_reason)
demime = *
condition = ${if >{$demime_errorlevel}{2}{1}{0}}

   # Reject file extensions used by worms.
   # Note that the extension list may be incomplete.
   deny message = This domain has a policy of not accepting certain types of
attachments \
                  in mail as they may contain a virus.  This mail has a file
with a .$found_extension \
                  attachment and is not accepted.  If you have a legitimate
need to send \
                  this particular attachment, send it in a compressed
archive, and it will \
                  then be forwarded to the recipient.
   demime = exe:com:vbs:bat:pif:scr


# Reject messages containing malware.
deny message = This message contains a virus ($malware_name) and has been
rejected
malware = *


I have 'av_scanner = clamd:/var/run/clamav/clamd.ctl' added to my global
section, but the above is just not clear to me where it should go (let's say
in a default exim.conf file).

Also, should it come before SpamAssassin or after, or does it matter?

Thanks in advance!
Robert