Re: [exim] RHS expansion a la mailertable

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Victor Sudakov
Date:  
À: exim-users
Sujet: Re: [exim] RHS expansion a la mailertable
Philip Hazel wrote:
> >
> > In mailertable (sendmail) I can write
> > .old-company.com = smtp:%1.new-company.com
> >
> > In the CGP routing table I can write:
> > *.old-company.com = *.new-company.com
> >
> > How do I achieve the same RHS expansion in an exim router (in route_data)?
>
> What do you actually want to achieve? There are two possibilities:
>
> (1) Rewrite addresses of the form *@*.old-company.com and then route on
> the rewritten address.
>
> (2) Don't rewrite, but route the mail as if addressed to *.new-company.


OK I will be very specific.

Let's take the following router definition:

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



How can I replace route_list with route_data here and achieve the same
functionality ? I want to move these routing rules into a separate file.


--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
sip:sudakov@???