# Cyrus reconstruct
Fixing broken mailbox in cyrus imap server with reconstruct utility
If something wrong goes with your server’s mailbox(-es), try to fix using reconstruct utility. it rebuilds one or more IMAP mailboxes. It can be used to recover from almost any sort of data corruption. For example, your user named john_doe has some problems:
user.john_doe
user.john_doe.Drafts
user.john_doe.Sent
user.john_doe.Trash
“su – cyrus” – means that you sudo to cyrus user, “-c” means that you will execute single command and this command is /usr/cyrus/bin/reconstruct -r user.john_doe
reconstruct -r tries to reconstruct user.john_doe recursively (goes through all john_doe directories and subdirectories if any)
As you can see from example reconstruct utility checks/fixes john_doe, Drafts, Sent and Trash directories.
Also you can reconstruct using cyradm – Cyrus administration shell written on perl. See man cyradm for details.
