1

Topic: Migrating from one server to another with no upgrade

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.1
- Deployed with iRedMail Easy or the downloadable installer? download
- Linux/BSD distribution name and version: Ubuntu 24.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- 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.
====
I have established an iRedMail server on a cloud host while I dealt with some hardware issues.  They are now resolved and I want to bring the server onto my own machine.  Both the cloud and the physical server are running the same version of Ubuntu and iRedMail.  With the same passwords, to make life a bit easier.

I followed the docs.iredmail.org/backup.restore.html tutorial, brought the backup file onto my machine and inserted the 5 files (amavisd, iredapd, vmail, iredadmin, roundcubemail) into the local instance.  I can see from the admin panel that the users have messages in their accounts, but the users only get empty folders when they log into their Roundcube log-in page.

How can I fix this?

----

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

2

Re: Migrating from one server to another with no upgrade

the mails are not stored in a database, they are located in /var/vmail

3

Re: Migrating from one server to another with no upgrade

Make sure you have correct owner/group/permissions of copied mailboxes under /var/vmail/vmail1.
This directory must be owned by vmail:vmail with permission 0700.

chown -R vmail:vmail /var/vmail/vmail1/
chmod -R 0700 /var/vmail/vmail1/

4

Re: Migrating from one server to another with no upgrade

I deployed a copy of my iRedMail 1.7.1 installation to hyper-v box.
The aim is to check backup restoration.

I have PostgreSQL databases and SOGO webmail.
But the docs.iredmail.org/backup.restore.html tutorial describes mysql backend.
How can I restore databases, made by backup_pgsql and backup_sogo scripts?

Thank you in advance.