1

Topic: New Install of PRO stuck

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

Hi ,
I Have installed iRedMail successfully , however i have skipped iRedAdmin install (unchecked during install), as i needed a PRO version .

Now i have archive with iRedAdmin-PRO unpacked on the server but i dont see any install script there , and link below from DOC section doesnt really help as it doesnt describe install.

"Install iRedAdmin-Pro from scratch, Release Notes:
  http://www.iredmail.org/docs/iredadmin-pro.releases.html"

So question is - how should i now install the PRO version ?

Thank you.

----

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

2

Re: New Install of PRO stuck

- Copy unpacked iRedAdmin-Pro to /opt/www/
- Create symbol link of /opt/www/iRedAdmin-Pro-SQL-3.2 to /opt/www/iredadmin
- Go to /opt/www/iredadmin directory, generate a config file by copying settings.py.mysql.sample to "settings.py".
- Open "settings.py", make sure you have correct SQL username/passwords for each database.
- Set correct owner and permission:

chown -R iredadmin:iredadmin /opt/www/iRedAdmin-Pro*
chmod -R 0555 /opt/www/iRedAdmin-Pro-*
chmod 0400 /opt/www/iredadmin/settings.py

- Copy /opt/www/iredadmin/rc_scripts/systemd/debian.service to /lib/systemd/system/iredadmin.service, enable and start it with command line below:

systemctl enable iredadmin
systemctl start iredadmin

It will listen on 127.0.0.1:7791. Nginx will redirect requests (https://xxx/iredadmin/) to this port.
- Add 3 cron jobs for root user:

# ${PROG_NAME}: Cleanup Amavisd database
1   2   *   *   *   python /opt/www/iredadmin/tools/cleanup_amavisd_db.py >/dev/null

# iRedAdmin: Clean up sql database.
1   *   *   *   *   python /opt/www/iredadmin/tools/cleanup_db.py >/dev/null 2>&1

# iRedAdmin: Delete mailboxes on file system which belong to removed accounts.
1   *   *   *   *   python /opt/www/iredadmin/tools/delete_mailboxes.py

3

Re: New Install of PRO stuck

Hi,

but i have no iredadmin table in MySQL, have you got a proper script for install maybe, do you think theres more things missing ?

4

Re: New Install of PRO stuck

My mistake. Please create it manually, then import the SQL file shipped in iRedAdmin-Pro:

CREATE DATABASE IF NOT EXISTS iredadmin DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE iredadmin;
SOURCE /opt/www/iredadmin/SQL/iredadmin.mysql;
GRANT ALL ON iredadmin.* TO iredadmin@localhost IDENTIFIED BY '<your-secret-password>';

NOTE: please replace '<your-secret-password>' by a real and strong password, then update iRedAdmin-Pro config file to use this password, restart "iredadmin" service.

5

Re: New Install of PRO stuck

Thanks - i cloned the DB from old server , so things went working ok now.