Re: Dual-way replication?, What gets replicated?

2006-01-05 Thread Ken Murchison

[EMAIL PROTECTED] wrote:


Balthasar Cevc wrote:

1. Is it possible to have a server be master and client at the same 
time - with the effect of being able to use 2 servers at the same time 
for IMAP connections?


Not at the moment.  David's code (and proxy) are fairly simple because 
they don't allow for shared mailboxes.  If you can guarantee that a 
client will never have to leave one server, then a simple proxy like 
Perdition would suffice.


I plan to allow for backends in a Murder to replicate one another.

--
Kenneth Murchison
Systems Programmer
Carnegie Mellon University

Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Dual-way replication?, What gets replicated?

2006-01-05 Thread former03 | Baltasar Cevc

Hi Ken, hi Wolfgang,
thanx for your quick answers!
Baltasar

_ former 03 gmbh
_ infanteriestraße 19 haus 6 eg
_ 80797 muenchen

_ [EMAIL PROTECTED]
_ www.former03.de

_ fon 0941.206.6952
_ fax 089.322112.11
_ mobil 0176.232.20.822


Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Dual-way replication?, What gets replicated?

2006-01-04 Thread hamann . w

Balthasar Cevc wrote:

1. Is it possible to have a server be master and client at the same 
time - with the effect of being able to use 2 servers at the same time 
for IMAP connections?

Hi Balthasar,

the setup at David Carter's site uses two machines: one acting as master for 
half of the users,
te other one as slave. The roles for the other half of users are reversed.
To make it work, there needs to be
- something telling the client where to connect
- something telling the MTA where to deliver
I am currently testing David's imapproxy changed to get user/server association 
from a mysql db.
Since my MTA calls deliver from a script anyway, it was no problem to obtain 
the correct
server for delivery from the mysql db as well.
In case of a failure, the db needs to be updated to send all users to the 
working server.
For recovery, as well as while redistributing users, one user at a time would 
be blocked
(cannot login, and mta cannot deliver) while it is synced

Wolfgang Hamann




Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Dual-way replication?, What gets replicated?

2006-01-04 Thread Ken Murchison

former03 | Baltasar Cevc wrote:

Hi everybody,

thanx to everybody who contributed for this great piece of server 
software (and the nice support on the mailing list); explicitly thanx to 
Ken for everything and David for the replication code!


Two questions, as I'm not able to jump into the code deeply enough to 
answer them myself...


1. Is it possible to have a server be master and client at the same time 
- with the effect of being able to use 2 servers at the same time for 
IMAP connections?


Not (easily) with the current code, unless you have a way external to 
Cyrus to keep track of which server is the master for a given mailbox. 
You can NOT serve mailboxes/messages from a machine which is replicated.


I plan to add code, probably using MUPDATE, which will allow load 
balancing across multiple replicated servers.


2. What gets replicated. Is it just messages? Or also the sieve things? 
I've seen some sieve routines in the replication code, however, as it's 
all in the imap directory, I am not sure...


Anything related to IMAP and Sieve (mailboxes, mailbox annotations, 
messages, message flags, Sieve scripts, etc).  Any non-critical data 
such as deliver.db or tls_sessions.db is not replicated.


--
Kenneth Murchison
Project Cyrus Developer/Maintainer
Carnegie Mellon University

Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Dual-way replication?, What gets replicated?

2006-01-04 Thread former03 | Baltasar Cevc

Hi everybody,

thanx to everybody who contributed for this great piece of server 
software (and the nice support on the mailing list); explicitly thanx 
to Ken for everything and David for the replication code!


Two questions, as I'm not able to jump into the code deeply enough to 
answer them myself...


1. Is it possible to have a server be master and client at the same 
time - with the effect of being able to use 2 servers at the same time 
for IMAP connections?


2. What gets replicated. Is it just messages? Or also the sieve things? 
I've seen some sieve routines in the replication code, however, as it's 
all in the imap directory, I am not sure...


Thanx!

Baltasar

_ former 03 gmbh
_ infanteriestraße 19 haus 6 eg
_ 80797 muenchen

_ [EMAIL PROTECTED]
_ www.former03.de

_ fon 0941.206.6952
_ fax 089.322112.11
_ mobil 0176.232.20.822


Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html