Re: [exim] relay_domains and transport files

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tony Finch
Date:  
À: schmerold1
CC: exim-users
Sujet: Re: [exim] relay_domains and transport files
On Sat, 30 Aug 2008, schmerold1@??? wrote:

> /etc/exim/relay_domains contains:
> dguebert.com
> gulfcoast-materials.com
>
> /etc/exim/transport contains:
> dguebert.com: mail.dguebert.com::2424
> gulfcoast-materials.com: mail.gulfcoast-materials.com::2424
>
> Then exim.conf contains:
>    domainlist relay_to_domains = /etc/exim/relay_domains
>  and
>    internal:
>      driver = manualroute
>      domains = +relay_to_domains
>      transport = remote_smtp
>      route_data = ${lookup{$domain}partial-lsearch{/etc/exim/transport}}


Dave Evans is right to suggest
domainlist relay_to_domains = partial-lsearch;/etc/exim/transport

But he didn't mention that you can then rewrite your router as follows,
to avoid having to keep two versions of the same lookup in sync, e.g. if
you replace the flat file with CDB or something.

  internal:
    driver = manualroute
    domains = +relay_to_domains
    route_data = $domain_data
    transport = remote_smtp


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}