correct wrong entries in mailboxes.db ?

Andrew Morgan morgan at orst.edu
Mon Jan 29 15:47:57 EST 2007


On Sun, 28 Jan 2007, peter pilsl wrote:

>
> I manually deleted the whole content of spool/user/SOMEUSER  to get rid of 
> all the mails and subboxes in it.
> Big Mistake.
>
> Cause cyrus still knows about all the subboxes that this user was supposed to 
> have. How do I tell cyrus that there are no subboxes anymore.
>
> I already tried to delete the mailboxes with cyradm, but I get a System 
> I/O-Error.
>
> I was thinking about reconstruct -m, but this would reconstruct the 
> mailboxes-file for all user on the system, which I'm afraid of (its a 
> productional system I cant shut down) and would take long time, cause there 
> are many users with many mailboxes.

        -m     NOTE: CURRENTLY UNAVAILABLE
               Rebuild the mailboxes file.  Use whatever data in the 
existing mailboxes file it can scavenge, then scans all parti-
               tions listed in the imapd.conf(5) file for additional 
mailboxes.

So, reconstruct -m wouldn't do anything for you anyways.  :)

> would ctl_mboxlist -d, manually editing and then loading with ctl_mboxlist -u 
> do what I want? Again, I fear to ruin something when doing such a critical 
> step.

That will definately work, but I believe it requires that you take cyrus 
offline while you do it.  Does anyone know this for sure?

Another possibility is to "rebuild" the original filesystem structure so 
that cyrus can reconstruct the mailbox.  You could try creating a 
filesystem structure that matches what cyrus expects, and put a 
cyrus.header file in each of those directories.  Then run "reconstruct -f 
user.username" as the cyrus user.  If you can get it back to a working 
state, then you can remove it correctly using cyradm.

 	Andy


More information about the Info-cyrus mailing list