1

Topic: Connecting IredMail with an external Postgres database

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

I want to install iRedMail on a remote Postgresql database, I found instructions for MYSQL. Is there an instruction for Postgresl? Is it possible to do this?

----

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

2

Re: Connecting IredMail with an external Postgres database

iRedMail doesn't support remote PGSQL/OpenLDAP yet, but you can modify iRedMail source code to achieve this.

3

Re: Connecting IredMail with an external Postgres database

I think it's too difficult for me.
Is it possible to install on a local database, transfer it to a remote one, and then specify the remote database in all configurations?

4

Re: Connecting IredMail with an external Postgres database

Technically, sure it's ok to do so, but again, you're on your own.
Would you mind sharing why you prefer a remote PGSQL server?

5

Re: Connecting IredMail with an external Postgres database

ZhangHuangbin wrote:

Technically, sure it's ok to do so, but again, you're on your own.
Would you mind sharing why you prefer a remote PGSQL server?

Could you please indicate in which files the database settings are specified?

I have a separate server for the database, and all my services use the pgsgl database, and I would not like to install another local database or use a remote mysql database