Re: need help recovering from disk crash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

dlang@xxxxxxxxxxxxx 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
>    checkpoint    cmd="ctl_cyrusdb -c" period=30
>    delprune      cmd="ctl_deliver -E 3" period=1440
>    tlsprune      cmd="tls_prune" period=1440
> root@asgard:/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 {
>    checkpoint    cmd="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

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux