1

Topic: backup/restore/migration of email server

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

ok, now for the email itself. we just spoke of migrating my spider. now it's time for the email server itself.

i'm guessing i would deploy a new server with same settings from the easy console, or deploy the same server listed but change its IP address and do a full re-deploy of it.

after that i'm not sure.

stop everything? migrate all data, configs and db's and restart it?

thanks.

----

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

2

Re: backup/restore/migration of email server

i guess the easiest way is:
1 deploy a new server
2 update DNS records (dkim sign, ip etc.)
3 use imapsync to migrate emails from old to new

3

Re: backup/restore/migration of email server

dave.opc wrote:

i guess the easiest way is:
1 deploy a new server
2 update DNS records (dkim sign, ip etc.)
3 use imapsync to migrate emails from old to new

i agree that is much simpler and i have actually done that before. ok, that's one option.

i do have some mlmmj mailing lists. i suppose that will require some hand holding like i intimated in my post, to get their archives over. i think mlmmj just writes the data which comprises the mailing lists into their own folders on the local file system. so maybe just rsync that over once i have built the new server? right? or am i missing something? thanks.

4

Re: backup/restore/migration of email server

i think you can play with importing mysql databases that are made daily.

5

Re: backup/restore/migration of email server

fsantiago06111979 wrote:

after that i'm not sure.
stop everything? migrate all data, configs and db's and restart it?

Better sync / copy data and custom settings BEFORE iRedMail Easy deployment. It's ok to sync / copy after deployment, then do a full re-deployment, so that Easy can help set / fix correct file owner/group/permissions.

- About "data", i mean whole "/var/vmail/" directory.
- About custom settings, i mean whole "/opt/iredmail/custom/" directory.

Export all SQL databases (except the one named "mysql") on old server, importing them on new server (after deployment). That's all.

6

Re: backup/restore/migration of email server

Perfect, thank you. I’ll let you know how it goes. I’ve already “easy’d” the new server so I’ll be going the full re-deployment route after sync’ing and db imports.

Can you comment on how to best handle the mlmmj mail lists? Am I right it’s all flat files on the local file system I can just sync over?

Thanks.

7

Re: backup/restore/migration of email server

I just thought of another migration step; i will need to change the sql db user passwords to match the old system or change all of the component configs to use the new passwords created when deploying the new server (all from iredmail.tips file).

8

Re: backup/restore/migration of email server

fsantiago06111979 wrote:

Can you comment on how to best handle the mlmmj mail lists? Am I right it’s all flat files on the local file system I can just sync over?

Yes. mlmmj data are stored under /var/vmail/mlmmj/ (all active mailing lists) and /var/vmail/mlmmj-archive/ (archived mailing lists).

9

Re: backup/restore/migration of email server

ok migration complete and this worked more or less OK. i just had to factor in some password differences but otherwise good to go and i'm up on my new server with no real discernable down time. thanks for your help.