On Mon, 26 Jul 1999, torben fjerdingstad wrote:
> I wish smtproutes could take a prioritized list of destinations.
>
> Our workstations has jam.net.uni-c.dk defined as "smarthost",
> using smtproutes, which contains
> :jam.net.uni-c.dk
>
> If that host is down, my outgoing mail is deferred, and I
> am not notified.
>
> It would be nice if having
>
> :jam.net.uni-c.dk
> :nn.net.uni-c.dk
>
> in smtproutes would try jam first, then nn.
>
> What are my options? I cannot send mail out directly because
> of a firewall.
a little simplistic, but I'd run a script on cron once, say, every 10
minutes that will ping a packet to Jam, and swap to a backup version of
smtproutes and notify you if there's no echo, only to be swapped back and
check again in the next execution. pinging when up will return exit code
of 0, ping timed out will return 1 and host doesn't exist gives 2 (DNS
dead?). I'm not aware of an internal qmail solution.
taking it a step forward, you could use serialmail and check the load
balances on those two relays before releasing outgoing mail once a minute,
but that's just an overkill and delays mail :)