[EXIM] Conditional route_list smarthost

Page principale
Supprimer ce message
Répondre à ce message
Auteur: H Huang
Date:  
À: exim-users
Sujet: [EXIM] Conditional route_list smarthost

Is it possible to construct a condition route_list for smarthost?

I tried the following:

smarthost:
  driver = domainlist
  transport = remote_smtp
  route_list = "* ${if match{$header_from:}{*.usa.net} \
                {<smarthost1>}{<smarthost2>} bydns_a"


But was hit by the following error:

smarthost router deferred: smarthost router: failed to expand "${if":
unknown condition ""
*** Frozen ***

Any help appreciated.

--
H Huang

--
*** Exim information can be found at http://www.exim.org/ ***