Re: [Exim] Routing, or is it?

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Jan Johansson
CC: exim-users
Subject: Re: [Exim] Routing, or is it?
On Thu, 21 Mar 2002, Jan Johansson wrote:

> > rewrite:
> > driver = redirect
> > domains = mupp.net
> > local_parts = whatever
> > data = the new address
> > redirect_router = route_to_x
> >
> > route_to_x:
> > driver = manualroute
> > transport = smtp
> > route_data = mupp.net another.server
> >
> > ... and that's it (assuming it's all happening at mupp.net. Might need
> > some changes if not.) One of the reasons for Exim 4 was to make it
> > easier to handle this kind of requirement.
>
> Hmmm, but how can i tell the manualrouter to only handle the message
> if it was passed down from rewrite: ?


Ensure that no other address is ever passed to route_to_x by putting a
"catchall" router that fails everything at the end of your routers, and
then putting route_to_x *after* it.

OR: To rewrite add "address_data = magicstring" and to route_to_x add
"condition = ${if eq{$address_data}{magicstring}{yes}{no}}".



--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.