Topic: Create New Domain Using SQL
======== Required information ====
- iRedMail version: iRedmail 0.9.6
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend: MySQL
- Web server: Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
Hi,
I want to give users the ability to add their own domains from a dashboard.
Is there a way to create a new domain using an SQL script, just like http://www.iredmail.org/docs/sql.create.mail.user.html? Like an API or something.
What SQl tables do I need to populate to add a new domain, if I choose to create them manually.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.