Re: [EXIM] Conditional route_list smarthost

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: H Huang
CC: exim-users
Sujet: Re: [EXIM] Conditional route_list smarthost
On 14 Dec 1998, H Huang wrote:

> 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"


You need to quote the second item because it contains spaces. Try

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


The manual does tell you this explicitly in the section called "Host
list format" for the domainlist router.

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



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