[Exim] Localhost_number problem

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: John Horne
Fecha:  
A: Exim Users List
Asunto: [Exim] Localhost_number problem
Hello,

Using exim 3.16 I am trying to set the 'localhost_number' using an 'if'
statement. If I use:

localhost_number = ${if eq {MAILHUB_TYPE} {master} {1} {2} }

then this works okay. 'MAILHUB_TYPE' is a macro defined at the top of the
configure file. However, if the MAILHUB_TYPE is not 'master', but is 'slave'
then I want the value set to 2 and if it is anything else then set it to 0.
So, I tried:

  localhost_number = ${if eq {MAILHUB_TYPE} {master} {1} \
                             {${if eq {MAILHUB_TYPE} {slave} {2} {0} } } }



However, this gives a configuration error:

  2000-09-11 16:42:59 Exim configuration error
    localhost_number value is not a number: 2


It's got to be something simple, but it looks okay to me.

Any ideas?

Thanks,

John.

------------------------------------------------------------------------
John Horne, University of Plymouth, UK           Tel: +44 (0)1752 233914
E-mail: jhorne@???
PGP key available from public key servers