[Exim] reading a host list from a file whose name the result…

Top Page
Delete this message
Reply to this message
Author: Marc Haber
Date:  
To: exim-users
Subject: [Exim] reading a host list from a file whose name the result of an expansion
Hi,

when I have in my acl

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.

Any idea how to solve this?

Greetings
Marc, having spent his first time with exim 4 acls and being quite
impressed

--
-------------------------------------- !! 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