Escolar Documentos
Profissional Documentos
Cultura Documentos
Welcome to AFP548
advanced search Tuesday, May 03 2011 @ 03:02 pm MDT
The file will be inside ~/Library/Mail/IMAP-email-address, with an extension ".imapmbox". Copy this file to your Desktop.
3. backup mailboxes.db:
Don't have an account yet? Sign up
as a New User # cp mailboxes.db mailboxes.db-backup
Lost your password?
4. Using Workgroup Manager, set user cyrus's shell to bash
(Ed. note: Rather than give cyrus a shell you could just use
Poll
sudo -u cyrus
What's your favorite
OpenSource management tool?
to do the following steps.)
radmind
Puppet 5. su to cyrus, and dump the database to a text file:
Munki # su cyrus
Results # /usr/bin/cyrus/bin/ctl_mboxlist -d > /tmp/mboxlist.txt
73 votes | 1 comments 6. Edit the text file and remove the lines that contain the problem folders:
# pico /tmp/mboxlist.txt
7. remove mailboxes.db:
Hosting Provided By:
# rm mailboxes.db
If there are any remaining folders that print an error, they'll be listed when performing cyrus reconstruct: (ie.. user.someuser:
Mailbox does not exist).
11. Using Workgroup Manager, set user cyrus's shell back to /usr/bin/false.
12. Restart Mail using Server Admin
1. Create a fake imap email account. Don't use a real name or password. We want the account to remain offline.
2. Quit Mail
3. In the Finder, open the directory holding the newly-created INBOX.imapmbox file (It's in ~/Library/Mail/IMAP-something/").
5. Move the cached mail file you had copied to the Desktop to this folder. Rename the file to "INBOX.imapmbox".
6. Start Mail again, and click on the new account name. Your messages should reappear.
7. Copy the messages from this folder to another one, either IMAP or locally.
Make sure you keep this fake account offline, or else Mail will overwrite your cached mailbox with an empty one!
2
What's Related Story Options
Bynari Support Printable Story Format
Code Comments
More by Aaron
More from Articles
Advertising
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Cyrus IMAP Mailbox Recovery
Authored by: hkmacs on Thursday, August 26 2004 @ 04:05 am MDT
I'm having a problem whereby now after running the server quite happily for
4 months if I create a new user on the Server in Mail when I try to access the
account I get "IMAP command “SELECT” failed" so I'm presuming this is the
same problem. However when I follow your steps, when I enter su cyrus, I get
su:Sorry. What am I doing wrong?
[ Reply to This | # ]
Cyrus IMAP Mailbox Recovery - Authored by: macshome on Thursday, August 26 2004 @ 11:23 pm MDT
Cyrus IMAP Mailbox Recovery - Authored by: jerkyjerk on Tuesday, August 31 2004 @ 05:50 pm MDT
Cyrus IMAP Mailbox Recovery - Authored by: Anonymous on Saturday, February 05 2005 @ 11:14 pm MST
Recovering one user's mailbox
Authored by: rshah on Thursday, October 07 2004 @ 11:57 pm MDT
To reconstruct one mailbox just use this command
sudo -u cyrus /usr/bin/cyrus/bin/reconstruct -r -f user/xxx
or
I tried db_recover on the db files with no results. After reconstructing my mailboxes.db file, which contained one bad subfolder, all errors
vanished. Thank you! Gerhard Lehmann
[ Reply to This | # ]