Exim + Clamav scan only incomming body

Olgerdas

New member
Joined
May 22, 2015
Messages
4
Hello,

I try to configure clamav for scan incoming emails. For some reason it works only for outgoing emails. I configure clamav by this article:
https://help.directadmin.com/item.php?id=370

I try to change some settings:
Code:
# ACL that is used after the DATA command
check_message:
  deny message = This message contains malformed MIME ($demime_reason)
          demime = *
          condition = ${if >{$demime_errorlevel}{2}{1}{0}}
          !authenticated = *
  deny message = This message contains a virus or other harmful content ($malware_name)
          demime = *
          malware = */defer_ok
          !authenticated = *
  deny message = This message contains an attachment of a type which we  do not accept (.$found_extension)
          demime = bat:com:pif:prf:scr:vbs
          !authenticated = *
  warn message = X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
          !authenticated = *

  accept

Now authorized users can send without scan. But when not authorized user send email clamav wont scan.

Here log:
Code:
2016-05-10 16:46:21 1b07zR-0000a4-4o DKIM: d=XXXXXX s=20140206 c=relaxed/simple a=rsa-sha256 t=1462887980 l=130 [verification succeeded]
2016-05-10 16:46:21 1b07zR-0000a4-4o <= hardsoda@XXXXXX H=shark1.XXXXXX [xxx.216.xxx.81] P=esmtps X=TLSv1:DHE-RSA-AES256-SHA:256 CV=no S=1740 [email protected] T="tetsss" from <hardsoda@XXXXXX> for hxtest@XXXXXX
2016-05-10 16:46:21 1b07zR-0000a4-4o => hxtest <hxtest@XXXXXX> F=<hardsoda@XXXXXX> R=virtual_user T=virtual_localdelivery S=1853
2016-05-10 16:46:21 1b07zR-0000a4-4o Completed

I want to scan only incoming emails.
 
Have yout tryed to use latest exim SpamBlocker with ClamAV? It should be already configured once you install it without need to edit the confs.

Regards
 
Back
Top