Re: [exim] Spamd + clamav and mail size check condition

Top Page
Delete this message
Reply to this message
Author: Ian FREISLICH
Date:  
To: Vahric MUHTARYAN
CC: exim-users
Subject: Re: [exim] Spamd + clamav and mail size check condition
"Vahric MUHTARYAN" wrote:
> Thanks Jakob ,
>
> acl_check_data: section spamd and clamav is working together at this moment
> if I apply condition to this ACL it will perform for both , right ? What I
> have to do if I want to apply different conditions to spamd and clamav !
>
> can I put different conditions under each section like this
>
> acl_check_data:
>
>   # Deny if the message contains a virus. Before enabling this check, you
>   # must install a virus scanner and set the av_scanner option above.
>   #
>   deny    malware   = *
>      ** condition = ${if <{$message_size}{1M}}
>           message   = This message contains a virus ($malware_name).


Except that you want the "condition" as your first statement because
the ACL evalutes statements in order. What you have here will still
run the AV scanner and then ignore the result, in stead of not
even running the AV scanner if the message is over 1M.

Ian

--
Ian Freislich