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.
Moderator: ScalixSupport
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");
}
Code: Select all
first,last,email,pass
Code: Select all
import.pl < text.csv
Return to “Scalix Management Services”
Users browsing this forum: No registered users and 1 guest