1 (edited by hifall 2017-07-15 15:26:14)

Topic: How to create new domains and users?

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6 MYSQL edition.
- Linux/BSD distribution name and version: Ubuntu 16.04 LTS
- 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 have set up iRedMail with a domain: mailsrv.mydomain.com, and things are working fine. How do I add new domains, then create new users on each of the new domains?

For example, I'd like to create a new domain support.mydomain.com, and a user on that domain: sarah@support.mydomain.com. Both support.mydomain.com and mailsrv.mydomain.com are on the same machine.

I'd like to perform this in a programatic/automated way, like executing a SQL statement, etc., if possible.

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 new domains and users?

hifall wrote:

I'd like to perform this in a programatic/automated way, like executing a SQL statement, etc., if possible.

How about check sample SQL file shipped in iRedMail to figure it out?

- iRedMail-0.9.7/samples/mysql/sql/add_first_domain_and_user.sql

3

Re: How to create new domains and users?

Oh cool! Thanks for the pointer!