Re: [EXIM] Conditional route_list smarthost

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: H Huang
Fecha:  
A: exim-users
Asunto: Re: [EXIM] Conditional route_list smarthost
Philip Hazel writes:

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


Works like a charm!

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


Oops, maybe I didn't read hard enough. ;)

Thanks, Philip.

--
H Huang

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