Re: need help recovering from disk crash
On Wed, 26 Sep 2007, Rudy Gevaert wrote: > David Lang wrote: >> On Tue, 25 Sep 2007, David Lang wrote: >> >>> On Tue, 25 Sep 2007, Scott M. Likens wrote: >>> Hi, If you have a dump of the mailbox's (ctl_mboxlist) then you can restore those, personally I back those up weekly as well as /var/spool/imap >>> I don't think I have that. >>> If you don't, re-add the users, then do reconstruct -r -f user.username (obviously replace username with the username in question) and it will reconstruct the mailbox and find all the folders for you and add them to the mailboxes db. Then do that on all your users, and you should be good. >>> Ok, that's not bad. >> >> I'm running into a problem with this, I can do this for one domain, but not >> for a second. > > I don't know if 2.2 supports virtual domains. You'd better check that. I > think there is a bug in reconstruct with virtual domains. I have to run: > > reconstruct -r -f user/[EMAIL PROTECTED] > and > reconstruct -r -f user/login/[EMAIL PROTECTED] > > (I'm also using unix hierarchy seperator, but you aren't I think.) I tracked this down last night. Since I was also fighting SASL (my old SASL had been connected to a postgres database, the new one wasn't compiled to support that, so I was having to learn a different way to set passwords) I had gotten [EMAIL PROTECTED] to work and be able to login, and apparently if you login with one virtual domain you can't do anything to any other virtual domain, even if you are listed as the admin user. I setup a password for the user cyrus and set it to be the admin user and was able to work with all the different domains. I did run into one other bug that I couldn't figure out. no user was able to modify their INBOX (delete items, etc). I could copy messages to folders, but not delete anything. to get back online (and since this is just my home machine) I ended up setting anyone all acl's on every inbox. it sounds like I really need to upgrade to 2.3.x, I downloaded it, but haven't compiled it yet. David Lang 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: need help recovering from disk crash
David Lang wrote: > On Tue, 25 Sep 2007, David Lang wrote: > >> On Tue, 25 Sep 2007, Scott M. Likens wrote: >> >>> Hi, >>> >>> If you have a dump of the mailbox's (ctl_mboxlist) then you can restore >>> those, personally I back those up weekly as well as /var/spool/imap >> I don't think I have that. >> >>> If you don't, re-add the users, then do reconstruct -r -f user.username >>> (obviously replace username with the username in question) and it will >>> reconstruct the mailbox and find all the folders for you and add them to >>> the mailboxes db. >>> >>> Then do that on all your users, and you should be good. >> Ok, that's not bad. > > I'm running into a problem with this, I can do this for one domain, but not > for > a second. I don't know if 2.2 supports virtual domains. You'd better check that. I think there is a bug in reconstruct with virtual domains. I have to run: reconstruct -r -f user/[EMAIL PROTECTED] and reconstruct -r -f user/login/[EMAIL PROTECTED] (I'm also using unix hierarchy seperator, but you aren't I think.) -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 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
Re: need help recovering from disk crash
On Tue, 25 Sep 2007, David Lang wrote: > On Tue, 25 Sep 2007, Scott M. Likens wrote: > >> Hi, >> >> If you have a dump of the mailbox's (ctl_mboxlist) then you can restore >> those, personally I back those up weekly as well as /var/spool/imap > > I don't think I have that. > >> If you don't, re-add the users, then do reconstruct -r -f user.username >> (obviously replace username with the username in question) and it will >> reconstruct the mailbox and find all the folders for you and add them to >> the mailboxes db. >> >> Then do that on all your users, and you should be good. > > Ok, that's not bad. I'm running into a problem with this, I can do this for one domain, but not for a second. David Lang >> As far as 2.3.9 vs. 2.2... if you're only dealing with the message >> spool... it should be easy to massage it together. if you're trying to >> bring back duplicate, sieve, seen, etc... it might be a hassle. > > it would be really nice to retain the seen state, I don't care about > duplicates > and don't have sieve in use. what else would I loose? > >> Rather vague email I just wrote... but you seemed to have the basics... >> if not reply all. > > thanks. > > David Lang > >> Scott >> >> [EMAIL PROTECTED] wrote: >>> I lost my OS drive on my home server, the mail partition was on a raid array >>> and survived, I have some of the rest of the config info, but it looks like >>> I >>> lost the configdir contents (the directories are still there, but the files >>> are >>> missing) I may be able to recover some stuff from lost+found if I can get >>> hints >>> on what to search for. >>> >>> now, to make things more interesting, the old system was running gentoo and >>> has >>> cyrus 2.3.recent on it >>> >>> the new system is ubuntu with 2.2.something on it (I couldn't get a recent >>> gentoo installer to run reliably on this hardware) >>> >>> can I make this work or should I compile 2.3.9? >>> >>> with reconstruct -m now working how can I recover the mailbox? >>> >>> the good news is that I only have 3 users on the system (with about 3G of >>> mail >>> in several hundred folders betwen us) so manual fixes may be practical >>> >>> the config files were saved, and are: >>> >>> #cat imapd.conf |grep -v "^#" |grep "^[a-z]" >>> configdirectory:/var/imap >>> partition-default: /movies/imap >>> sievedir: /var/imap/sieve >>> virtdomains:yes >>> admins: cyrus >>> hashimapspool: yes >>> allowanonymouslogin:no >>> allowplaintext: yes >>> sasl_pwcheck_method: auxprop >>> sasl_auxprop_plugin: sasldb >>> sasl_mech_list: PLAIN >>> >>> >>> # cat cyrus.conf |grep -v "^ *#" |grep "[a-z]" >>>recover cmd="ctl_cyrusdb -r" >>>idled cmd="idled" >>>imap cmd="imapd" listen="imap2" prefork=0 >>>pop3 cmd="pop3d" listen="pop-3" prefork=0 >>>imaps cmd="imapd -s" listen="imaps" prefork=0 >>>pop3s cmd="pop3d -s" listen="pop3s" prefork=0 >>>sieve cmd="timsieved" listen="sieve" prefork=0 >>>lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0 >>>checkpointcmd="ctl_cyrusdb -c" period=30 >>>delprune cmd="ctl_deliver -E 3" period=1440 >>>tlsprune cmd="tls_prune" period=1440 >>> [EMAIL PROTECTED]:/etc# cat cyrus.conf |grep -v "^ *#" |grep "[a-z{}]" >>> START { >>>recover cmd="ctl_cyrusdb -r" >>>idled cmd="idled" >>> } >>> SERVICES { >>>imap cmd="imapd" listen="imap2" prefork=0 >>>pop3 cmd="pop3d" listen="pop-3" prefork=0 >>>imaps cmd="imapd -s" listen="imaps" prefork=0 >>>pop3s cmd="pop3d -s" listen="pop3s" prefork=0 >>>sieve cmd="timsieved" listen="sieve" prefork=0 >>>lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0 >>> } >>> EVENTS { >>>checkpointcmd="ctl_cyrusdb -c" period=30 >>>delprune cmd="ctl_deliver -E 3" period=1440 >>>tlsprune cmd="tls_prune" period=1440 >>> } >>> >>> David Lang >>> >>> 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 >>> >>> >>> !DSPAM:46f8b94b179948275421122! >>> >>> >>> >> >> > > 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: need help recovering from disk crash
On Tue, 25 Sep 2007, Scott M. Likens wrote: > Hi, > > If you have a dump of the mailbox's (ctl_mboxlist) then you can restore > those, personally I back those up weekly as well as /var/spool/imap I don't think I have that. > If you don't, re-add the users, then do reconstruct -r -f user.username > (obviously replace username with the username in question) and it will > reconstruct the mailbox and find all the folders for you and add them to > the mailboxes db. > > Then do that on all your users, and you should be good. Ok, that's not bad. > As far as 2.3.9 vs. 2.2... if you're only dealing with the message > spool... it should be easy to massage it together. if you're trying to > bring back duplicate, sieve, seen, etc... it might be a hassle. it would be really nice to retain the seen state, I don't care about duplicates and don't have sieve in use. what else would I loose? > Rather vague email I just wrote... but you seemed to have the basics... > if not reply all. thanks. David Lang > Scott > > [EMAIL PROTECTED] wrote: >> I lost my OS drive on my home server, the mail partition was on a raid array >> and survived, I have some of the rest of the config info, but it looks like I >> lost the configdir contents (the directories are still there, but the files >> are >> missing) I may be able to recover some stuff from lost+found if I can get >> hints >> on what to search for. >> >> now, to make things more interesting, the old system was running gentoo and >> has >> cyrus 2.3.recent on it >> >> the new system is ubuntu with 2.2.something on it (I couldn't get a recent >> gentoo installer to run reliably on this hardware) >> >> can I make this work or should I compile 2.3.9? >> >> with reconstruct -m now working how can I recover the mailbox? >> >> the good news is that I only have 3 users on the system (with about 3G of >> mail >> in several hundred folders betwen us) so manual fixes may be practical >> >> the config files were saved, and are: >> >> #cat imapd.conf |grep -v "^#" |grep "^[a-z]" >> configdirectory:/var/imap >> partition-default: /movies/imap >> sievedir: /var/imap/sieve >> virtdomains:yes >> admins: cyrus >> hashimapspool: yes >> allowanonymouslogin:no >> allowplaintext: yes >> sasl_pwcheck_method: auxprop >> sasl_auxprop_plugin: sasldb >> sasl_mech_list: PLAIN >> >> >> # cat cyrus.conf |grep -v "^ *#" |grep "[a-z]" >>recover cmd="ctl_cyrusdb -r" >>idled cmd="idled" >>imap cmd="imapd" listen="imap2" prefork=0 >>pop3 cmd="pop3d" listen="pop-3" prefork=0 >>imaps cmd="imapd -s" listen="imaps" prefork=0 >>pop3s cmd="pop3d -s" listen="pop3s" prefork=0 >>sieve cmd="timsieved" listen="sieve" prefork=0 >>lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0 >>checkpointcmd="ctl_cyrusdb -c" period=30 >>delprune cmd="ctl_deliver -E 3" period=1440 >>tlsprune cmd="tls_prune" period=1440 >> [EMAIL PROTECTED]:/etc# cat cyrus.conf |grep -v "^ *#" |grep "[a-z{}]" >> START { >>recover cmd="ctl_cyrusdb -r" >>idled cmd="idled" >> } >> SERVICES { >>imap cmd="imapd" listen="imap2" prefork=0 >>pop3 cmd="pop3d" listen="pop-3" prefork=0 >>imaps cmd="imapd -s" listen="imaps" prefork=0 >>pop3s cmd="pop3d -s" listen="pop3s" prefork=0 >>sieve cmd="timsieved" listen="sieve" prefork=0 >>lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0 >> } >> EVENTS { >>checkpointcmd="ctl_cyrusdb -c" period=30 >>delprune cmd="ctl_deliver -E 3" period=1440 >>tlsprune cmd="tls_prune" period=1440 >> } >> >> David Lang >> >> 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 >> >> >> !DSPAM:46f8b94b179948275421122! >> >> >> > > 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: need help recovering from disk crash
Hi, If you have a dump of the mailbox's (ctl_mboxlist) then you can restore those, personally I back those up weekly as well as /var/spool/imap If you don't, re-add the users, then do reconstruct -r -f user.username (obviously replace username with the username in question) and it will reconstruct the mailbox and find all the folders for you and add them to the mailboxes db. Then do that on all your users, and you should be good. As far as 2.3.9 vs. 2.2... if you're only dealing with the message spool... it should be easy to massage it together. if you're trying to bring back duplicate, sieve, seen, etc... it might be a hassle. Rather vague email I just wrote... but you seemed to have the basics... if not reply all. Scott [EMAIL PROTECTED] wrote: > I lost my OS drive on my home server, the mail partition was on a raid array > and survived, I have some of the rest of the config info, but it looks like I > lost the configdir contents (the directories are still there, but the files > are > missing) I may be able to recover some stuff from lost+found if I can get > hints > on what to search for. > > now, to make things more interesting, the old system was running gentoo and > has > cyrus 2.3.recent on it > > the new system is ubuntu with 2.2.something on it (I couldn't get a recent > gentoo installer to run reliably on this hardware) > > can I make this work or should I compile 2.3.9? > > with reconstruct -m now working how can I recover the mailbox? > > the good news is that I only have 3 users on the system (with about 3G of > mail > in several hundred folders betwen us) so manual fixes may be practical > > the config files were saved, and are: > > #cat imapd.conf |grep -v "^#" |grep "^[a-z]" > configdirectory:/var/imap > partition-default: /movies/imap > sievedir: /var/imap/sieve > virtdomains:yes > admins: cyrus > hashimapspool: yes > allowanonymouslogin:no > allowplaintext: yes > sasl_pwcheck_method: auxprop > sasl_auxprop_plugin: sasldb > sasl_mech_list: PLAIN > > > # cat cyrus.conf |grep -v "^ *#" |grep "[a-z]" >recover cmd="ctl_cyrusdb -r" >idled cmd="idled" >imap cmd="imapd" listen="imap2" prefork=0 >pop3 cmd="pop3d" listen="pop-3" prefork=0 >imaps cmd="imapd -s" listen="imaps" prefork=0 >pop3s cmd="pop3d -s" listen="pop3s" prefork=0 >sieve cmd="timsieved" listen="sieve" prefork=0 >lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0 >checkpointcmd="ctl_cyrusdb -c" period=30 >delprune cmd="ctl_deliver -E 3" period=1440 >tlsprune cmd="tls_prune" period=1440 > [EMAIL PROTECTED]:/etc# cat cyrus.conf |grep -v "^ *#" |grep "[a-z{}]" > START { >recover cmd="ctl_cyrusdb -r" >idled cmd="idled" > } > SERVICES { >imap cmd="imapd" listen="imap2" prefork=0 >pop3 cmd="pop3d" listen="pop-3" prefork=0 >imaps cmd="imapd -s" listen="imaps" prefork=0 >pop3s cmd="pop3d -s" listen="pop3s" prefork=0 >sieve cmd="timsieved" listen="sieve" prefork=0 >lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0 > } > EVENTS { >checkpointcmd="ctl_cyrusdb -c" period=30 >delprune cmd="ctl_deliver -E 3" period=1440 >tlsprune cmd="tls_prune" period=1440 > } > > David Lang > > 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 > > > !DSPAM:46f8b94b179948275421122! > > > 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
need help recovering from disk crash
I lost my OS drive on my home server, the mail partition was on a raid array and survived, I have some of the rest of the config info, but it looks like I lost the configdir contents (the directories are still there, but the files are missing) I may be able to recover some stuff from lost+found if I can get hints on what to search for. now, to make things more interesting, the old system was running gentoo and has cyrus 2.3.recent on it the new system is ubuntu with 2.2.something on it (I couldn't get a recent gentoo installer to run reliably on this hardware) can I make this work or should I compile 2.3.9? with reconstruct -m now working how can I recover the mailbox? the good news is that I only have 3 users on the system (with about 3G of mail in several hundred folders betwen us) so manual fixes may be practical the config files were saved, and are: #cat imapd.conf |grep -v "^#" |grep "^[a-z]" configdirectory:/var/imap partition-default: /movies/imap sievedir: /var/imap/sieve virtdomains:yes admins: cyrus hashimapspool: yes allowanonymouslogin:no allowplaintext: yes sasl_pwcheck_method: auxprop sasl_auxprop_plugin: sasldb sasl_mech_list: PLAIN # cat cyrus.conf |grep -v "^ *#" |grep "[a-z]" recover cmd="ctl_cyrusdb -r" idled cmd="idled" imap cmd="imapd" listen="imap2" prefork=0 pop3 cmd="pop3d" listen="pop-3" prefork=0 imaps cmd="imapd -s" listen="imaps" prefork=0 pop3s cmd="pop3d -s" listen="pop3s" prefork=0 sieve cmd="timsieved" listen="sieve" prefork=0 lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0 checkpointcmd="ctl_cyrusdb -c" period=30 delprune cmd="ctl_deliver -E 3" period=1440 tlsprune cmd="tls_prune" period=1440 [EMAIL PROTECTED]:/etc# cat cyrus.conf |grep -v "^ *#" |grep "[a-z{}]" START { recover cmd="ctl_cyrusdb -r" idled cmd="idled" } SERVICES { imap cmd="imapd" listen="imap2" prefork=0 pop3 cmd="pop3d" listen="pop-3" prefork=0 imaps cmd="imapd -s" listen="imaps" prefork=0 pop3s cmd="pop3d -s" listen="pop3s" prefork=0 sieve cmd="timsieved" listen="sieve" prefork=0 lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0 } EVENTS { checkpointcmd="ctl_cyrusdb -c" period=30 delprune cmd="ctl_deliver -E 3" period=1440 tlsprune cmd="tls_prune" period=1440 } David Lang 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