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: Abusing the sync protocol for fun and profit.
Bron Gondwana wrote: Attached are three perl modules, Cyrus/SyncClient.pm Cyrus/ImapReplica.pm Mail/IMAPTalk.pm I'm including this copy of Mail::IMAPTalk because without it, the clever 'literal' stuff doesn't work properly. I'll prod Rob to clean it up and re-package it and push it to CPAN so I can depend on that version and have things all be happier. Thanks Bron, This works great for me. I'm able to synchronize between my old 2.1.17 server, with a perdition proxy frontend end, to my newer 2.3.10 server. I had a hiccup in the SyncClient.pm module during DIGEST-MD5 authentication. I changed to PLAIN, using the following changes, to get it working: 42c42 my $mech = 'DIGEST-MD5'; --- my $mech = 'PLAIN'; 65c65 for (1..2) { --- for (1..1) { 69c69,72 $io-print(MIME::Base64::encode_base64($res, '') . \r\n); --- my $encoded_response = MIME::Base64::encode_base64($res, ''); if (! $encoded_response eq '') { $io-print($encoded_response . \r\n); } - Dan White 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
GUID change to SHA1
Hello I use FreeBSD 6.3 and cyrus 2.3.11. Below is the manual for the change. Upgrading from 2.3.9 * The method used for generating Globally Unique IDentifiers used for replication has been changed to be the SHA1 hash of the messages. If you wish to upgrade the existing GUIDs in particular mailbox(es) or the entire server, perform the following steps in the listed order. Note that is is NOT REQUIRED that existing GUIDs be upgraded. 1. Zero GUIDs on the replica (reconstruct -g) 2. Regenerate GUIDs on the master (reconstruct -G) 3. Regenerate GUIDs on the replica (reconstruct -G) Which is the master and which is the replica? Server 1 or Server 2? Here are my two cyrus.conf Server 1: START { # do not delete this entry! recover cmd=ctl_cyrusdb -r syncclient cmd=/usr/local/cyrus/bin/sync_client -r # this is only necessary if using idled for IMAP IDLE # idled cmd=idled } # UNIX sockets start with a slash and are put into /var/imap/socket SERVICES { # add or remove based on preferences imap cmd=imapd listen=imap prefork=0 provide_uuid=1 # imaps cmd=imapd -s listen=imaps prefork=0 pop3 cmd=pop3d listen=pop3 prefork=0 # pop3s cmd=pop3d -s listen=pop3s prefork=0 sieve cmd=timsieved listen=sieve prefork=0 # syncservercmd=/usr/local/cyrus/bin/sync_server listen=csync # syncclient cmd=/usr/local/cyrus/bin/sync_client -r # these are only necessary if receiving/exporting usenet via NNTP # nntp cmd=nntpd listen=nntp prefork=0 # nntpscmd=nntpd -s listen=nntps prefork=0 # at least one LMTP is required for delivery lmtp cmd=lmtpd listen=lmtp prefork=0 lmtpunix cmd=lmtpd listen=/var/imap/socket/lmtp prefork=0 # this is only necessary if using notifications # notify cmd=notifyd listen=/var/imap/socket/notify proto=udp prefork=1 } [snip] Server 2: # standard standalone server implementation START { # do not delete this entry! recover cmd=ctl_cyrusdb -r # this is only necessary if using idled for IMAP IDLE # idled cmd=idled } # UNIX sockets start with a slash and are put into /var/imap/socket SERVICES { # add or remove based on preferences imap cmd=imapd listen=imap prefork=0 provide_uuid=2 pop3 cmd=pop3d listen=pop3 prefork=0 sieve cmd=timsieved listen=sieve prefork=0 syncservercmd=/usr/local/cyrus/bin/sync_server listen=csync prefork=0 # at least one LMTP is required for delivery lmtp cmd=lmtpd listen=lmtp prefork=0 lmtpunix cmd=lmtpd listen=/usr/imap/var/imap/socket/lmtp prefork=0 } [snip] Regards, -- Martin Schweizer [EMAIL PROTECTED] Tel.: +41 32 512 48 54 (VoIP) Fax: +1 619 3300587 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
virtual domain quota
Hi, I use Cyrus IMAPd 2.3.11 with virtual domain support. Is it possible to set per domain email quota? Thank you, Milen 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: virtual domain quota
On Thu, 21 Feb 2008, Milen Dimov wrote: Hi, I use Cyrus IMAPd 2.3.11 with virtual domain support. Is it possible to set per domain email quota? I don't think so... Every quota has a quota root, and where would the quota root be for the entire domain? Mailboxes like: user/[EMAIL PROTECTED] user/[EMAIL PROTECTED] don't have a unique mailbox hierarchy that is separate from: user/[EMAIL PROTECTED] user/[EMAIL PROTECTED] Quotas are applied at a quota root and count all mailboxes below that quota root. I don't see where a per-domain quota can be rooted. 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
Re: GUID change to SHA1
On Thu, Feb 21, 2008 at 05:11:48PM +0100, Martin Schweizer wrote: Hello I use FreeBSD 6.3 and cyrus 2.3.11. Below is the manual for the change. Upgrading from 2.3.9 * The method used for generating Globally Unique IDentifiers used for replication has been changed to be the SHA1 hash of the messages. If you wish to upgrade the existing GUIDs in particular mailbox(es) or the entire server, perform the following steps in the listed order. Note that is is NOT REQUIRED that existing GUIDs be upgraded. 1. Zero GUIDs on the replica (reconstruct -g) 2. Regenerate GUIDs on the master (reconstruct -G) 3. Regenerate GUIDs on the replica (reconstruct -G) Which is the master and which is the replica? Server 1 or Server 2? [...] Server 1: syncclient cmd=/usr/local/cyrus/bin/sync_client -r Master Server 2: syncservercmd=/usr/local/cyrus/bin/sync_server listen=csync prefork=0 Replica Enjoy, Bron. 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: Abusing the sync protocol for fun and profit.
On Thu, 21 Feb 2008 09:20:34 -0600, Dan White [EMAIL PROTECTED] said: Bron Gondwana wrote: Attached are three perl modules, Cyrus/SyncClient.pm Cyrus/ImapReplica.pm Mail/IMAPTalk.pm I'm including this copy of Mail::IMAPTalk because without it, the clever 'literal' stuff doesn't work properly. I'll prod Rob to clean it up and re-package it and push it to CPAN so I can depend on that version and have things all be happier. Thanks Bron, This works great for me. I'm able to synchronize between my old 2.1.17 server, with a perdition proxy frontend end, to my newer 2.3.10 server. Excellent, that's what I like to hear :) I had a hiccup in the SyncClient.pm module during DIGEST-MD5 authentication. I changed to PLAIN, using the following changes, to get it working: Wow, that wouldn't work for us at all. I did have to put -p 1 on the syncserver command line in cyrus.conf before it would let me authenticate at all, and nothing but DIGEST-MD5 worked for me. Also, Authen::SASL::Cyrus worked fine, but then the connnection was encrypted and I had to try and pipe all the IO through it as well, which I couldn't be bothered with making pipe nicely. [diff] Thanks for that. I probably should make it try both in order or something funky like that. Maybe an auth_digestmd5 and an auth_plain function which are tried in that order. Bron. -- Bron Gondwana [EMAIL PROTECTED] 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
confused about quota -f
Hi all, I had to restore a users mailbox from backup which went well. After running reconstruct on the users mailbox I did a quota -f. That fixed this particular users quota but screwed another ones, used quota was at about 1/6 of actual. After several attempts with reconstruct and quota -f on this new problem that changed nothing, I finally did a quota -f user/username and that fixed it. Now, the docs says: Running quota with both the -f option and mailbox-prefix arguments is not recommended. which is why I avoided it until nothing else helped. And now I seriously wonder *why* it says so. What is the problem here? Anyone? --per 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 on iscsi
Hi, Is someone running a cyrus instance on iscsi? And is your instance big/ heavy loaded? Thanks in advance, Rudy -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Rudy Gevaert [EMAIL PROTECTED] tel:+32 9 264 4734 Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office Groep SystemenSystems group Universiteit Gent Ghent University Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 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