Re: reconstructing mailboxes


Subject: Re: reconstructing mailboxes
From: Henry Umansky (hmust2+@pitt.edu)
Date: Wed Apr 30 2003 - 14:04:10 EDT


Thank you for your help, however I still can't seem to get it to work.
Below I listed a bit more information you asked for (everything with the
"sh-2.04$" prompt is with user cyrus):

Cyrus version:
[root@herosoftware /root]# rpm -qa | grep cyrus
cyrus-sasl-1.5.24-22.7
cyrus-sasl-devel-1.5.24-22.7
cyrus-sasl-gssapi-1.5.24-22.7

and imap.conf has:
[root@herosoftware /root]# cat /etc/imapd.conf
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus
srvtab: /var/imap/srvtab
allowanonymouslogin: no
tls_ca_file: /var/imap/server.pem
tls_cert_file: /var/imap/server.pem
tls_key_file: /var/imap/server.pem

no matter what user I put in there it still gives me an error:

sh-2.04$ ./reconstruct user/henry at herosoftware dot com
user/henry at herosoftware dot com: Mailbox does not exist

sh-2.04$ ./reconstruct user dot henry at herosoftware dot com
user dot henry at herosoftware dot com: Mailbox does not exist

sh-2.04$ ./reconstruct user.henry
user.henry: Mailbox does not exist

Here's what syslog says:

sh-2.04$ ./ctl_mboxlist -d
fatal error: can't read mailboxes file
sh-2.04$ tail /var/adm/imapd.log
Apr 30 13:00:38 herosoftware ctl_mboxlist[28274]: DBERROR db3:
/var/imap/mailboxes.db: unexpected file type or format
Apr 30 13:00:38 herosoftware ctl_mboxlist[28274]: DBERROR: opening
/var/imap/mailboxes.db: Invalid argument
Apr 30 13:00:38 herosoftware ctl_mboxlist[28274]: DBERROR: opening
/var/imap/mailboxes.db: cyrusdb error
Apr 30 13:01:35 herosoftware ctl_mboxlist[28279]: DBERROR db3:
/var/imap/mailboxes.db: unexpected file type or format
Apr 30 13:01:35 herosoftware ctl_mboxlist[28279]: DBERROR: opening
/var/imap/mailboxes.db: Invalid argument
Apr 30 13:01:35 herosoftware ctl_mboxlist[28279]: DBERROR: opening
/var/imap/mailboxes.db: cyrusdb error

I do have proper permission for config directory and partition are:
drwxr-x--- 14 cyrus mail 4096 Apr 30 08:22 /var/imap/
drwxr-x--- 6 cyrus mail 4096 Apr 29 10:36 /var/spool/imap/

-Henry

--On Wednesday, April 30, 2003 6:21 PM +0200 Christian Schulte
<cs at schulte dot it> wrote:r

> Henry Umansky wrote:
>
>> No matter what I try, it seems like I can't recover my mailboxes.
>>
>> sh-2.04$ ./reconstruct -m
>> reconstructing mailboxes.db currently not supported
>>
>> sh-2.04$ ./reconstruct -r user
>> user: Mailbox does not exist
>
> This will definetly want to be a complete mailbox description! How it is
> represented in cyrus depends on your version and imapd.conf! Try
> "reconstruct -r user.username" or "reconstruct user/username" or
> "reconstruct user/username@cyrus-virt-domain" ! It works! Only
> reconstruct -m currenty is not supported...
>
>>
>> sh-2.04$ ./ctl_mboxlist -d
>
> Are you running all these as the cyrus-user ?
>
>>
>> fatal error: can't read mailboxes file
>
> What does syslog tell you about it ? Do you have propper permissions on
> configdirectory and partitions ?
>
> --Christian--
>
>







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD