Page 1 of 1

ABout Scalix User aliases

Posted: Sun Dec 16, 2007 11:30 pm
by propagandhi
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!

Posted: Tue Dec 18, 2007 4:51 am
by Valerion
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.