[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Re: [Import USers into Virtusertable



Beautiful :0 I suppose same process applies to aliases with appropriate
changes to filenames.

Is this all that's required to import virtual e-mail users into RAQ4i?

How about the passwords then? Where do they go?


-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx] On Behalf Of Bruce Timberlake
Sent: Tuesday, April 06, 2004 9:39 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: [cobalt-users] Re: [Import USers into Virtusertable

> Is there a way to import users with aliases and passwords into the
> virtusertable from a CSV or TAB delimited text file? 

Passwords aren't necessary in that file. Just email addresses and what 
they map to...

Tab-delimited would be nicest, as that's what virtusertable is... just 
make sure you get the left and right sides correct ("source" on the 
left, "destination" on the right). When you're done, just make the 
hashtable by doing:

makemap hash /etc/mail/virtusertable.db <
/etc/mail/virtusertable

(one line command; not sure what the mail wrap will do to this)

You may need to adjust the /etc/mail directory depending on where your 
file actually lives.


CSV file would be ok too - just open virtusertable in your favorite 
editor, import the CSV file, then do a global sub-and-replace changing 
the , to a \t  (or maybe do it before you import the file, just to 
make sure you don't accidentally affect something else already in the 
file containing a comma, although I don't think there is anything like 
that...)

_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users