how to recover imap mail/ dir from old server, import into new
mjaw at ikp.pl
Thu May 25 08:26:10 EDT 2006
On Thu, 2006-05-25 at 12:17 +0100, Steve Howe wrote:
> Hi there,
> First time posting here so apologies if this question has (most likely)
> been asked before. have looked in the archives of this list but can't
> find it.
> My Cyrus Imapd mail server has crashed (hardware error). I have access
> to the hard drives but it has taken me some time to buy a new server and
> install a new cyrus imapd.
> Basically, I've got my previous server's /var/spool/cyrus/mail/
> directory with all it's subfolders (s/user/stephen etc) and I'd like to
> import the mail files in there (1. 2. 3. etc) into my new
> imapd's mailstore. I've read and experimented that it's not a case of
> just dump the mails in the appropriate folder, since a mail has to go
> through the proper channels,
> be registered in cyrus.index etc so that my mail client knows which
> headers are available, which files they relate to etc.
> Is there a tool available for this purpose please?
First you have to ask a question how big is the difference in the
internal structure used by your old cyrus ( you forgot to give us the
version ) and the one you're preparing now.
It may be you can simply copy whole old tree and tell cyrus to
reconstruct mailboxes ( check 'reconstruct' binary ).
I add my question: in the old times ( 1.6 ) one needed to
"reconstruct" quota manually ( ie. count the mailbox on his own and
create quota files manually ). Is it still the case?
Miroslaw "Psyborg" Jaworski
GCS/IT d- s+:+ a C++$ UBI++++$ P+++$ L- E--- W++(+++)$ N++ o+ K- w-- O-
M- V- PS+ PE++ Y+ PGP t 5? X+ R++ !tv b++(+++) DI++ D+ G e* h++ r+++ y?
More information about the Info-cyrus