Re: [exim] exim4 router redirect when fails

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: Chen Guoqiang
CC: exim-users
Subject: Re: [exim] exim4 router redirect when fails
On Tue, 8 Jan 2008, Chen Guoqiang wrote:
>
> Is there Any way to control router redirect(jump) to router C when router A
> fails.


Have a look at the pass_router option. Be warned that the routing
logic is complicated, and routers can fail or pass or decline, and this
option only deals with the pass situation. For more about this see:
http://www.exim.org/exim-html-current/doc/html/spec_html/ch03.html#SECTrunindrou

I would recommend writing your routers so that the logic is as simple as
possible, i.e. no complicated chains of logic. You should be able to do
everything you want using just the order of the routers and their
preconditions.

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