<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello Timotheus,<br>
<br>
many thanks for answer. This part is exactly the one i donīt
understand. Why do i need a dump of this mboxlist from the old
kolab2 system?<br>
After my upload into the ldapsystem kolab creates automaticly the
accounts in cyrus and created a own mailboxses.db with all my
users. Or is this the problem?<br>
I thought i can do the upload in LDAP use the old files from
kolab2: mails, quota and seen files and donīt need the mboxlist
dump?<br>
<br>
<pre class="moz-signature" cols="72">Best regards,
Timo Posemann
</pre>
Am 27.01.2015 um 09:57 schrieb Timotheus Pokorra:<br>
</div>
<blockquote cite="mid:4103e13ee074dea6908b687834e4d7e2@kolab.org"
type="cite">I remember I had similar problems.
<br>
<br>
I have this in my scripts:
<br>
<br>
mboxlist.txt is created from the Kolab 2.x server:
<br>
sudo -u kolab-r /kolab/bin/ctl_mboxlist -d >
$dumppath/mboxlist.txt
<br>
<br>
On the Kolab 3.x server:
<br>
<br>
for each domain:
<br>
cat $dumppath/mboxlist.txt | grep "$domain!" >
$dumppath/mailboxes.txt
<br>
su - cyrus -s /bin/bash -c "/usr/lib/cyrus-imapd/ctl_mboxlist -u
-f mailboxes.db < $dumppath/mailboxes.txt"
<br>
<br>
for each mailbox:
<br>
su cyrus -s /bin/bash -c "/usr/lib/cyrus-imapd/reconstruct -r -f
user/$mailbox
<br>
<br>
for each domain:
<br>
su cyrus -s /bin/bash -c "/usr/lib/cyrus-imapd/quota -f -d
$domain"
<br>
<br>
for the seen flags:
<br>
On Kolab 3.x:
<br>
find <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>var/lib/imap/domain<span
class="moz-txt-tag">/</span></i>$firstchar/$domain -type f
-name "*.seen" | \
<br>
sort | while read seendb; do
<br>
/usr/lib/cyrus-imapd/cvt_cyrusdb ${seendb}
skiplist ${seendb}.txt flat
<br>
mv ${seendb} ${seendb}.orig
<br>
/usr/lib/cyrus-imapd/cvt_cyrusdb ${seendb}.txt
flat ${seendb} skiplist
<br>
chown cyrus:mail ${seendb} ${seendb}.txt
${seendb}.orig
<br>
done
<br>
<br>
I hope this helps,
<br>
Timotheus
</blockquote>
<br>
</body>
</html>