Re: [exim] Per domain ACL condition

Top Page
Delete this message
Reply to this message
Author: Peter Bowyer
Date:  
To: Exim, Users
Subject: Re: [exim] Per domain ACL condition
On 11/07/06, Jason Stanley <jasons@???> wrote:
> <snip>
>        warn malware = *
>        condition = ${if eq {${lookup mysql{SELECT virus_chk FROM domains WHERE domains='${domain}'}}}{yes}}
>        message = X-Virus: Yes
>        log_message = VIRUS_FOUND:$malware_name FROM:$sender_address TO:$recipients
> </snip>


As is explained in the docs, $domain is not available in the DATA acl
because there may be more than one domain. This is a VFAQ - check the
content scanning docs for ways round it.

http://www.exim.org/eximwiki/ExiscanExamples is a good summary.

Peter

--
Peter Bowyer
Email: peter@???