Recovering of mailboxes

Jose Perez jvoorhees1 at gmail.com
Wed Sep 16 11:51:02 EDT 2009


HI all:

I'm running Cyrus IMAP 2.3.7 in a CentOS 5.3 box. We have about 400 users,
most of them POP3 users but some are IMAP users with their mail stored at
the mailserver.
I recently had a out of space problem, so I removed so many unnecesary files
(logs, backups, among others) and then restarted mail services (MailScanner,
MySQL, ClamAV, Cyrus IMAP, etc)... but I had this problem with Cyrus IMAP:

# /etc/init.d/cyrus restart
Apagando cyrus-imapd:                                      [  OK  ]
Exportando la base de datos cyrus-imapd :                  [  OK  ]

... ...
... ...

this takes so long that I decided to investigate what was the problem and I
found that /var/lib/imap/db uses 21 GB. Is is normal that uses so many
space? I found around 1700 files named log.000* and I just decided to not
use them:

# cd /var/lib/imap
# mv db db2
# cp -a db.backup db
# /etc/init.d/cyrus-imapd start

And then Cyrus IMAP started correctly (because /var/lib/imap/db.backup
ocuped just a few KB) but now IMAP users are telling me that their e-mails
are gone! However I can see that all their mails are under
/var/spool/imap/domain/X/XDOMAIN/u/user using a few hundreds of MB so I can
believe that their emails aren't gone.

What happened to users emails? How can I recover them?

I would appreciate some help, thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090916/7ae1b7e3/attachment.html 


More information about the Info-cyrus mailing list