Hi Ken,
Is there really enough information in /etc/passwd to create x.400 users?
MailMan wrote:I've got Scalix working with Postfix easily but one problem i have is that we have a mail server of several hundred users using Postfix, so i need to import this data and the users into Scalix. I don't want to use LDAP i want to be able to import all of the user accounts from /etc/passwd so that i don't have to add them all manually.
At a minimum, you need first name and last name for each user. Email address and authentication id can be generated automagically.
Assuming you have a flat file of the passwd format, as follows:
uid:x:uid:guid:friendly name:/home/directory:/default/shell
saved as /tmp/user.txt you can parse it as follows:
.-(~)--------------------------------------------------------------------(root@whisky)-
`--# gawk 'BEGIN { FS = "[:\\ ]" } {print $5"."$6"@company.com "$5" "$6"/IA="$5" "$6" <"$5"."$6"@company.com>"}' /tmp/user.txt|omaddu --bulk mail,node -
omaddu : Number of users added: 1
.-(~)--------------------------------------------------------------------(root@whisky)-
`--# omshowu -n name
Authentication ID:
friendly.name@company.comGlobally Unique ID: 0f300000d97e5164-041.261.961.18
User Name : friendly name /CN=friendly name
MailNode : mail,node
Internet Address : friendly name <friendly.name@company.com>
System Login : 60548
Password : unset
Admin Capabilities : NO
Mailbox Admin Capabilities : NO
Language : C
Mail Account: Unlocked
Last Signon : Never.
Receipt of mail : ENABLED
Service level : 0
Excluded from Tidying : NO
Recovery Folder visible : NO
User Class : Full
If that command isn't clear, take a look at man gawk and man omaddu, and then let me know what questions you have.
MailMan wrote:We also handle mail for several hundred different domain names, is it possible to also import them and their rules into the scalix admin system via the Postfix configs?
First off, what do yo mean by rules exactly? What exact postfix config are you trying to recreate? Take a look at
http://www.scalix.com/wiki/index.php?ti ... te_Postfix, which I wrote a while back, to get a starting point, then let me know what you're trying to accomplish.
Hope this helps,
Chris