著者: Daniel M. Drucker 日付: To: exim-users 題目: [Exim] How to try more than one router?
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:
This, of course, doesn't actually work -- one a message is accepted by the
smarthost router, it doesn't let go of it - it goes into the defer state,
and begins the retry schedule. No message that maches ! +local_domains will
ever make it to the dnslookup router.
Is there any way to do what I want? The only way I could think of offhand is
something of a kludge -- I was going to make a condition that checks a file
for some string, and that string is added/removed by an external program
that continually checks the availability of the smarthost. I'm hoping theres
a way that won't involve such ugliness.