Scalix and Save a user

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

becky

Scalix and Save a user

Postby becky » Wed Sep 12, 2007 8:30 am

Hello,

my englisch is not gut but I must try to ask.

I have scalix and I insert a neu user.
Now, I want to make a neu install for scalix (becaue I have a neu hostname).
Are the user date anyway saved or I must the user neu insert?

I thing, that a user are in posgresql database, but I couldn' t find.

Can you help me???

Greetings & have a nice day,

Becky

jaime.pinto
Scalix Star
Scalix Star
Posts: 709
Joined: Fri Feb 23, 2007 6:50 pm
Location: Toronto - Canada

Postby jaime.pinto » Wed Sep 12, 2007 9:01 am

Hi becky

You may want to read the wiki documentation on Changing the Hostname of a Scalix Server
http://www.scalix.com/wiki/index.php?ti ... ChangeFQDN
If that is what you want you don't need to perform a new installation, and you don't need to recreate your users either. All of their data will be preserved under /var/opt/scalix
Image Jaime
||||||||||||||||||||||||||||||||||||||||

becky

Postby becky » Wed Sep 12, 2007 9:07 am

Hallo,

thanks a lot. I will read and I hope, that will be good.

Can you tell me, where is a Datei with a username, e-mail ... I mean, that a data of user must be saved , but where?

Do ypu untersand me, what I mean?

mikethebike
Posts: 566
Joined: Mon Nov 28, 2005 4:16 pm
Location: England

Postby mikethebike » Wed Sep 12, 2007 9:28 am

Becky,

there are three main areas where user data is held.

1. The user account information.
That is held in the userlist (omsearch -d userlist -t h -e s=smith/g=dave). Hold mailbox location, password etc.

2. Mail store - ~data
The actual data ina mailbox is not held ina single file or location. Items are stored throughout this filesystem, and each message can be made up of 1 or more files.

3. The Genesis directory (g directory)
This contains files for each top level folder (Inbox, Outbox, Sent items, Folders etc), autoactions and many more. the Folder files (000001, 000002, 3, 4 and 5) contain pointers to the message store.

Mick

becky

Postby becky » Wed Sep 12, 2007 9:42 am

Hi Mick,

thank you fpr repley.

I try with : omsearch -d userlist -t h -e s=smith/g=dave and I have heir a location etc.

But if I want to make all of user to export- I mean I want one Datei, where are all user - how I can this make. Can I make this generelly?

Greetings

Becky

kanderson

Postby kanderson » Wed Sep 12, 2007 1:12 pm

try:

omsearch -s -m @ALL-ATTR@ > userlist.txt

This will create a list of every user, and every attribute for ever user, and dump it into a file called userlist.txt You can manipulate it from there as needed.

Thanks
Kev.

becky

Postby becky » Thu Sep 13, 2007 2:42 am

Hallo,

thank you very much for our helps. Its super.

If I make omsearch -s -m @ALL-ATTR@ > userlist.txt I became all Information ofv my user- its ok.

I have one Question.
If I make (omsearch -s -m @ALL-ATTR@ > userlist.txt) this, can I this Datei to export and in new saclix auf dem another computer to import?
I found the answer!
http://www.scalix.com/wiki/index.php?ti ... kupRestore

But If I make:
omcpoutu -u mueller -f - > mueller.out
sage: omcpoutu -n name[/mailnode] -f filename [-S { [i][o][p][d][f] }|-R dref] [-F]
But hier:
omcpoutu -n mueller -f - > mueller.out
then it's ok.

waht is different between u and n?

In description http://www.scalix.com/wiki/index.php?ti ... kupRestore ist u.

If you have a time, write please.


have a nice day,
greetigs

mikethebike
Posts: 566
Joined: Mon Nov 28, 2005 4:16 pm
Location: England

Postby mikethebike » Thu Sep 13, 2007 6:25 am

Becky,

you can export all the user messages using "omcpoutu" (see "man omcpoutu").
You can create the user on another system, and use the "UL-PWD" attribute to regenerate the password on the new account.
use omcpinu to copy the messages into the new account, the account name must be the same, but the mailnode does not (omcpinu -f filename -m newnode)

Then if you want the user autoactions to be transferred, just copy the 000003d and any .500 and .501 files to the new "g" directory (you can find the "g" directory using "omshowu -n "username" -f")

Mick

kanderson

Postby kanderson » Thu Sep 13, 2007 11:05 am

I'd recommend that if you're running Scalix 11, Use sxmboxexp instead of omcpoutu.

Otherwise, I think Mick has given you everything you need for a smooth import on the other side.

Now out of curiosity, if you're going to do this for all of your users, are you aware that you can just opy over the mailstore (/var/opt/scalix) preserving permissions, and then install Scalix over it on the new server, and you're done? If you're looking at only a few users, then sxmboxexp/sxmboximp work great, but if you want to upgrade the hardware, then moving the mailstore is much easier.

Thanks
Kev.

becky

Postby becky » Fri Sep 14, 2007 4:05 am

It'q s all Ok,

Thank you for your help!


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 5 guests