1

Topic: Install MariaDB Master/Master Replication with iRedmail EE

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): iRedmail EE
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: Ubuntu 24.04.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): OpenLDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
We will be migrating our current iRedmail server (Rocky 8) over to a new server (Ubuntu 24.04.3) running iRedmail EE. Our backend will be OpenLDAP which we have a remote server for and also want to run the MariaDB on remote servers using Master/Master replication between them.

Since iRedmail EE installs MariaDB by default locally, how do I get the installer to either not install MariaDB and/or point it to the MariaDB servers I have already setup? Is this something I do during the install process or after?

Thanks. Scott.

----

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

2

Re: Install MariaDB Master/Master Replication with iRedmail EE

- Latest EE v1.5.1 doesn't support such setup yet.
- Upcoming EE v1.6.0 supports remote MariaDB as backend during initial setup. You must choose MariaDB as backend first, then choose local or remote MySQL/MariaDB server. If it's remote, input server address/port, root username/password, etc and finish the initial setup. This way you can run MariaDB cluster separately.

3

Re: Install MariaDB Master/Master Replication with iRedmail EE

Zhang, 2 more questions for you on this topic:

1. When will EE v1.6.0 be coming out
2. In our case, I believe we will still be running LDAP as the backend, so could we still choose MariaDB as the backend so we can run it remotely but then switch the backend to LDAP so that the MariaDB part of iRedmail is running remotely, provided my question makes sense.

4

Re: Install MariaDB Master/Master Replication with iRedmail EE

squigley wrote:

1. When will EE v1.6.0 be coming out

Ideally, next week.

squigley wrote:

2. In our case, I believe we will still be running LDAP as the backend, so could we still choose MariaDB as the backend so we can run it remotely but then switch the backend to LDAP so that the MariaDB part of iRedmail is running remotely, provided my question makes sense.

No.

FYI https://docs.iredmail.org/ee.remote.mysql.html

5

Re: Install MariaDB Master/Master Replication with iRedmail EE

We are currently on iRedmail 1.6.8 with iRedAdmin-Pro 5.6 and our plan is is to migrate over
to iRedmail EE on a fresh vm running Ubuntu 24.04.3.

In our current install we run Open-LDAP as our backend, running it remotely as we have other infrastructure that authenticates against our Open-LDAP server.

What we want to do on the iRedmail EE server is to continue to use Open-LDAP as our backend and continue to run it remotely as we are today and as well as run MariaDB remotely.

We have an iRedmail EE server setup and are wanting some guidance on what configs need to modified in order to connect to our remote Open-LDAP server and also connect remotely to MariaDB also.

Many of the config/settings files such as /opt/iredapd/settings.py have instructions in them that these files should not be edited, I assume its because with upgrades they will get overwritten and break.

Any help/guidance would be appreciated. Thanks. Scott.