Export users mailboxes from Scalix 10 to Scalix 11

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

matt-j
Posts: 40
Joined: Thu Jan 05, 2006 4:19 pm

Export users mailboxes from Scalix 10 to Scalix 11

Postby matt-j » Thu Dec 28, 2006 5:16 am

We are going to be upgrading our Scalix system from 10 to 11 (Enterprise) but at the same time we are having an OS upgrade. What we would like to do is export our users mailboxes then do the rebuild, install Scalix 11 and then restore the mailboxes. Is this possible? If it is then, how would we do it?

Cheers
Matt

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Sat Dec 30, 2006 7:43 am

you can - using omcpoutu and omcpinu tools (omcpinu is called sxmboximp in scalix 11 and has extended functionality).

However, I wouldn't. All you need to do is to backup /var/opt/scalix on your old system, install your new system, create the scalix unix user and group with the same UID, restore your backup to the same place, then start the scalix installer. it should detect that the message store is already there and offer to preserve it.

not only will this result in your mailbox still having single-copy properties (no duplication of mail sent to multiple people) and therefore safe on disk space, but also will it preserve your user accounts, directory and configuration data....

cheers,
Florian.
Florian von Kurnatowski, Die Harder!

tormod

sxmboximp

Postby tormod » Tue Feb 13, 2007 10:54 am

Hi,
I used omcpoutu to save my mailbox going to upgrade from Scalix 10 to 11. Now using sxmboximp -a <fil> I get the following error:

SERIOUS ERROR Administration(omrestorepm) ....
[OM 1001] Transaction File record size is out of bounds
.
.
.

What am I doing wrong?

BR
Tormod

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Tue Feb 13, 2007 11:03 am

did you omscan your message store (omscan -Aafxv) before the export to check consistency?

Florian.
Florian von Kurnatowski, Die Harder!

kanderson

Postby kanderson » Tue Feb 13, 2007 11:21 am

Florian, couldn't he just us omcpinu on the 11 server, since non of the sxmbox* data will be there anyway?

Tormod. Be aware that you will lose things like delegations permissions, rules, and stuff like that. Also be aware that you'll need to dump the public folders to a PST or you will lose them too.

As Florian said, I'd recommend upgrading /var/opt/scalix as is. THat will be the fastest by far, and it'll be the least problems for your users.

Kev.

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Tue Feb 13, 2007 11:41 am

well, i'm just looking at hand.

If a export file cannot be imported, the reason is most likely on the export side, i.e. message store corruption on the source side that made it into the export file.

Cheers,
Florian
Florian von Kurnatowski, Die Harder!

kanderson

Postby kanderson » Tue Feb 13, 2007 12:03 pm

How big is the file generated by omcpoutu? If it's 2 Gigs, then likely you hit an error when exporting it, and didn't get all of the mail for that person. If that's the case, try using

omcpoutu -n NAME -f - > /tmp/filename.out

That should allow you to export a file much larger than 2 Gigs.

Kev.

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Tue Feb 13, 2007 12:14 pm

good point! :-) and scalix 11 can even import those large files (which wasn't necessarily true for scalix 10).

-- f.
Florian von Kurnatowski, Die Harder!

tormod

Export users mailboxes from Scalix 10 to Scalix 11

Postby tormod » Mon Feb 26, 2007 6:29 am

The exported file is about 130 MBytes so the 2Gbyte limit shouldn't be an issue, which, if I got it right, is no longer a limit (Scalix 11).
I believed I could use the omcpoutu/omcpinu command pair for this task, and after having exported the mbox, I uninstalled version 10 and installed version 11. Rollback to 10 is not an issue, I think. I have tried different approaches without success. I don't know if the file is (partly) corrupted or not, but anyway, I'm able to list the content (folders and messages) using the sxmboxlist command, so it's not totally screwed up.
However, I've used Scalix community edition on a trial basis for some months, the idea was to implement some "famliy" mail server and so far I've been the sole user, so I can live with it. A bit annoying thou.
Thank you for your support. I think I will use the recommended way next time.
Tormod

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Mon Feb 26, 2007 9:31 am

Hi Tormod,

as said before, maybe there was some message store corruption before the export. I would normally recommend running the omscan -Aavfx command to verify and repair the integrity of the message store.

As a post-mortem it's probably difficult to investigate what happened here.

Florian.
Florian von Kurnatowski, Die Harder!


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 10 guests

cron