1

Topic: Run script at new domain creation

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: CentOS 7.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Is there some trigger available to run a script when a new domain is added through iRedAdmin-Pro? So the script can dynamically add the records to the DNS for DKIM, autodiscover, SPF, etc.

----

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

2

Re: Run script at new domain creation

Currently no such API for SQL backends, but LDAP edition does (check file "docs/hooks/LDAP.md" in iRedAdmin-Pro directory).

I can add one for new mail domain post-creation for SQL backends in this case, do you want to give it a try? You need to write your own hooks in Python to add the DNS records.