Re: [exim] - Need help on ACL statement (subcondition)

Top Page
Delete this message
Reply to this message
Author: Marc Sherman
Date:  
To: exim-users
Subject: Re: [exim] - Need help on ACL statement (subcondition)
Laurent RISSE wrote:
>
> My goal is to make a check on an peer consisting of a HELO string given
> by the remote host with a combination of a certain incoming IP address...


Jakob and Dan have told you how to fix your $if syntax. However, what
you're trying to do might be cleaner with a lookup, instead:

${if eq{$sender_host_address} \
  {${lookup{${lc:$sender_helo_name}}lsearch \
    {/etc/exim/heloips}{$value}fail}}}


where /etc/exim/heloips contains:

string1: XX.XX.XX.XX
string2: XX.XX.XX.XX
string3: XX.XX.XX.XX

Of course, my example would be much clearer if you hadn't obfuscated
your original question:

http://www.exim.org/eximwiki/DontObfuscate

- Marc