Problem with acls migrating from cyrus imap.
John McMonagle
johnm at advocap.org
Wed May 13 16:07:32 CEST 2009
Working on migrating our debian sarge cyrus mail to kolab 2.2.1.
I'm having a problem getting the acls set.
This is what I'm doing:
Stop kolab
/etc/init.d/kolab stop
remove old mail spool
rm -fr /kolab/var/imapd/spool/domain/a/advocap.org/*/user/*
rm /kolab/var/imapd/mailboxes.db
sudo -u kolab-r rsync -aHe ssh --exclude cyrus.*
root at mail:/cyrus/spool/cyrus/mail/ /kolab/var/imapd/spool/domain/a/advocap.org
ssh root at mail "sudo -u cyrus /usr/sbin/ctl_mboxlist -d" > /tmp/mboxlist.txt
The next should be enhanced to get extra acls but it should do it.
awk 'BEGIN { FS = "\t" } ;{print "advocap.org!" $1 "\t" $2 "\t"
$3"@advocap.org" "\t" $4 }' /tmp/mboxlist.txt > /tmp/newmbox.txt
Sample from old dump mboxlist.txt
user.test default test lrswipcda mailadm lrswipcda
user.test.Drafts default test lrswipcda mailadm lrswipcda
user.test.Sent default test lrswipcda mailadm lrswipcda
user.test.Trash default test lrswipcda mailadm lrswipcda
Sample from New newmbox.txt:
advocap.org!user.test default test at advocap.org lrswipcda
advocap.org!user.test.Drafts default test at advocap.org lrswipcda
advocap.org!user.test.Sent default test at advocap.org lrswipcda
advocap.org!user.test.Trash default test at advocap.org lrswipcda
sudo -u kolab-r /kolab/bin/ctl_mboxlist -u < newmbox.txt
ctl_mboxlis -d looks OK after running
advocap.org!user.test 0 default test lrswipcda
advocap.org!user.test.Drafts 0 default test lrswipcda
advocap.org!user.test.Sent 0 default test lrswipcda
advocap.org!user.test.Trash 0 default test lrswipcda
Shouldn't matter but want to disclose everything.
sudo -u kolab-r rsync -aHe ssh
root at mail://var/lib/cyrus/user/ /kolab/var/imapd/domain/a/advocap.org/user
find /kolab/var/imapd/domain/a/advocap.org/user -name "*.sub" -exec
sed -i 's/user\.\w*/&@advocap.org/' {} \;
sudo -u kolab-r /kolab/bin/mkimap
sudo -u kolab-r /kolab/bin/cyrreconstruct
That does find all the mail boxes
in cyradm
lm user/test at advocap.org
user/test at advocap.org (\HasChildren)
lam user/test at advocap.org
.....Nothing...
If I add with sam it's ok.
Am I missing something?
Does ctl_mboxlist -u not set acls?
Thanks
John
More information about the users
mailing list