HELP: Can't fix quota, it seems renamed-back mailbox doesn't exists at all

Javier Angulo javier at jangulo.net
Wed Dec 5 04:53:14 EST 2018



On 12/4/18 5:53 PM, Heiler Bemerguy via Info-cyrus wrote:
> Hail, this is a Cyrus 2.5.10-3 on Debian 9
> 
> A mailbox was accidentaly deleted, as the log shows:
> 
> Dec  4 11:56:42 localhost cyrus/imap[27354]: Rename:
> user.planejamento^funbosque -> DELETED.user.planejamento^funbosque.5C0695AA
> Dec  4 11:56:42 localhost cyrus/imap[27354]: Deleted mailbox
> user.planejamento^funbosque
> Dec  4 11:56:42 localhost cyrus/imap[27354]: Rename:
> user.planejamento^funbosque.Drafts ->
> DELETED.user.planejamento^funbosque.Drafts.5C0695AA
> Dec  4 11:56:42 localhost cyrus/imap[27354]: Deleted mailbox
> user.planejamento^funbosque.Drafts
> Dec  4 11:56:42 localhost cyrus/imap[27354]: Rename:
> user.planejamento^funbosque.Junk ->
> DELETED.user.planejamento^funbosque.Junk.5C0695AA
> Dec  4 11:56:42 localhost cyrus/imap[27354]: Deleted mailbox
> user.planejamento^funbosque.Junk
> Dec  4 11:56:42 localhost cyrus/imap[27354]: Rename:
> user.planejamento^funbosque.Sent ->
> DELETED.user.planejamento^funbosque.Sent.5C0695AA
> Dec  4 11:56:42 localhost cyrus/imap[27354]: Deleted mailbox
> user.planejamento^funbosque.Sent
> Dec  4 11:56:42 localhost cyrus/imap[27354]: Rename:
> user.planejamento^funbosque.Spam ->
> DELETED.user.planejamento^funbosque.Spam.5C0695AA
> Dec  4 11:56:42 localhost cyrus/imap[27354]: Deleted mailbox
> user.planejamento^funbosque.Spam
> Dec  4 11:56:42 localhost cyrus/imap[27354]: Rename:
> user.planejamento^funbosque.Trash ->
> DELETED.user.planejamento^funbosque.Trash.5C0695AA
> Dec  4 11:56:42 localhost cyrus/imap[27354]: Deleted mailbox
> user.planejamento^funbosque.Trash
> 
> I renamed it back to try to recover it, manually with cyradm:
> 
> Dec  4 12:59:38 localhost cyrus/imap[39601]: Rename:
> DELETED.user.planejamento^funbosque.5C0695AA -> user.planejamento^funbosque
> Dec  4 12:59:38 localhost cyrus/imap[39601]: Deleted mailbox
> DELETED.user.planejamento^funbosque.5C0695AA
> Dec  4 13:02:03 localhost cyrus/imap[39601]: Rename:
> DELETED.user.planejamento^funbosque.Drafts.5C0695AA ->
> user.planejamento^funbosque.Drafts
> Dec  4 13:02:03 localhost cyrus/imap[39601]: Deleted mailbox
> DELETED.user.planejamento^funbosque.Drafts.5C0695AA
> Dec  4 13:02:27 localhost cyrus/imap[39601]: Rename:
> DELETED.user.planejamento^funbosque.Junk.5C0695AA ->
> user.planejamento^funbosque.Junk
> Dec  4 13:02:27 localhost cyrus/imap[39601]: Deleted mailbox
> DELETED.user.planejamento^funbosque.Junk.5C0695AA
> Dec  4 13:02:54 localhost cyrus/imap[39601]: Rename:
> DELETED.user.planejamento^funbosque.Sent.5C0695AA ->
> user.planejamento^funbosque.Sent
> Dec  4 13:02:54 localhost cyrus/imap[39601]: Deleted mailbox
> DELETED.user.planejamento^funbosque.Sent.5C0695AA
> Dec  4 13:03:20 localhost cyrus/imap[39601]: Rename:
> DELETED.user.planejamento^funbosque.Spam.5C0695AA ->
> user.planejamento^funbosque.Spam
> Dec  4 13:03:20 localhost cyrus/imap[39601]: Deleted mailbox
> DELETED.user.planejamento^funbosque.Spam.5C0695AA
> Dec  4 13:04:18 localhost cyrus/imap[39601]: Rename:
> DELETED.user.planejamento^funbosque.Trash.5C0695AA ->
> user.planejamento^funbosque.Trash
> Dec  4 13:04:18 localhost cyrus/imap[39601]: Deleted mailbox
> DELETED.user.planejamento^funbosque.Trash.5C0695AA
> 
> All the files are there on the filesystem, but the quota usage isn't
> right. I've already tried
> 
>   cyrus reconstruct -r -f user/planejamento^funbosque
>   cyrus quota -f user/planejamento^funbosque
>   cyrus quota -f user/planejamento.funbosque
> 
> And a full "cyrus check" with no luck.. The command LQ simply shows
> nothing. Like this:
> 
> 127.0.0.1> lq user/planejamento.funbosque
> 
> Any ideas?!
> 
> root at mailer:/var/spool/cyrus/mail/p/user/planejamento^funbosque# cat
> cyrus.header
> Cyrus mailbox header
> "The best thing about this system was that it had lots of goals."
>         --Jim Morris on Andrew
>         3e5650f459303706
> $MDNSent $Forwarded
> planejamento.funbosque  lrswipkxtecdan
> root at mailer:/var/spool/cyrus/mail/p/user/planejamento^funbosque# du -hs
> 570M    .
> 
> 


>From my experience (recently tested this on cyrus 3.0), quota info is
removed on deletion and you have to set it again after renaming back
from DELETED.

Cheers,
Javier.




More information about the Info-cyrus mailing list