EMERGENCY - Mail reset!

David Korpiewski davidk at cs.umass.edu
Tue Mar 24 21:23:52 EDT 2009


Actually it seems that running "/usr/bin/cyrus/bin/reconstruct -r -f 
user/username" bring back the mail but the seen information is gone.

At least it is a step in the right direction...



Mike Eggleston wrote:
> On Tue, 24 Mar 2009, David Korpiewski might have said:
> 
>> I had a situation where I shut down the cyrus system and did a database 
>> reset (ran these steps) to fix a problem with LMPTD (it worked btw).
>>
>>
>> # serveradmin stop mail
>> $ sudo -u cyrusimap bash
>> $ cd /var/imap/
>> $ rm db/*
>> $ rm db.backup?/*
>> $ rm deliver.db
>> $ rm tls_sessions.db
>> $ /usr/bin/cyrus/bin/ctl_mboxlist -d > mailboxes.txt
>> $ mv mailboxes.db mailboxes.db.old
>> $ /usr/bin/cyrus/bin/ctl_mboxlist -d < mailboxes.txt
>> # serveradmin start mail
>>
>>
>> If you noticed, the second to last step I left the "-d" instead of 
>> running "-u".  This instead created a blank mailboxes.db file.  The 
>> problem is that mail kept coming in between then and the five minutes 
>> that it took me to realize that I had screwed up.
>>
>> The problem is that everyone who received mail had their inbox reset so 
>> that their email numbers start back at "1.".  The bigger problem is that 
>> they can't read their email that was in their inbox before the email 
>> number got set to 1. and some of these people had THOUSANDS of emails.
>>
>> Can anyone help me figure out how to fix this problem?  It affects all 
>> my faculty in my department and they are pretty pissed off.
>>
>> Thanks
>> David
> 
> Morning David,
> 
> Would a ctl_cyrusdb -r to reconstruct the mailboxes fix the issue?
> 
> Mike

-- 
===========================================
David Korpiewski
Software Specialist I
CSCF - Computer Science Computing Facility
Department of Computer Science
Phone: 413-545-4319
Fax:   413-577-2285
===========================================


More information about the Info-cyrus mailing list