Re: [exim] Mysq llookup fails in exiscan acl

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Bob Johannessen
Data:  
Para: exim-users
Assunto: 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