1 (edited by rtukpe 2017-03-25 00:32:33)

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.

2

Re: Create New Domain Using SQL

Our iRedAdmin-Pro offers RESTful API interface:
http://www.iredmail.org/docs/iredadmin- … l.api.html

3

Re: Create New Domain Using SQL

Hmm...

Is there a way I can do it myself?

4

Re: Create New Domain Using SQL

You get all SQL database which stores mail accounts, so of course you can develop your own API server. smile
But you may want to calculate the value ($$) of time you need to spend, is it expensive than an iRedAdmin-Pro license?

5

Re: Create New Domain Using SQL

Lol...

I know it's a lot of work.
But I sincerely don't have the money to pay for the Pro License sad

I guess I'd figure it out. Thanks.