1

Topic: Big amount of users to create

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.0
- Linux/BSD distribution name and version: Ubuntu LDAP
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Hi, A customer of mine asked me to create a mail server to manager around 1600 users. Is there a way to pass a user list into a file to the script  tools/create_mail_user_SQL.sh or must I modify the script to scan my user file list ?

Tnx

JC

----

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

2

Re: Big amount of users to create

Does this tutorial help?
http://www.iredmail.org/docs/sql.bulk.c … users.html

3

Re: Big amount of users to create

ZhangHuangbin wrote:

Does this tutorial help?
http://www.iredmail.org/docs/sql.bulk.c … users.html

That is the doc from where I started my qyestion: could I modici that script so tu inserti a file of mine scan o is there something I can do to read the file directly from  the command line; somtehing like | cat file name (already teste and did not work)

JC

4

Re: Big amount of users to create

You're free to modify the script to match your need. Maybe a simple shell "for" loop is enough.

5

Re: Big amount of users to create

ZhangHuangbin wrote:

You're free to modify the script to match your need. Maybe a simple shell "for" loop is enough.

Sure a for loop was my first idea, but i wonder if it was possible to pass the content of the file using a pipe bit seems not

JC

6

Re: Big amount of users to create

Piping is another way, but a "foo" loop should be fine too.