1

Topic: Script for masive new users

Hi.

Have you any script to create many new users (more than 1000)??

How can i migrate the old ldap users to the new iredmail??

thanks

----

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

2

Re: Script for masive new users

You can find 3 scripts shipped in iRedMail: iRedMail-x.y.z/tools/create_mail_user_*.

To migrate LDAP mail accounts from old iRedMail server, you can simply export mail accounts in LDIF format with phpLDAPadmin, then import into new iRedMail server.

Note: New version of iRedMail probably add new attributes/value for mail accounts, the simplest way to find them is comparing this script shipped in different iRedMail versions: iRedMail-x.y.z/create_mail_user_OpenLDAP.sh, then add missing attributes/values manually with phpLDAPadmin or command line. Another way is checking detailed iRedMail upgrade tutorials for your old iRedMail version, we provides solutions to solve it in tutorials.

3 (edited by labasus 2012-07-12 05:17:26)

Re: Script for masive new users

I've tried to use  create_mail_user_OpenLDAP.py

This option "HASHED_MAILDIR" - is OK
missed MAILDIR_APPEND_TIMESTAMPS - by default is always appended.

This is not very good then I need to migrate 1000 boxes from another email server to iRedMail

4

Re: Script for masive new users

Hi labasus,

I updated file create_mail_user_OpenLDAP.py  moment ago, you can now set APPEND_TIMESTAMP_IN_MAILDIR to False.

Download updated file here:
https://bitbucket.org/zhb/iredmail/raw/ … penLDAP.py

Here's detailed changelog if you're interested in:
https://bitbucket.org/zhb/iredmail/chan … 052eea2223