M. Yu writes:
> Hello all,
>
> I am using Bruce Guetner's Qmail SRPMs with Courier-IMAP. I am planning to
> transfer mail services to another machine. Can I just copy the users'
> Maildir (with its contents) to the new machine? What I plan to do is this:
Won't work well (step #3 will make users very unhappy):
> 1. configure new machine as mail2
> 2. add user accounts to mail2
> 3. stop mail1 from receiving mails from users by unsetting RELAYCLIENT
> 4. wait till mail1 sends all mails currently in queue
> 5. stop qmail-smtpd on mail1
> 6. backup users' Maildir
> 7. transfer backup to mail2
> 8. disconnect mail1
> 9. rename mail2 to mail1
> 10. restart mail services on new mail1
Do this instead:
1. configure new machine as mail1 offline.
2. add user accounts to (new)mail1
3. unplug Ethernet for mail1 and plug in Ethernet for (new)mail1.
4. rename mail1 to be mail2.
5. plug mail2's Ethernet back in.
6. backup users' Maildir
7. transfer backup to mail1 (easy to say, but very time-consuming)
8. Leave mail2 running until its queue empties.
Optionally, if you wish to immediately reuse mail2, ensure that mail2
is allowed by mail1 to relay, and put the following line into
smtproutes:
:mail1
Send an ALRM signal to qmail-send on mail2. It will dump its queue
onto mail1. Once it's queue is empty, you may shut down mail2.
--
-russ nelson <[EMAIL PROTECTED]> http://russnelson.com | Government is the
Crynwr sells support for free software | PGPok | fictitious entity by which
521 Pleasant Valley Rd. | +1 315 268 1925 voice | everyone seeks to live at
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | everyone else's expense.