1

Topic: Create User By Command Line

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: Debian/Jessie
- 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 everyone,

To begin this topic I have to say that this product is very very simple to install, great product. I have installed it for a school  courses (part of a complete information system) to validate a master.

But we have to make a script that create a user inside LDAP/SAMBA/Firewall and so on and we have also to make a user by CLI inside iredmail.

I have found this topic http://www.iredmail.org/forum/topic9793 … a-cli.html but I can't find the related tools/create_mail_user_SQL.sh that was talked about.

Can anyone point me the way to create by CLI a new user (just a user, it is sufficient).

Perhaps we just have to add an entry into MySQL but I think it can't be as simple...

I hope the answer would not be to buy Pro support as it is for a school courses.

Best regards to all and thanks in advance for your answers.

----

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

2

Re: Create User By Command Line

It's part of iRedMail, you can get it in downloaded iRedMail package. Or, grab one from source code repo:
https://bitbucket.org/zhb/iredmail/src/ … ail/tools/

3 (edited by tester 2017-04-10 00:26:20)

Re: Create User By Command Line

ZhangHuangbin wrote:

It's part of iRedMail, you can get it in downloaded iRedMail package. Or, grab one from source code repo:
https://bitbucket.org/zhb/iredmail/src/ … ail/tools/

Hi ZhangHuangbin,

You saved my day (and a part of my master too :-))

Many many thanks

Best Regards.