[Pkg-exim4-users] Unable to eval from acl_m variable

James Riach james at jriach.co.uk
Sat Aug 22 13:27:21 UTC 2009


Andreas Metzler wrote:
> James Riach <james at jriach.co.uk> wrote:
> [...]
>   
>> # Drop connection if more than three recipients fail to verify
>>    drop
>>        !hosts        = +remote_hosts
>>        message    = Too many failed recipients
>>        domains    = +local_domains
>>        condition    = ${if >\
>>                        {$rcpt_fail_count}\
>>                        {1}\
>>                        {1}{0}}
>>        set acl_m_dict = ${lookup mysql\
>>                                {INSERT INTO dictbl \
>>                                VALUES ( '$sender_host_address', \
>>                                '${eval:$rcpt_fail_count+$acl_m_dfind');}}
>>     
>
>   
>> The above statement leaves me with the following error in mainlog:
>>     
>
>   
>> failed to expand ACL string "${lookup mysql{INSERT INTO dictbl VALUES ( 
>> '$sender_host_address', '${eval:$rcpt_fail_count+$acl_m_dfind');}}": 
>> error in expression evaluation: expecting operator (after processing "3+0")
>>     
>
> Shouldn't the eval contain *only* the addition, currently you seem to
> ask exim to add up "2" and "3;)". How about:
>           '${eval:$rcpt_fail_count+$acl_m_dfind}');}
>
> cu andreas
>
>   

Haha that's the ticket, can't believe I was so stupid to have missed 
that, it's so obvious now :D

Thanks Andreas this is much appreciated.

Regards,
James


More information about the Pkg-exim4-users mailing list