Problem with acls migrating from cyrus imap.
John McMonagle
johnm at advocap.org
Thu May 14 16:02:35 CEST 2009
Did a simple test and it apears that the acls are defined in the
cyrus.header files.
For example:
Cyrus mailbox header
"The best thing about this system was that it had lots of goals."
--Jim Morris on Andrew
advocap.org!user.test 1513ee1e4424dbbc
Junk
test at advocap.org lrswipcda mailadm lrswipcda
I edited the last line and then ran cyrreconstruct.
Is this how to do it?
I doubt if I'm the first to migrate from a domain less cyrus installation.
John
John McMonagle wrote:
> 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
>
>
>
>
>
> _______________________________________________
> Kolab-users mailing list
> Kolab-users at kolab.org
> https://kolab.org/mailman/listinfo/kolab-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: johnm.vcf
Type: text/x-vcard
Size: 250 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/users/attachments/20090514/cebd0858/attachment.vcf>
More information about the users
mailing list