[Pkg-exim4-users] Unable to eval from acl_m variable
    Andreas Metzler 
    ametzler at downhill.at.eu.org
       
    Sat Aug 22 11:38:53 UTC 2009
    
    
  
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
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
    
    
More information about the Pkg-exim4-users
mailing list