jaxbeach
05-06-2006, 04:09 PM
I have two RAQ4s with the same users setup on both. One RAQ is a backup, which I need recently in an emergency, and the other is the main server. Currently both RAQs have mail in the user's spool files. How can I easily transfer the existing mail from one to the other?
Thanks
BruceT
05-07-2006, 11:23 PM
Copy the mbox file (or mail directory) for the user from the old server to the new one. You'll probably have to change ownerships etc as the two sites probably don't have the same group number, etc.
If you want to append the mail to an existing spool, copy it to a different filename (e.g., mbox.xfer) on the other server. Copy the existing mbox file to something else (mbox.copy), then append the two files to a third file (the object is to preserve the original mbox file):
cat mbox.xfer mbox.copy > mbox.joined
Then rename the "safe" mbox and put the new one in its place:
mv mbox mbox.safe
cp mbox.joined mbox
Check permissions etc., then have the user try getting their mail.