<div>I make some tests and find problems moving mailboxes with users online:</div><div>( Cyrus 2.4.8 )</div><div><br></div><div>Move with</div><div><br></div><div>RENAME user/lucas.carraro user/lucas.carraro server2.prevnet!default</div>
<div><br></div><div><br></div><div>In frontends and backends:</div><div><br></div><div>.........</div><div>allowusermoves: 1</div><div><div>disconnect_on_vanished_mailbox: 1</div></div><div>........</div><div><br></div><div>
When i move from server1!default to server2!default</div><div><br></div><div>In server1 lock remains:</div><div><br></div><div><config_directory>/lock/lucas.carraro.lock</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<config_directory>/lock/lucas.carraro/Sent.lock</div></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><div><config_directory>/lock/lucas.carraro/Project.lock</div></div></div>
<div><meta http-equiv="content-type" content="text/html; charset=utf-8"><config_directory>/lock/lucas.carraro/Trash.lock</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><config_directory>/lock/lucas.carraro/Drafts.lock</div>
<div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><config_directory>/lock/lucas.carraro/IBM.lock</div></div><div><br></div><div>In server1 <spool_imap>/l/user/lucas^carraro/ remains with messages,</div>
<div>but subfolders are deleted.</div><div><br></div><div><br></div><div>* All mailboxes moves to server2 , and all delivery continue normally in server2</div><div>all deleted mailboxes DELETED/user/lucas.carraro/ moves normally to server2</div>
<div><br></div><div>If i try to move back: (server2 -> server1)</div><div><br></div><div>I receive a error: "Server unavaiable for this operation"</div><div><br></div><div>if i remove in server1 <config>/lib/imap/lock/lucas.carrar* and <spool>/imap/l/user/lucas^carraro/*</div>
<div>i can move all mailboxes from server2 to server1.</div><div><br></div><div>But locks and principal mailbox remains in sever2.</div><div><br></div><div><br></div><div>* Exist another parameter to force discconnect ?</div>
<div><br></div><div><br></div><div>Regards</div><div>Zinato</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br>
</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><div><br></div><div><br></div><div><br></div><div><br></div><br><br><div class="gmail_quote">On Thu, May 12, 2011 at 8:26 PM, Dave McMurtrie <span dir="ltr"><<a href="mailto:dave64@andrew.cmu.edu">dave64@andrew.cmu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 5/12/11 7:06 PM, Lucas Zinato Carraro wrote:<br>
><br>
> I can move mailboxes between servers with a user connected ?<br>
<br>
</div>Generally, yes, but I'm not 100% sure that there aren't edge cases.<br>
Actually, I'm going to assume that there are probably edge cases. Also,<br>
newer versions should be somewhat better than older versions at dealing<br>
with this.<br>
<br>
At the very least, if you're running any version more recent than 2.3.15<br>
you'll want to make sure you set disconnect_on_vanished_mailbox to true<br>
in imapd.conf. If you don't set this, the client will remain connected<br>
to proxyd on the frontend and proxyd will remain connected to imapd on<br>
the backend. After the move, there will be no mail on that backend<br>
server and the user will see an empty mailbox. Setting<br>
disconnect_on_vanished_mailbox will cause imapd to disconnect proxyd and<br>
hence, the client. Depending on the client, it may silently reconnect<br>
and the user won't notice. That behavior varies by client.<br>
<div class="im"><br>
<br>
> Exist a way to block the connection until the operation finish ?<br>
<br>
</div>Cyrus takes care of this for you by setting the mailbox state to<br>
MBTYPE_RESERVE during the move. Note that this happens per-folder as<br>
each one is being moved, and not for the entire mailbox hierarchy.<br>
<br>
If an IMAP client attempts to access a folder while it's in reserved<br>
state it will get either a BAD or NO (I didn't look to see which)<br>
"Mailbox is currently reserved" back.<br>
<br>
hth,<br>
<br>
Dave<br>
----<br>
Cyrus Home Page: <a href="http://www.cyrusimap.org/" target="_blank">http://www.cyrusimap.org/</a><br>
List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" target="_blank">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br>
</blockquote></div><br>