Import User Mbox into Public Folder

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

Beleggrodion
Posts: 18
Joined: Wed Oct 31, 2007 10:31 am

Import User Mbox into Public Folder

Postby Beleggrodion » Tue Jul 20, 2010 5:07 am

Hi there

We try to move some folders from a user into a public folder without using outlook/swa. Because there are many mails it tooks some hours in outlook (and often it crashes). Export works good with sxmboxexp but now to import the stuff with sxmboximp we cannot select to force import to public folder, it only has the options to import into the same user or to specify another user for import.

Have someone an other idea?

Greetings
Roger

BaldBoy
Posts: 141
Joined: Fri May 19, 2006 12:45 pm

Re: Import User Mbox into Public Folder

Postby BaldBoy » Mon Jul 26, 2010 9:11 am

Of course you can.
Let's assume you have to move emails from some user's Inbox folder to a public folder. You have to operate as follows:
  • Create your Public Folder which will act as a container for your moved items. You can use webmail or Outlook to do that. Take care: target public folder should be of same type of source folder.
  • Access your Scalix's server console
  • Locate the folder id of the source folder (the Inbox folder for your user):

    Code: Select all

    sxmboxlist -u "user-name-goes-here"
    You will obtain a list of folder IDs and names. Inbox folder is likely to be F-0000000001.
  • Do an export of Inbox's contents to a file : sxmboxexp -u "user-name-goes-here" -a nameoffile.mbox -f ID-OF-USER-FOLDER-TO-BE-EXPORTED.
  • Now that you have the exported file you have to locate the ID of the Public Folder which will be the target of the import. Do a :

    Code: Select all

    sxmboxlist -p
    This will give you the IDs of all configured public folders. Write down the ID of the public folder you want to import into.
  • Let's go for the import phase:

    Code: Select all

    sxmboximp -a nameoffile.mbox -f ID-OF-USER-FOLDER-TO-BE-EXPORTED -t ID-OF-TARGET-PUBLIC-FOLDER

Of course you can export/import subfolders too or different folders in one pass. I suggest you a deep reading of man pages for sxmboxlist, sxmboxexp, sxmboximp.

TCWardrobe
Posts: 64
Joined: Fri Aug 18, 2006 7:33 pm

Re: Import User Mbox into Public Folder

Postby TCWardrobe » Fri Nov 26, 2010 12:41 pm

@BaldBoy

-t ID-OF-TARGET-PUBLIC-FOLDER <<--- this is wrong (at least here), when doing this it creates a folder named "F-XXXXXXXX" in the users mailbox whose mbox is imported. Apparently it is not possible to import a user mailbox (or just a folder in it) to a public folder with sxmboximp.
Scalix specs:
Server
OS Debian "etch" 4.0
Scalix 11.2 CE

Client
OS WinXP / Win2k
client Outlook 2003 / SWA

Setup
scalix behind firewall, dynamic IP address, mail domain hosted outside, mail gets in via fetchmail, out via smarthost


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 7 guests