EMERGENCY - Mail reset!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




-- 
===========================================
David Korpiewski
Software Specialist I
CSCF - Computer Science Computing Facility
Department of Computer Science
Phone: 413-545-4319
Fax:   413-577-2285
===========================================
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux