Segmentation fault quota -f kolab 3.3
Timotheus Pokorra
timotheus at kolab.org
Tue Jan 27 09:57:17 CET 2015
Hello Timo,
> After that i login with a user and was able to see emails and all seen
> states of the imported old installation kolab 2.3 was okay. But
> roundcubemail shows no quota state of the mailbox, so i tried to
> connect with thunderbird to that mailbox. It was the same, all shows
> up correctly but no quota. So i decited to do a
> /usr/lib/cyrus-imapd/quota -f but it shows segmentation fault.
> From the old kolab2 i used the old cyrus.header, cyrus.cache and
> cyrus.index files for the reconstruct. So decited to give it another
> try and do not override cyrus.header, cyrus.cache and cyrus.index. At
> this time after the reconstruct i lost all seen state of the mails but
> had the correct quotas in roundcubemail and thunderbird.
>
> Can someone help?
I remember I had similar problems.
I have this in my scripts:
mboxlist.txt is created from the Kolab 2.x server:
sudo -u kolab-r /kolab/bin/ctl_mboxlist -d > $dumppath/mboxlist.txt
On the Kolab 3.x server:
for each domain:
cat $dumppath/mboxlist.txt | grep "$domain!" > $dumppath/mailboxes.txt
su - cyrus -s /bin/bash -c "/usr/lib/cyrus-imapd/ctl_mboxlist -u -f
mailboxes.db < $dumppath/mailboxes.txt"
for each mailbox:
su cyrus -s /bin/bash -c "/usr/lib/cyrus-imapd/reconstruct -r -f
user/$mailbox
for each domain:
su cyrus -s /bin/bash -c "/usr/lib/cyrus-imapd/quota -f -d $domain"
for the seen flags:
On Kolab 3.x:
find /var/lib/imap/domain/$firstchar/$domain -type f -name "*.seen" |
\
sort | while read seendb; do
/usr/lib/cyrus-imapd/cvt_cyrusdb ${seendb} skiplist
${seendb}.txt flat
mv ${seendb} ${seendb}.orig
/usr/lib/cyrus-imapd/cvt_cyrusdb ${seendb}.txt flat
${seendb} skiplist
chown cyrus:mail ${seendb} ${seendb}.txt ${seendb}.orig
done
I hope this helps,
Timotheus
More information about the users
mailing list