Rich Wales
2013-Apr-22 18:23 UTC
[Dovecot] Replication -- multiple users, three or more servers?
I'm running Dovecot 2.2.1 on an Ubuntu 12.04.2 server, with half a dozen accounts for various family members. I want to set up replication involving at least three Ubuntu servers, with different users replicated on different sets of servers. For example, I might have mail for "user1" replicated on "server1", "server2", and "server3"... while mail for "user2" would be on "server1" and "server2"... and mail for "user3" would be on "server1" and "server3". I've read the wiki page (http://wiki2.dovecot.org/Replication), but I'm still confused. I'd love to see an example that clearly shows how to set up specific individual mail users to be replicated on a different set of servers for each user, like what I described above. Rich Wales richw at richw.org
Timo Sirainen
2013-Apr-23 10:41 UTC
[Dovecot] Replication -- multiple users, three or more servers?
On Mon, 2013-04-22 at 11:23 -0700, Rich Wales wrote:> I'm running Dovecot 2.2.1 on an Ubuntu 12.04.2 server, with half a dozen > accounts for various family members. I want to set up replication > involving at least three Ubuntu servers, with different users replicated > on different sets of servers. > > For example, I might have mail for "user1" replicated on "server1", > "server2", and "server3"... > > while mail for "user2" would be on "server1" and "server2"... > > and mail for "user3" would be on "server1" and "server3". > > I've read the wiki page (http://wiki2.dovecot.org/Replication), but I'm > still confused. I'd love to see an example that clearly shows how to > set up specific individual mail users to be replicated on a different > set of servers for each user, like what I described above.Everything is the same as in that wiki page, except you need to have userdb field override the mail_replica setting. Or I guess you wouldn't want to have a default mail_replica at all, so users won't accidentally get replicated to wrong place. See http://wiki2.dovecot.org/UserDatabase/ExtraFields For example with SQL something like: user_query = SELECT home, uid, gid, \ concat('tcp:', replicahost) as mail_replica \ FROM users WHERE userid = '%u'
Maybe Matching Threads
- Samba AD - two servers - backup and restore AD procedure
- Restore a node in a replicating Gluster setup after data loss
- Self-heal's behavior: problem on "replace" -- it leaves garbage.
- Syncing to multiple servers
- How to trigger a resync of a newly replaced empty brick in replicate config ?