reconstructing mailboxes from backup

Tim Coote tim+kernel.org at coote.org
Tue Jun 23 09:42:03 EDT 2020


Hullo

I have a cyrus implementation on Fedora for a small (~10) users that’s been migrated through many versions of the various components, including several different of IMAP clients.

Realising the fragility of the setup, I thought I’d restore from a backup. However, I’m finding that several of the mailboxes are not being recovered. I feel that I am missing somethign obvious, but I cannot spot it. 

The restoring version of cyrus-imap is: cyrus-imapd-3.0.13-2.fc32.x86_64,

The restored filesystem layout can be summarised thus:

`sudo find /var/spool/imap/g | grep cyrus.header`:

/var/spool/imap/g/user/george/Notes/cyrus.header
/var/spool/imap/g/user/george/cyrus.header
/var/spool/imap/g/user/george/Sent Messages/cyrus.header
/var/spool/imap/g/user/george/Deleted Messages/cyrus.header
/var/spool/imap/g/user/george/Sent/cyrus.header
/var/spool/imap/g/user/george/Trash/cyrus.header
/var/spool/imap/g/user/george/INBOX/Sent Messages/cyrus.header
/var/spool/imap/g/user/george/INBOX/Deleted Messages/cyrus.header
/var/spool/imap/g/user/george/INBOX/Drafts/cyrus.header
/var/spool/imap/g/user/george/INBOX^Deleted Messages/cyrus.header
/var/spool/imap/g/user/george/Drafts/cyrus.header

[so I would expect all of the subdirectories to be reconstructed as mailboxes]

however, using:
`sudo -u cyrus reconstruct -r -f user/george`

I only get:
user/george
user/george/Deleted Messages
user/george/Drafts
user/george/INBOX.Deleted Messages
user/george/Notes
user/george/Sent
user/george/Sent Messages
user/george/Trash

ie no subdirectories below the top level, but excluding those directories below INBOX.
Should there be a file: `/var/spool/imap/g/user/george/INBOX/cyrus.header`? 

Is there anything that I should be doing/how can I recover the other mailboxes?



More information about the Info-cyrus mailing list