Recovering of mailboxes
simon.matter at invoca.ch
Wed Sep 16 12:26:43 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
> (logs, backups, among others) and then restarted mail services
> 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
> 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
> believe that their emails aren't gone.
> What happened to users emails? How can I recover them?
Did you try to run reconstruct? Something like
su - cyrus -c "/usr/lib/cyrus-imapd/reconstruct -r -f user.xxxxxxxxx"
More information about the Info-cyrus