1 (edited by wpgeronimo 2023-10-16 16:35:07)

Topic: Migrate existing iRedmail from 0.9.2 and upgrade to latest 1.6.5

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

How to migrate existing iRedmail from 0.9.2 and upgrade to latest 1.6.5 in CentOS Stream 9

Thanks in advanced.

----

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

2

Re: Migrate existing iRedmail from 0.9.2 and upgrade to latest 1.6.5

The patch / version update instructions are here:
https://docs.iredmail.org/iredmail.releases.html

3

Re: Migrate existing iRedmail from 0.9.2 and upgrade to latest 1.6.5

Stubby066 wrote:

The patch / version update instructions are here:
https://docs.iredmail.org/iredmail.releases.html

I tried from 0.9.6 to 1.6.0 (IIRC) and there were some things that didn't work.

4

Re: Migrate existing iRedmail from 0.9.2 and upgrade to latest 1.6.5

I've done them from .9 to 1.65, everything worked except I borked up the roundcube install one time.

I migrated to a new server/fresh install. 

You will want to make sure the database changes are done to current version before doing so. 

Process went like this:

(freeze the state of old machine)
service apache2 stop
service mysql stop
service postfix stop
service dovecot stop

Dump databases out to a file
- rsync/transfer DB dumps to new machine
- Load databases
- rsync over the vmail folder
- drop and recreate the sogo view
- rsync over the amavis/DIKM files (or recreate and republish in DNS records)

Guide:

https://docs.iredmail.org/migrate.to.ne … erver.html

The only part of the guide that didn't work for me was

GRANT SELECT ON vmail.mailbox TO sogo@"127.0.0.1";

but it didn't seem to affect operation.

I went from an apache2/mysql to nginx/mariadb

a couple of the scripts I changed the commands to mariadb from mysql so it would stop complaining about the deprecation of the command.

5

Re: Migrate existing iRedmail from 0.9.2 and upgrade to latest 1.6.5

Thanks for the acknowledge.

Do i need to update the database first before migrating to fresh install?