<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Sebastian,</p>
<p><br /></p>
<p>Thanks a lot for your comments. But that, anyway, won't assure no mailbox access would exist in the middle of the rename...</p>
<p>I think there should not be problems due that the function mboxlist_renamemailbox() does a mailbox_open_iwl() which finally checks if the mailbox is locked and then locks it. Anyway, if none of the gurus of Cyrus sais it... I would read more deeply the code (for ensuring) and will do some checks in testing env....</p>
<p><br /></p>
<p>Thanks a lot Sebastian :)</p>
<p>Cheers</p>
<p><br /></p>
<p>El 2019-05-23 19:28, Sebastian Hagedorn escribió:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span style="white-space: nowrap;">Hi,</span><br /> <br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><span style="white-space: nowrap;">Our Cyrus machines (Cyrus 3.0.8), usually have 3 mailbox partitions.</span><br /> <span style="white-space: nowrap;">Sometimes, one of them becomes highly filled so we usually perform a</span><br /> <span style="white-space: nowrap;">mailbox rename to another partition of the same server. For that</span><br /> <span style="white-space: nowrap;">purpose, we normally lock at our proxy barrier any access to the mailbox</span><br /> <span style="white-space: nowrap;">(we do play with Nginx authentication, Postfix hold and so....). Is it</span><br /> <span style="white-space: nowrap;">really needed to lock that way the mailbox, at some "external to Cyrus</span><br /> <span style="white-space: nowrap;">level," in order to avoid mailbox corruption?. Or does Cyrus handle that</span><br /> <span style="white-space: nowrap;">properly?. Does Cyrus exclusively lock and after done, unlock again?.</span></blockquote>
<br /> I can only answer that part of the question. We have been doing it like that (without blocking access from the outside) for years, but we're still on Cyrus 2.4. We only make sure there are no active processes by the user before starting the RENAME, and we do it at night. There haven't been any problems with that approach.<br /> <span style="white-space: nowrap;">--</span><br /> <span style="white-space: nowrap;">Sebastian Hagedorn - Weyertal 121, Zimmer 2.02</span><br /> <span style="white-space: nowrap;">Regionales Rechenzentrum (RRZK)</span><br /> <span style="white-space: nowrap;">Universität zu Köln / Cologne University - Tel. +49-221-470-89578</span></div>
</blockquote>
</body></html>