Re: [exim] Re: to smarthost via port 587

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Patrice Fournier
Fecha:  
A: Dan Jacobson
Cc: exim-users
Asunto: Re: [exim] Re: to smarthost via port 587
Quoting Dan Jacobson <jidanni@???>:

> D> Take a look at the 'port' option
> OK. Will try. I note that machine names and their port numbers are
> thus not kept together in the file. Inconvenient when wanting to
> switch from machine A on port X to machine B on port Y.


If using an external file or define, they can be set together... and
extracted as needed. Here's an example using an external file:

route_manual:
driver = manualroute
route_data =
${extract{1}{:}{${lookup{$domain}partial1-lsearch{/etc/exim/domains.manualroute}}}}
transport = remote_smtp_manual

remote_smtp_manual:
driver = smtp
multi_domain = false
port =
${extract{2}{:}{${lookup{$domain}partial1-lsearch{/etc/exim/domains.manualroute}}}{$value}{25}}

The /etc/exim/domains.manualroute file is formatted as:

domain1:    host1:port1
*.domain2:  host2:port2


If using hostlists, it would be more complicated...


--
Patrice Fournier