1

Topic: Migrate old LEMP server to iRedMail

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

Hi guys,


So I have a LEMP server installed on Ubuntu 16.04. It does not have iRedMail installed, I followed an old Arstechica guide from 2014. I've decided to upgrade to 20.04 on a new server. I've done a clean install of iRedMail and plugged in my SSL certs. My question is, is it possible to migrate my vmail sql database, virtual users and email store to iRedMail? Also is it possible to migrate Roundcube as well. I haven't changed over DNS records of dkim, mx, demarc and spf yet, until I can get my data fully migrated as best I can.

Thanks in advance.


Rob

----

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

2

Re: Migrate old LEMP server to iRedMail

I'm not familiar with your own LEMP server, i guess it's impossible to migrate the "vmail" db directly by simply dump on LEMP server and import on iRedMail server, because it doesn't have same SQL structure as the one created by iRedMail.

You can simply try to extract the required SQL columns and export them to iRedMail sql db, this way it should work.

Roundcube should be fine, but you must upgrade it too.

3 (edited by ninjakid 2020-10-26 22:44:19)

Re: Migrate old LEMP server to iRedMail

Thanks for getting back to me.

I found a workaround. As I had all the passwords for the mailboxes on my old server, I was able to recreate the mailboxes on the iRedMail server with the same passwords, then used a handly little command line tool called (imapsync). This migrated all mailboxes and sync'd them fully seemlessly. This way I don't have to mess around with SQL and merging data. I'm now fully up and running on the iRedMail server and my users have all their data as before, no loss. I'm not too fussed about the Roundcubedb, as the data can be recreated by users. Now I just need to figure out migrating all the fail2ban jails I had set up.

I also want to thank you for such brilliant software. It makes the process so easy. Thanks for all your hard work developing it.


Rob

4

Re: Migrate old LEMP server to iRedMail

Thanks for the update. smile