Re: [exim] RHS expansion a la mailertable

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tony Finch
Date:  
À: Victor Sudakov
CC: exim-users
Sujet: Re: [exim] RHS expansion a la mailertable
On Wed, 15 Feb 2006, Victor Sudakov wrote:
>
> fido:
>  transport = ifmail
>  driver = manualroute
>  route_list = \
>     \N^(.*)\.f149\.n5005\.z2\.fidonet\.org $1.f149.n5005.z2.fidonet.org ; \
>     \N^(.*)\.f49\.n5005\.z2\.fidonet\.org $1.f49.n5005.z2.fidonet.org ; \
>     \N^.*\.fidonet\.org f14.n5005.z2.fidonet.org


I'd do this differently, with a domainlist and two routers as follows:

# This lists the domains whose email is routed directly to the host with
# the same name as the domain. You can use a lookup in the domainlist if
# it gets long.

domainlist fido_direct_domains = *.f149.n5005.z2.fidonet.org :\
                                 *.f49.n5005.z2.fidonet.org


# ...

# directly routed fidonet domains

fido_direct:
driver = manualroute
domains = +fido_direct_domains
route_data = $domain
transport = ifmail

# default route for fidonet domains

fido_default:
driver = manualroute
domains = *.fidonet.org
route_data = f14.n5005.z2.fidonet.org
transport = ifmail

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