1

Topic: How to create multiple email accounts at once?

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I can use tools/create_mail_user_SQL.sh to create new email account. but it is only allowed create ONE account in each time.
Is it possible that I can create the multiple email accounts at once use this scripts ?

Thanks

----

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

2

Re: How to create multiple email accounts at once?

You can create as many accounts as you want with a 'for' loop in shell script.

3 (edited by surfparadise 2019-03-19 08:53:01)

Re: How to create multiple email accounts at once?

Could you post an example please?

I have to import user from a csv.

Thanks

4

Re: How to create multiple email accounts at once?

I found this script, but doesn't works.

Any advice?

https://searchcode.com/codesearch/view/61138864/