> Sometimes one is not connected to the net & sometimes the 
> other is not. We want that each of the offline servers
> should forward its mail to the server connected to the net.
> Preferably this should be automated but even a minor
> configuration change that can be scripted is acceptable.
> 
> Does anybody have a suggestion how this can be implemented.

        To make your qmail box forward all mail to the sendmail relay, put
the line ':sendmailrelay.example.com' into /var/qmail/config/smtproutes.
You shouldn't need to restart anything; the next qmail-remote process to
start should read it in.

        To make your sendmail box forward all mail to the qmail relay,
adjust the DS, DR, and possibly DH settings in sendmail.cf and restart
sendmail.

        To make this happen automatically, have whatever process is going
onto or off of the net (pppd? pump? dhcp?) run a script upon changes.
You'll probably need that script to somehow rsh to the other box because
both will need to be modified.  Also, what happens when they're both
offline?  Do they forward mail back and forth until your LAN is saturated?

        This is a non-trivial task, and one that is beyond this list.
Frankly, I'm not sure I'd even bother trying, because you'll probably always
have it 90% complete and 10% broken, and I've coded some pretty ugly hacks
in my day.

        Not knowing what shoes you're in, I'd look into a different
solution, perhaps straightening out your connectivity, or making it so that
one of the boxes can route out to the internet by itself or using the other
as a gateway.

-- 
        gowen -- Greg Owen -- [EMAIL PROTECTED]
              SoftLock.com is now DigitalGoods!
 

Reply via email to