disaster recovery process

Eric B Munson eric at munsonfam.org
Mon Jun 12 19:08:48 CEST 2023


That may be a centos thing then, on Debian none of the kolab* users can access the mailboxes

# sudo -u kolab-r /usr/lib/cyrus-imapd/reconstruct -rfx user/eric
fatal error: can't read mailboxes file



On 2023-06-12 01:43, marko wrote:
> root won't work, you need to be the kolab restricted user.
> from my 2016 notes, probably on centos 6 when I was migrating a lot of
> kolab:
> _su - kolab-r -c "/kolab/bin/cyrreconstruct -rfx
> user/marko at mechtron.com.au"_
> cheers
> 
> Marko
> 
> On Sunday, 11 June 2023 11:23:19 PM AEST Eric B Munson wrote:
> 
>> No, I ran it as root.  The kolab user cannot read or write the
> mailbox files
> 
>> on disk (they belong to cyrus:mail).
> 
>> On 2023-06-09 20:27, marko wrote:
> 
>> > Are you running it as the kolab user?
> 
>> >
> 
>> > On Saturday, 10 June 2023 10:07:58 AM AEST Eric B Munson wrote:
> 
>> >> Thanks for the pointer, I found it but get no output from running
> it on
> 
>> >> my
> 
>> >> user. I ran:
> 
>> >>
> 
>> >> # /usr/lib/cyrus-imapd/reconstruct -rf user/eric
> 
>> >> #
> 
>> >>
> 
>> >> I am sure that means I am using is wrong but I cannot find any
> indication
> 
>> >> of how. AFAICT this is what the manpage says to do.
> 
>> >>
> 
>> >> Eric
> 
>> >>
> 
>> >> On 2023-06-09 06:23, Tom Reijnders wrote:
> 
>> >> > Are you siure it's not installed? By default it's not in the
> path, but
> 
>> >> > somewhere in the cyrus installation, so you would need the full
> path
> 
>> >> > to the executable. Try running 'locate reconstruct'. If locate
> is not
> 
>> >> > installeed, you should be able to install it using 'apt-get
> install
> 
>> >> > mlocate'.
> 
>> >> >
> 
>> >> > Tom
> 
>> >> >
> 
>> >> > Op 8-6-2023 om 17:39 schreef Eric B Munson:
> 
>> >> >> I am having the same problem and would like to run
> reconstruct, but it
> 
>> >> >> is
> 
>> >> >> not installed when using Ubuntu 18.04 and I cannot install the
> 
> 
>> >> >> cyrus-common package from the ubuntu repos (which contains
> 
>> >> >> reconstruct)
> 
>> >> >> without breaking the kolab provided cyrus-imapd package. :/
> 
>> >> >>
> 
>> >> >> Guess it's time to see if they have finally fixed builds for
> 20.04 or
> 
>> >> >> 22.04.>>
> 
>> >> >>
> 
>> >> >> On 2023-06-01 10:00, Tom Reijnders wrote:
> 
>> >> >>> Did you run reconstruct?
> 
>> >> >>>
> 
>> >> >>> See
> 
>> >> >>>
> https://serverfault.com/questions/531916/reconstructing-cyrus-mailbox
> 
>> >> >>> es-> >>> with-sub-folders.
> 
>> >> >>>
> 
>> >> >>> Tom
> 
>> >> >>>
> 
>> >> >>> Op 27-5-2023 om 16:36 schreef Josh:
> 
>> >> >>>> Greetings kolabers,
> 
>> >> >>>>
> 
>> >> >>>> After a server catastrophic disk failure I reinstalled
> CentOS7 and
> 
>> >> >>>> Kolab16 latest, recreated my user, then restored
> 
>> >> >>>> /var/spool/mail/doman
> 
>> >> >>>> folder from a recent backup.
> 
>> >> >>>>
> 
>> >> >>>> Inbox contents showed up correctly but no previously created
> folders
> 
>> >> >>>> are shown to imap clients.
> 
>> >> >>>>
> 
>> >> >>>> Am I missing something?
> 
>> >> >>>>
> 
>> >> >>>> Please advise,
> 
>> >> >>>> Josh.
> 
>> >> >>>> _______________________________________________
> 
>> >> >>>> users mailing list
> 
>> >> >>>> users at lists.kolab.org
> 
>> >> >>>> https://lists.kolab.org/mailman/listinfo/users
> 
>> >>
> 
>> >> _______________________________________________
> 
>> >> users mailing list
> 
>> >> users at lists.kolab.org
> 
>> >> https://lists.kolab.org/mailman/listinfo/users
> 
>> >
> 
>> > _______________________________________________
> 
>> > users mailing list
> 
>> > users at lists.kolab.org
> 
>> > https://lists.kolab.org/mailman/listinfo/users
> 
>> 
> 
>> _______________________________________________
> 
>> users mailing list
> 
>> users at lists.kolab.org
> 
>> https://lists.kolab.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> users at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/users


More information about the users mailing list