Re: [Exim] How to try more than one router?

Página Inicial
Delete this message
Reply to this message
Autor: Andreas Metzler
Data:  
Para: exim-users
Assunto: Re: [Exim] How to try more than one router?
On Tue, Oct 14, 2003 at 12:57:52PM -0400, Daniel M. Drucker wrote:
> I am currently delivering all of my mail through a smarthost. I would like
> to make it so that, in the event that smarthost is not reachable, my machine
> instead attempts to deliver the mail itself.
>
> The first two entries in my routers section look like this:
>
> smarthost:
> driver = manualroute
> domains = ! +local_domains
> transport = remote_smtp
> route_list = * smarthost.myothersite.org
>
> # shouldn't ever use dnslookup unless smarthost fails
> dnslookup:
> driver = dnslookup

[...]
> Is there any way to do what I want? The only way I could think of offhand is
> something of a kludge

[...]

I have a worse one ;-)
condition = ${run {/bin/ping -q -c 1 smarthost.myothersite.org}{yes}{no}}

Using
#/bin/sh
echo quit | nc -w 1 -i 1 smarthost.myothersite.org smtp

instead of ping might work better.
                  cu andreas