Re: [Exim] Variable expansion

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Andrey Novikov
CC: exim-users
Subject: Re: [Exim] Variable expansion
On Mon, 28 Feb 2000, Andrey Novikov wrote:

> Hello,
>
> I have something like
> senders = "! root@*:/path/to/file/with/bad/addresses"
> in one of by directors, the problem is that when the file
> is empty or does not exist (these are valid situations for
> me) the expansion fails. How to overcome this?


The senders option is expanded. Therefore, put

senders = "!root@* : \
${if exists{/path/to/file/with/bad/addresses}\
{/path/to/file/with/bad/addresses}{/dev/null}}"

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