1 (edited by aarango 2017-01-20 14:45:16)

Topic: Replicate server iRedmail

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version:  Ubuntu 14
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

Hi, I wonder if its possible replicate server with this arquitecture:

1º Server iRedmail installed and working fine (its actual server).
2º Server with iRedmail installed.

Now I have synchronized LDAP (with /etc/ldap/slapd.conf config) ,Mysql (master status) and directory /var/vmail/vmail1 (with lsyncd).
Now I have configured keepalive on both server with same IP.

My idea is, if main server down, secondary server will up and works fine. Is it possible? Or I need do some custom configs?

Thanks.

----

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

2

Re: Replicate server iRedmail

Should be fine, you should test it first. smile

BTW, it's better use Dovecot dsync/replication to sync mailboxes instantly, not rsync, lsyncd, etc.

3

Re: Replicate server iRedmail

ZhangHuangbin wrote:

Should be fine, you should test it first. smile

BTW, it's better use Dovecot dsync/replication to sync mailboxes instantly, not rsync, lsyncd, etc.

ZhangHuangbin wrote:

Should be fine, you should test it first. smile

BTW, it's better use Dovecot dsync/replication to sync mailboxes instantly, not rsync, lsyncd, etc.

Thanks you Zhang. I will check that tool.

Let me know a thing. If main server fail down, second server will wake up and if ldap + mysql + dovecot is syncronized and server has same IP, I won't have any problem to receive emails, dont?
Will I need some extra config?

Thanks

4

Re: Replicate server iRedmail

aarango wrote:

Let me know a thing. If main server fail down, second server will wake up and if ldap + mysql + dovecot is syncronized and server has same IP, I won't have any problem to receive emails, dont?

You should test before go live. smile