Deleted cyrus.* files
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 [EMAIL PROTECTED] localhost localhostreconstruct -r user/bad.user reconstruct: System I/O Error localhostdm user/bad.user 2] localhostsam user/[EMAIL PROTECTED] [EMAIL PROTECTED] all setaclmailbox: [EMAIL PROTECTED]: 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. Thank's a lot for any help. D.Flegl imapd.conf dump--- # DOMAINS virtdomains: on defaultdomain: domain.net # DIRECTORIES configdirectory: /var/imap partition-default: /var/spool/imap # SECURITY admins: cyrusadm [EMAIL PROTECTED] [EMAIL PROTECTED] lmtp_admins: cyruslmtp allowanonymouslogin: no allowplaintext: yes sasl_passwd_check: auxprop sasl_mech_list: plain login # OTHERS postmaster: postmaster unixhierarchysep: yes username_tolower: yes lmtp_downcase_rcpt: 1 ---END Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Deleted cyrus.* files
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. Outch. As a quick and dirty idea, couldn't you simply copy the cyrus.* files over from another mailbox and then reconstruct? I think that should work. Simon I've tried this: 1] $cyradm --user [EMAIL PROTECTED] localhost localhostreconstruct -r user/bad.user reconstruct: System I/O Error localhostdm user/bad.user 2] localhostsam user/[EMAIL PROTECTED] [EMAIL PROTECTED] all setaclmailbox: [EMAIL PROTECTED]: 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. Thank's a lot for any help. D.Flegl imapd.conf dump--- # DOMAINS virtdomains: on defaultdomain: domain.net # DIRECTORIES configdirectory: /var/imap partition-default: /var/spool/imap # SECURITY admins: cyrusadm [EMAIL PROTECTED] [EMAIL PROTECTED] lmtp_admins: cyruslmtp allowanonymouslogin: no allowplaintext: yes sasl_passwd_check: auxprop sasl_mech_list: plain login # OTHERS postmaster: postmaster unixhierarchysep: yes username_tolower: yes lmtp_downcase_rcpt: 1 ---END Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Deleted cyrus.* files
Hi, As a quick and dirty idea, couldn't you simply copy the cyrus.* files over from another mailbox and then reconstruct? I think that should work. ^-- I've tried this with cyrus.* files from another also new created mailbox. But it's still doesn't work. Also I've tried to copy cyrus.* from subfolder as Trash, or Sent subdirectory of the broken mailbox. This subfolders are still correct. Only inbox is broken. With web-intergface I see this subfolders correctly. Simon I've tried this: 1] $cyradm --user [EMAIL PROTECTED] localhost localhostreconstruct -r user/bad.user reconstruct: System I/O Error localhostdm user/bad.user 2] localhostsam user/[EMAIL PROTECTED] [EMAIL PROTECTED] all setaclmailbox: [EMAIL PROTECTED]: 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. Thank's a lot for any help. D.Flegl imapd.conf dump--- # DOMAINS virtdomains: on defaultdomain: domain.net # DIRECTORIES configdirectory: /var/imap partition-default: /var/spool/imap # SECURITY admins: cyrusadm [EMAIL PROTECTED] [EMAIL PROTECTED] lmtp_admins: cyruslmtp allowanonymouslogin: no allowplaintext: yes sasl_passwd_check: auxprop sasl_mech_list: plain login # OTHERS postmaster: postmaster unixhierarchysep: yes username_tolower: yes lmtp_downcase_rcpt: 1 ---END Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Deleted cyrus.* files
Hi, try reconstruct from command line. 1. login as cyrus. 2. /usr/local/cyrus/bin/reconstruct -r user/bad.user Thank's for a reply. I've tried but no effect. Reconstruct said: $/usr/local/cyrus/bin/reconstruct -r user/[EMAIL PROTECTED] domain.cz!user.bad^user: Mailbox has an invalid format and when I've tried this (without domain): $/usr/local/cyrus/bin/reconstruct -r user/bad.user $ Command has no response. And no log information. WBR. Dmitriy Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Deleted cyrus.* files
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. Isn't that what 'reconstruct -f' is supposed to do? I just tried it out with a test mailbox and it re-created the cyrus.* files just fine. I'm using version 2.3.11. -- Toomas Aas Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Deleted cyrus.* files
--On 21 February 2008 09:02:57 +0100 David Flegl [EMAIL PROTECTED] 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 [EMAIL PROTECTED] localhost localhostreconstruct -r user/bad.user reconstruct: System I/O Error localhostdm user/bad.user reconstruct is not a cyradm command. It's a separate binary, which you run directly from the shell. 2] localhostsam user/[EMAIL PROTECTED] [EMAIL PROTECTED] all setaclmailbox: [EMAIL PROTECTED]: 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. Thank's a lot for any help. D.Flegl imapd.conf dump--- # DOMAINS virtdomains: on defaultdomain: domain.net # DIRECTORIES configdirectory: /var/imap partition-default: /var/spool/imap # SECURITY admins: cyrusadm [EMAIL PROTECTED] [EMAIL PROTECTED] lmtp_admins: cyruslmtp allowanonymouslogin: no allowplaintext: yes sasl_passwd_check: auxprop sasl_mech_list: plain login # OTHERS postmaster: postmaster unixhierarchysep: yes username_tolower: yes lmtp_downcase_rcpt: 1 ---END Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html -- Ian Eiloart IT Services, University of Sussex x3148 Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Deleted cyrus.* files
That's it!! :-) Isn't that what 'reconstruct -f' is supposed to do? thank's a lot. This parameter helped me. First time (last night) I've tried this: $reconstruct -rf user/[EMAIL PROTECTED] and it was not helped me. It seems because of -r parameter. But I'm not sure. NOW I'M READY. Thank you all guys. -- D.Flegl Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Deleted cyrus.* files
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 [EMAIL PROTECTED] localhost localhostreconstruct -r user/bad.user reconstruct: System I/O Error localhostdm user/bad.user 2] localhostsam user/[EMAIL PROTECTED] [EMAIL PROTECTED] all setaclmailbox: [EMAIL PROTECTED]: lrswipcda: System I/O Error 3] logged as cyrus user to system: $ctl_cyrusdb -r try reconstruct from command line. 1. login as cyrus. 2. /usr/local/cyrus/bin/reconstruct -r user/bad.user WBR. Dmitriy Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Deleted cyrus.* files
David Flegl wrote: Hi, try reconstruct from command line. 1. login as cyrus. 2. /usr/local/cyrus/bin/reconstruct -r user/bad.user Thank's for a reply. I've tried but no effect. Reconstruct said: $/usr/local/cyrus/bin/reconstruct -r user/[EMAIL PROTECTED] domain.cz!user.bad^user: Mailbox has an invalid format and when I've tried this (without domain): $/usr/local/cyrus/bin/reconstruct -r user/bad.user $ Command has no response. And no log information. read /usr/local/cyrus/man/man8/reconstruct.8.gz and try to experiment with -p and -f. If it doesn't help, you can try to combine it with dump mboxlist, remove user account from dump, restore mboxlist (ctl_mboxlist(8)) and run reconstruct again or create user/account from cyradm. Don't forget backup user mailbox before experiments! WBR Dmitriy Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Deleted cyrus.* files
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 [EMAIL PROTECTED] localhost localhostreconstruct -r user/bad.user reconstruct: System I/O Error localhostdm user/bad.user 2] localhostsam user/[EMAIL PROTECTED] [EMAIL PROTECTED] all setaclmailbox: [EMAIL PROTECTED]: 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 Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html