Re: [exim] ACL problem

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tony Finch
Datum:  
To: Doug
CC: exim-users
Betreff: Re: [exim] ACL problem
On Mon, 25 Apr 2005, Doug wrote:
>
> I'm trying to add an ACL that accepts mail from certain networks
> (listed in exim-priviledged). However upon starting Exim, I see the
> following:
>
> 2005-04-25 14:19:48 failed to expand ""${if
> ${lookup{$sender_host_address}lsearch{/local/exim/etc/exim-priviledged}{yes}{no}}}""
> while checking a list: condition name expected, but found
> "${lookup{$sender"


As Exim is telling you, ${lookup is not a condition, so cannot be used
immediately after ${if. in fact, ${lookup has its own if/else
functionality, so you don't need to use it with ${if. Try

    ${lookup  {$sender_host_address} \
      lsearch {/local/exim/etc/exim-priviledged} \
              {yes} {no} }


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}