Re: [Exim] Router Preconditions

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Marc Perkel
CC: exim-users
Assumpte: Re: [Exim] Router Preconditions
On Mon, 25 Nov 2002, Marc Perkel wrote:

> That doesn't seem to work. I have a "senders" statement in the router.
> Is that being evaluated before the condition? It seems that the
> condition is being ignored.


The order of testing is documented in section 3.9. On looking at that, I
see that in fact require_files is tested before condition, and senders
is tested before both of them.

If you want to test for the existence of a file before "senders", you
can write

senders = ${if exists{/some/file}{your senders list}{never@???}}

If the file does not exist, you will end up with

senders = never@???

and, assuming that no sender can ever be that address, the router will
be skipped.

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