Click to See Complete Forum and Search --> : Backup MX spool using qmail


Chase
11-15-2001, 02:39 PM
Hi!

I have one machine right now that is running qmail quite successfully. That machine has an uptime of 36 days right now, and the internet connection remains constant, with the exception of a few minor outages.

For those outages, I would like to setup another mailserver, off location, on a line I already have access to. I know how to setup the dns records to point to that as a backup MX spool, and I know how to setup qmail.

My question, is how would I configure both of the qmail machines, so that when the main one goes down, and the mail is routed to the second one, the second one accepts mail (rcpthosts and locals I'm guessing). Then, after that, how do I get the mail back to the main machine after it comes back up? I would like this all to happen automatically if possible.

Thanks!

Chase
11-18-2001, 03:16 PM
Can anyone even possibly point me in the right direction?

johnwebb
11-21-2001, 12:01 AM
I seem to recall reading that if you have the domain defined in the rcpthosts and not in the local or virtual qmail would look at the MX record and try to deliver the mail to the other server according to the default retry schedule. Sorry I do not recall were I read this, it may have been in the qmail mailing list archive.

Chase
11-21-2001, 02:17 AM
Originally posted by johnwebb:
<STRONG>I seem to recall reading that if you have the domain defined in the rcpthosts and not in the local or virtual qmail would look at the MX record and try to deliver the mail to the other server according to the default retry schedule. Sorry I do not recall were I read this, it may have been in the qmail mailing list archive.</STRONG>

I think I *MIGHT* have read that somewhere also... I'll try it, and get back! Thanks!

Chase
11-21-2001, 02:23 AM
Yep, I found that a few other places too. Just copy over the rcpthosts to the backup box, and qmail will handle everything else. It will automatically send mail to the MX server with higher priority at the default timing.

Thanks!

johnwebb
11-21-2001, 10:43 PM
Out of curiosity, what priorities did you use for your MX records?

Chase
11-22-2001, 01:55 AM
10 for default
20 for backup