Re: [Exim] lookup like a host list?

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Marc Haber
Data:  
Para: exim-users
Assunto: Re: [Exim] lookup like a host list?
On Mon, 4 Mar 2002 20:52:00 +0000 (GMT), Philip Hazel
<ph10@???> wrote:
>On Mon, 4 Mar 2002, Marc Haber wrote:
>> exim 3 takes a host list for some configuration options, for example
>> for host_accept_relay. Is there a way to do the same kind of lookup in
>> a string expansion, for example with the lookup function?
>
>I don't understand the question. Lookups are available in string
>expansions. What am I missing in your question?


A host list lookup seems to do a lot more than a normal lookup. I'd
like to be able to write something like
if ("${lookup{$sender_host_address} host-list {/etc/exim/scan_hosts}
{$value}}" is "scan)
which would do the lookup in /etc/exim/scan_hosts like for a host
list, e.g. automatically match IP addresses, probably in CIDR
notation, _and_ host names, probably with wild cards.

Greetings
Marc

--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29