ABout Scalix User aliases

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

propagandhi
Posts: 81
Joined: Wed Sep 26, 2007 8:18 am

ABout Scalix User aliases

Postby propagandhi » Sun Dec 16, 2007 11:30 pm

I have a quick question, that will probably be very easily addressed here:

I am performing a bulk import of a list of users, from a file in the form:

FirstName,Surname,Username,Password

The thing is, that import works flawlessly, however what I need to do is then go back and add the aliases for each users. Some users have many aliases.

So on the command line, how would I add additional addresses/aliases to the user.

The adduser command is basically:

system ("omaddu -n \'$fullname/$mailnode/IA=\"$fullname\" <$user\@$domain>\' -p $pass $user -class limited");

But assuming a user had three aliases that need to be added after the fact, how can i go back in a bulk script such as one that has the users full name and the additional alias one on each line?

For that matter, how can I just add another alias on the command line for an existing user?

I hope at least 5% of this post made sense!

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Tue Dec 18, 2007 4:51 am

Is the alias just an additional email address or an extra entry in the address book? Both are possible, but usually people want the former.

To do this, do a omaddu as follows (please note the quotes):

omaddu -n 'User Name/mailnode/IA="User Name" <email_address1@domain.com>=email_address2@domain.com=email_address3@domain.com' -p ...

You can modify a user by doing

ommodu -o "User Name/mailnode" -n 'User Name/mailnode/IA="User Name" <email_address1@domain.com>=email_address2@domain.com=email_address3@domain.com'

If you want to do this from a script, you will have to escape the quotes correctly. This works from a bash shell.


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 3 guests