1

Topic: Add a new email account via CLI

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

Hi,

Can you please show me how to add a new email account via CLI.

Let's say my domain is example.com
I have created an user:  john@example.com  using the web interface and it's working great.

Now I want to create a new user such as bob@example.com via command line.

Can you please show me how to do it.  Thank you.

----

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

2

Re: Add a new email account via CLI

Please try the script shipped in iRedMail-0.9.2: tools/create_mail_user_SQL.sh.

3

Re: Add a new email account via CLI

Thank you Mr. ZhangHuangbin !

Great product and excellent support. 

And it's FREE.  This is unreal.  Thanks again.