Problem migrating acls.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Working on migrating our debian sarge cyrus mail to kolab 2.2.1.
That would be  cyrus 2.1.18  to cyrus 2.3.13.
The problem is in the old cyrus users are specified as userid the new is 
userid@domain.

I'll summarize  what I have done.
With new cyrus stopped.
I copied the mail spool over to the correct spot with correct permissions.
Did ctl_mboxlist -d on old server.
edited  with
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@xxxxxxxxxxx        lrswipcda
advocap.org!user.test.Drafts    default test@xxxxxxxxxxx        lrswipcda
advocap.org!user.test.Sent      default test@xxxxxxxxxxx        lrswipcda
advocap.org!user.test.Trash     default test@xxxxxxxxxxx        lrswipcda

loaded with ctl_mboxlist -u on the new server

Did cyrreconstruct and it finds all the new mail boxes.

start cyrus

in cyradm
lm user/test@xxxxxxxxxxx
user/test@xxxxxxxxxxx (\HasChildren)
lam user/test@xxxxxxxxxxx
.....Nothing...

If I add with sam it's ok.

Did a  test and it appears 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@xxxxxxxxxxx        lrswipcda       mailadm lrswipcda

I edited the last line and then ran cyrreconstruct.
Now acl is OK.

Is this how to do it?
Is there a better way?
Is the mbox dump and upload really needed?

Thanks

John

begin:vcard
fn:John McMonagle
n:McMonagle;John
org:Advocap Inc
adr;dom:;;2929 Harrison St;Oshkosh;WI;54936
email;internet:johnm@xxxxxxxxxxx
title:IT Manager
tel;work:920-426-0150
x-mozilla-html:FALSE
url:http://www.advocap.org
version:2.1
end:vcard

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux