Re: 1 to 1 sync between two iRedMail servers

What I have in mind: A backup solution where both servers are fully functional and fully synchronized between themselves, and none of them is actually just a small backup with less functionality.

E.g., 2 iRedMail servers, A and B. Both are identical as domains and user accounts, both have the same priority in the DNS, so both receive mail. Also, some kind of round-robin in the DNS, so users which have accounts on them connect randomly on A and B.

Now, if a mail gets delivered to A, it must be also visible (and physically present) very fast on B too. If a mail gets deleted on B, it should also be deleted on A and so on...

Can rsync do that? Let me raise a problem for example: For a user account, let call it John, the mailboxes on A and B are almost identical, with one difference: there is a mail message M1 only on A. Now, what does this mean? That message M1 just got delivered on server A, and B should get it too with rsync, or that the user connected to B and deleted it from there and A should delete it too?

How about quota? If mails get delivered on A and B, will the user quota get updated correctly?

Re: 1 to 1 sync between two iRedMail servers

maxie_ro wrote:

Can rsync do that?

No!I didn´t found a solution yet, need server2server replication too!!!I havn´t tested DRDB or glusterFS but it should work.An another possible solution is NFS (3rd server) but Dovecot has still some bugs [???] and a single NFS server is another point of failure.

Re: 1 to 1 sync between two iRedMail servers

Hi ALl

I think we will 2 this option for this problem1/ if you use SQL as backend .We can use 2 steps for sync 2 iredmaila/use rsync for this sync mail data(or we can create data server for mail data as SAN,freenac...)b/use replicate DB(vmail) for mail box,alias... as prefer:http://conheotiensinh.blogspot.com/2009/09/cluster-linux-mail-server.html2/if you use LDAP as backend.We can use 2 steps for sync 2 iredmail(or we can create data server for mail data as SAN,freenac...)a/use rsync for this sync mail datab/use master-slave ldap

Beside you can create cluster for 2 mail server use:heartbeat,VRRPD...

Re: 1 to 1 sync between two iRedMail servers

Re: 1 to 1 sync between two iRedMail servers

maxie_ro wrote:

I don't think that would work.What I have in mind: A backup solution where both servers are fully functional and fully synchronized between themselves, and none of them is actually just a small backup with less functionality.E.g., 2 iRedMail servers, A and B. Both are identical as domains and user accounts, both have the same priority in the DNS, so both receive mail. Also, some kind of round-robin in the DNS, so users which have accounts on them connect randomly on A and B.

@marie_ro:Exactly this is it!

Round-robin not load balance should be the solution.

@whatislove:You can´t do this with rsync, just DRBD and gfs. I tested glusterFS - to slow and to much overhead on heavy loaded servers. Problems with NFS (v3) too, don´t touch it any more. V4 not tested!