Re: [Exim] ACL formats

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Juha Saarinen
Date:  
À: exim-users@exim.org
Sujet: Re: [Exim] ACL formats
On Thu, 6 Jun 2002, Philip Hazel wrote:

> 1. A plain file inclusion (i.e. no lookup type) would work.
>
>    deny hosts = /the/file

>
> 2. If you want to use lookups, you will have to use two lookups
>
>    deny hosts = net24-lsearch;/the/file : net-lsearch;/the/file

>
> but since lsearch is going to do a linear scan of the file anyway, I
> would stick to (1). If your file is very big, then it might be worth
> converting it to a dbm or cdb file and using the two lookups.
>
> 3. You don't need to put a : on the lines for lsearch. It also accepts
> end of line or white space as a key terminator.


Many thanks, Philip. I discovered the net24-lsearch thing with a bit of
RTFM'ing, but I wasn't sure if you could do two lookups as per above.

I'll try the file inclusion, as it shouldnt' be too big.



--
Juha Saarinen