Import email addresses from .csv?

Discuss Scalix Management Services ( formerly Scalix Admin Console )

Moderator: ScalixSupport

wolf7901
Posts: 18
Joined: Fri Apr 13, 2007 4:12 pm

Import email addresses from .csv?

Postby wolf7901 » Mon May 14, 2007 9:31 am

Hi:

What is the best way to import employee first names, last names, and email addresses to a predefined scalix group from a .csv file?

Thanks.

craig

Postby craig » Mon May 14, 2007 10:13 am

I am not aware of any way as of yet, other then creating a script and using the "plugins" feature in SAC, I still believe using .csv files would not be possible


Craig

wolf7901
Posts: 18
Joined: Fri Apr 13, 2007 4:12 pm

what about from the command line?

Postby wolf7901 » Mon May 14, 2007 10:15 am

Any way to import from .csv from the command line?

craig

Postby craig » Mon May 14, 2007 10:28 am

using omaddpdln should do the trick, however the email addresses listed would probably not work, but specifying the user name should work.

man omaddpdln


Craig

wolf7901
Posts: 18
Joined: Fri Apr 13, 2007 4:12 pm

Postby wolf7901 » Mon May 14, 2007 10:31 am

ok, but how would I add them to their appropriate groups. I noticed when I run the command omsearch I can see numbers for the groups, but how would I import to these groups? Thanks for your help.

Mouseclone
Posts: 209
Joined: Thu Nov 02, 2006 12:02 pm

Postby Mouseclone » Fri Jul 27, 2007 1:45 pm

OK here is what i did for the move from Imail to Scalix. This is an import from csv or a text file with csv doesn't matter

Code: Select all

$mailnode = "mailnode";
$omaddu = "/opt/scalix/bin/omaddu";
$domain = "domain.com";
while (<>) {
chomp;
next if /^#/;
($first,$last,$user,$pass) = split / *, */;
print ($first,"\n",$last,"\n",$user,"\n",$pass,"\n");
system ("$omaddu -n \'$first $last/$mailnode/IA=\"$first $last\" <$user\@$domain>\' -p $pass $user --class limited");
}


your data in the file would look like

Code: Select all

first,last,email,pass


the command would be

Code: Select all


import.pl < text.csv


Return to “Scalix Management Services”



Who is online

Users browsing this forum: No registered users and 1 guest