On 15-Jun-98 at 09:30:46 Dom Mitchell wrote:
>
> I am trying to set up a router which will route mail to addresses on our
> intranet only. At present, all such hosts have no domain name attached
> and are only accessible via a hosts file (soon, I will sort out DNS...).
> I thought that I could use a router like this to achieve the desired
> effect:
>
> pandhhost:
> driver = lookuphost
> transport = remote_smtp
> gethostbyname
> condition = match {$domain}{^[^.]\$}
>
> However, it's become apparent that the condition clause is not working.
> Does anybody know how the above should be specified?
>
Likewise I have been trying to set up (albeit a somewhat complicated)
condition on a director. The above 'looks' okay - but in the manual (1.90)
under the 'delay_warning_condition' it shows the use of '${if'. I found that
just using 'match...' didn't work but had to use ${if as well. Where a logical
answer is required, as in condition and delay_warning_condition, it doesn't
seem to be enough just to state the logical condition but must express it as
an if statement.
Likewise, which is what I'm trying to do, when a file lookup is used and the
result is true or false, it does not seem possible to substitute the logical
true answer for a further logical test - e.g.:
${lookup .... {yes} {no} this is the usual case
${lookup .... {match {$value} {$local_part} {yes} {no}} {no}
in this case I'm trying to say that if the lookup suceeds
then I want to return 'yes' only if $value=$local_part
else return 'no'.
Anyway, exim doesn't seem to like this, so I may have to use a bit more
long-winded condition statement.
John.
-----------------------------------------------------------------------------
John Horne E-mail: J.Horne@???
Academic and Information Services Phone : +44 (0) 1752 - 233911
University of Plymouth, UK Fax : +44 (0) 1752 - 233919
--
*** Exim information can be found at
http://www.exim.org/ ***