1

Topic: Setup auto Backup MX instance

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? Downloadable
- 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,

Im running a PRO instance on main server , and i see there's a tutorial how to mark a backup MX domain. However as i have more than 120 domains on server -  maybe Zhang can recommend a way of setting a separate server as a backup MX , which would be in sync with main server ? So if any accounts gets created/deleted  in main server  - information is synced with backup server where it is marked as bakcup. ? Any draft ideas would be helpfull

Thanks

2

Re: Setup auto Backup MX instance

I don't quite sure i fully understand your request, but this should help:

- Setup secondary iRedMail server
- [both servers] Setup MySQL replication to sync mail accounts and other application data stored in SQL db.
- [both servers] Setup Dovecot replication to sync mailboxes (real-time). https://wiki.dovecot.org/Replication
- [secondary] Slightly update Postfix SQL queries in /etc/postfix/mysql/*.cf to treat backup mx domain as the primary domain (because this server is the backup mx already)

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3

Re: Setup auto Backup MX instance

Thanks , i think  this information is enought for me to start working this way. (For now im migrating main mail server, so once main serve ris done , i'll try to setup bakcup )