Deleted cyrus.* files
Andrew Morgan
morgan at orst.edu
Thu Feb 21 13:58:47 EST 2008
On Thu, 21 Feb 2008, David Flegl wrote:
> Hi all,
> I've a big broblem with my one mailbox. May someone help me, please?.
>
> User has got more then 3.500 messages in his mailbox and asked me to
> remove them directly without web-interface (SquirrelMail).
>
> I've unfortunattelly removed all file include cyrus.header, cyrus.index
> & cyrus.cache. And now I'm not able neither reconstruct nor delete mailbox.
>
> I've tried this:
> 1]
> $cyradm --user cyrusadm at domain.cz localhost
> localhost>reconstruct -r user/bad.user
> reconstruct: System I/O Error
> localhost>dm user/bad.user
>
> 2]
> localhost>sam user/bad.user at domain.cz cyrusadm at domain.cz all
> setaclmailbox: cyrusadm at domain.cz: lrswipcda: System I/O Error
>
> 3]
> logged as cyrus user to system:
> $>ctl_cyrusdb -r
>
> It's historical system FreeBSD 4.11R, cyrus-imapd-2.2.13_2,
> cyrus-sasl-2.1.22.
It sounds like you already fixed this, but the solution is very similar to
my steps for recovering a mailbox from backups. All you need to do is
create an empty cyrus.header file, then run reconstruct and quota, like
so:
touch cyrus.header
chown cyrus:mail cyrus.header
chmod 600 cyrus.header
su cyrus -c '/usr/local/cyrus/bin/reconstruct -x -f user.username'
su cyrus -c '/usr/local/cyrus/bin/quota -f user.username'
Andy
More information about the Info-cyrus
mailing list