Re: [Exim] Exim 4 - problem mixing acls with hostlists

Page principale
Supprimer ce message
Répondre à ce message
Auteur: John Horne
Date:  
À: exim-users
Sujet: Re: [Exim] Exim 4 - problem mixing acls with hostlists
On 27-Mar-2002 at 11:29:28 Philip Hazel wrote:
> On Wed, 27 Mar 2002, John Horne wrote:
>
>> PLYM_NET = 141.163.0.0/16
>> ISP = 194.164.0.0/16
>>
>> hostlist external_hosts = ! PLYM_NET : ! 127.0.0.0/8
>> hostlist rbl_hosts = +external_hosts : ! ISP
>
> Negation is always tricky, unfortunately. How about doing it the
> other way round? For example:
>
> hostlist internal_hosts = PLYM_NET : 127.0.0.0/8
> hostlist rbl_hosts = !+internal_hosts : ! ISP
>

Having thought about it, I haven't tried it yet, would the above work?
Doesn't '!+internal_hosts' expand to:
  ! 141.163.0.0/16 : ! 127.0.0.0/8 : *          (note the implied ':*')


If so, then I'm in the same situation whereby the ISP is not seen because
of the '*'. If not, then (I assume) negated named lists do not have an
implied ':*' on the end?



John.

------------------------------------------------------------------------
John Horne, University of Plymouth, UK           Tel: +44 (0)1752 233914
E-mail: jhorne@???
PGP key available from public key servers