just add the users into the database using simple SQL:

INSERT INTO Table_Name (USERID, PASSWORD, FULLNAME, USERDIR, MAILADDR, MAXSIZE, 
MAXMSGS, FLAGS, TYPE) VALUES(...)

the userdir you specify will automatically be created by imail as soon as it realizes 
it doesn't exist...flags control the same settings you can control in imail (user is 
host admin, user is list admin, etc) and they're bit-flagged...turn them on and off, 
look at the sql table to figure out the exact bit-flagging.  I've never bothered to 
figure out what TYPE is...

hope that helps...
-Mark

---------- Original Message ----------------------------------
From: Julian Voelcker <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Mon, 08 Apr 2002 16:30:18 +0100

>Hi,
>
>Is it possible to add users to a virtual domain in IMail 
>programmatically?
>
>I am using .Net and C# for development.
>
>I have been considering configuring the domain so that the users are 
>stored in an external MS Access or SQL database and then adding and 
>removing users from the database as and when required.
>
>Will this work?
>
>Has anyone here implemented something similar and be willing to share 
>their experience?
>
>Cheers,
>
>Julian Voelcker
>The Virtual World (UK) Limited
>Cirencester, United Kingdom
>
>
>
>Please visit http://www.ipswitch.com/support/mailing-lists.html 
>to be removed from this list.
>
>An Archive of this list is available at:
>http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
>
>Please visit the Knowledge Base for answers to frequently asked
>questions:  http://www.ipswitch.com/support/IMail/
>

Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Please visit the Knowledge Base for answers to frequently asked
questions:  http://www.ipswitch.com/support/IMail/

Reply via email to