Re: [exim] Mysq llookup fails in exiscan acl

Top Page
Delete this message
Reply to this message
Author: Bob Johannessen
Date:  
To: exim-users
Subject: Re: [exim] Mysq llookup fails in exiscan acl
Craig Jackson wrote:
>> Craig Jackson wrote:
>>> Can someone tell me why the mysql lookup fails in acl_smtp_data?
>>> acl_exiscan:
>>>  warn  message = X-Cheetah-Spam: True
>>>          condition = ${if ! def:h_X-Spam:}
>>>          condition = ${if <{$message_size}{200k}{1}{0}}
>>>          set acl_m4 =  ${lookup mysql{DELIVER}{$value}{0}}
>>>          spam = mail/defer_ok
> DELIVER = SELECT use_spam_filter FROM users \
>         WHERE recipient = '${quote_mysql:$local_part}'


You can't (or at least shouldn't) use $local_part in the DATA
ACL. At that point, the message may have more then one recipient.


    Bob