Work experience |

 Your Ad Here

Fixing broken mailbox in cyrus imap server |


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:
#su - cyrus -c "/usr/cyrus/bin/reconstruct -r user.john_doe" 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.

Comments:


Date: 04/05/2007 at 18:19:25
Poster: John Marchese

I have a cyrus mailbox that needs to be reconstructed. So not to make things worse, I decided to create a test user account to try it our. I copied some email messages into it from another mailbox and then run the reconstruct statement below

su - cyrus -c "/usr/lib/cyrus-imap/reconstruct -r user.test"

I recieve an error message

"id: cannot find name for user ID 76"

Could somone help out with this one.

Thank you
John

jmarches@misconsult.com



Name:
captcha