1

Topic: Import user script or howto

Is there a script I can use to import all my users and domains at once. I do have some 2000 users and many domains, not really practical to enter one by one.
They are now all on a mysql database I can create a csv file with the required fields.
I could probably write a script is I know the must have requirements, like databases, tables, fields, directories and or files to be created, etc.

I intend to go for the pro version so if there are any thing I need to consider after my tests please let me know so I can take that into account now.

thanks



==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Linux/BSD distribution name and version: centos 6
- Related log if you're reporting an issue:
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Import user script or howto

Check script shipped within iRedMail: iRedMail-0.8.6/tools/create_mail_user_*, you should understand which SQL columns are required for a mail domain/user/alias. Then write script to export existing accounts.