Re: [exim] ACL problem

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Doug
Date:  
À: exim-users
Sujet: Re: [exim] ACL problem
OK cool, thanks for that.

Does anyone already have an ACL that does this perchance? After say 50
messages have been received from an "external" host I'd like them to
see an error such as "Too many messsages for a non trusted host" (off
the top of my head .. ).

The actual line should have been:

${lookup{mask:$sender_host_address/24}lsearch{/local/exim/etc/exim-priviledged}{yes}{no}}

Sorry I had pasted it in from an older version of my configure.

Muchos danke,

Doug



On 4/25/05, Tony Finch <dot@???> wrote:
> 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}}
>