Re: [Exim] reading a host list from a file whose name the re…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Marc Haber
CC: exim-users
Betreff: Re: [Exim] reading a host list from a file whose name the result of an expansion
On Mon, 7 Apr 2003, Marc Haber wrote:

> deny message = go away
>    hosts = /etc/exim4/local_host_blacklist

>
> everything works as desired. I can write host names, IP addresses and
> network/prefix in the file and the hosts named in the file are
> blocked.
>
> However, when I want to have that option in the default configuration
> of exim in a Linux distribution, I can't have exim failing on me if
> the file does not exist. So, I wrote:
>
> deny message = go away
>    hosts = ${if exists{/etc/exim4/local_host_blacklist}\
>               {/etc/exim4/local_host_blacklist}\
>               {}}

>
> However, exim does seem to interpret the string returned by that
> expression as a host name instead of a file.


It shouldn't. I'm going to suggest you use "exim -d -bh ...." again to
try to see what is going on.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.