1

Topic: iRedMail 1.0 Installation Issue

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.0
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04
- 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.
====

I did the fresh installation of iRedMail-1.0 with Remote MySQL. Installation did the setup of related DBs but there are no table in roundcubemail, amavisd etc database and hence getting Bad gateway error or unable to connect to database error. During the installation it did not give any error. Now when I try to do reinstall it just below

< SKIP > Function: after_package_installation.

********************************************************************
* Start iRedMail Configurations
********************************************************************
< SKIP > Function: generate_ssl_keys.
[ INFO ] Create required system accounts.
< SKIP > Function: add_user_vmail.
< SKIP > Function: add_user_mlmmj.
< SKIP > Function: add_user_iredadmin.
< SKIP > Function: add_user_iredapd.
< SKIP > Function: add_user_netdata.
< SKIP > Function: web_server_config.
< SKIP > Function: mysql_setup.
< SKIP > Function: postfix_setup.
< SKIP > Function: dovecot_setup.
< SKIP > Function: mlmmj_config.
< SKIP > Function: mlmmjadmin_config.
< SKIP > Function: clamav_config.
< SKIP > Function: amavisd_config.
< SKIP > Function: sa_config.
< SKIP > Function: iredapd_setup.
< SKIP > Function: iredadmin_setup.
< SKIP > Function: rcm_setup.
< SKIP > Function: netdata_setup.
< SKIP > Function: fail2ban_config.
< SKIP > Function: cleanup.

----

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

2

Re: iRedMail 1.0 Installation Issue

tirpitz wrote:

I did the fresh installation of iRedMail-1.0 with Remote MySQL. Installation did the setup of related DBs but there are no table in roundcubemail, amavisd etc database and hence getting Bad gateway error or unable to connect to database error.

Did you set "INITIALIZE_SQL_DATA=NO" while running iRedMail installer? for example:

INITIALIZE_SQL_DATA=NO bash iRedMail.sh

With this option ("NO"), iRedMail installer will NOT create sql tables.

3

Re: iRedMail 1.0 Installation Issue

hi

No i did not do that. It did create the DB but did not install the tables and relevant data.

4

Re: iRedMail 1.0 Installation Issue

Did a quick check of iRedMail source code, unfortunately, it's a "bug" of iRedMail installer: If "INITIALIZE_SQL_DATA=YES", it will not run commands to create SQL databases and tables.