Injecting a mail folder into a users inbox/restore from backup

John Wade jwade at
Wed Dec 5 09:19:18 EST 2012

We typically create a subfolder of the user's mailbox via cyradm or IMAP 
commands, restore the files from the backup into this subdirectory and 
run reconstruct.

Requires no thought.   Have used this far less since the delayed expunge 
was introduced.

Hope this helps,
John Wade
Oakton Community College

On 12/5/2012 5:03 AM, Adam Tauno Williams wrote:
> On Wed, 2012-12-05 at 11:47 +0100, Lars Schimmer wrote:
>> Hi!
>> Aas I never needed to do it yet, I want to ask for the best way to
>> restore users email which got lost...
>> Situation: running cyrus on debian with users and mailboxes.
>> User deleted on accident a folder in his INBOX (and cyrus did unlinked
>> the files and removed the folder from disk already).
>> I do backup from the INBOX structures on disk every night (in a basic
>> simple way, see it as a snapshot of the mail disks of cyrus).
>> Now I need a good way to inject the "old" folder
>> into the live cyrus system.
>> Is it easier to create a new user and copy with imap client?
>> Or just copy the folder content into a new created folder on users inbox?
> I typically just copy the message file(s) back, or in this case the
> folder, and run "reconstruct -r -f -k -s user.dude".  Hasn't failed me
> yet.
> A more elegant way would be nice, but until there is some type of
> dump/restore format, moving files around is what you've got.

More information about the Info-cyrus mailing list