<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>Hello, everyone!</p>
<p>I come to bring you some good news.</p>
<p>Actually the problems I was facing had nothing to do with database stuff at all. It was a single configuration line (<strong>defaultdomain</strong>) in <strong>imapd.conf </strong>that was set to <strong>domain.example</strong> while it was set to <strong>imap.domain.example </strong>in the old server configuration file.</p>
<p>Earlier, before figuring out what was the issue, I noticed that using the wrong domain made Cyrus look for the mailboxes in <strong>defaultpartition/u/user </strong>instead of looking in <strong>defaultpartition/domain/d/domain.example/u/user</strong>. And thus, when creating manually mailboxes, they were being created out of that domain directory.</p>
<p>While this solved my problem, it brought  me some really bad confusion. I looked for an explanation in the Cyrus imapd.conf docs, but nothing that related one thing to each other was found.</p>
<p>Anyone could shed some light on this? I just can't let this pass with no explanation.</p>
<p>Thanks in advance!</p>
<p>Em 2017-12-29 20:58, Hiago Prata escreveu:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p>Hi, I'm trying split users mailboxes into two smaller servers running Cyrus-IMAP (for organizational purposes only). These servers are running the newest version of Cyrus-IMAP available to a Debian system (2.5.10-3), while the old server runs Cyrus on version 2.2.13-14. I've done the migration of another server running this same version to the newest version with no problems.</p>
<p>Now, I need to do a migration to the new servers and split the mailboxes. This is what I did for the first server already:</p>
<p> - Back up part of the mailboxes to the new server using <strong>rsync</strong>;</p>
<p> - Back up the files contained in the <strong>/var/lib/cyrus/domain</strong> directory;</p>
<p> - Dump the corresponding entries of the mailboxes.db using <strong>ctl_mboxlist -d</strong>;</p>
<p>On the new server I did:</p>
<p> - Remove the content of <strong>/var/lib/cyrus</strong>;</p>
<p> - Run the <strong>makedirs</strong> command;</p>
<p> - Imported the database entries using <span><strong>ctl_mboxlist -u</strong>;</span></p>
<p><span> - Copy the domain content back into <strong>/var/lib/cyrus</strong>;</span></p>
<p><span> - Reconstruct the databases using <strong>reconstruct -rf user/*</strong> (got no output from this);<br /></span></p>
<p><span> - Change the database indexes to max using<strong> reconstruct -V max</strong> (this one gave output for all the imported mailboxes)</span></p>
<p><span>After all these steps, I noticed that no users had their quota set.<br />And trying to set it manually told me the mailboxes don't exist.<br />Though dumping the database show me otherwise.</span></p>
<p><span>I've tried to create the mailboxes manually too, but after setting the users quota, <br />it was shown that there was no quota usage for any of the users.</span></p>
<p><span>So, am I missing something in this procedure? </span></p>
<p><span>What is the correct way of doing this?</span></p>
<p><br /></p>
<p><span>Holp you can help me. Thanks in advance!</span></p>
<!-- html ignored --><br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">----<br /> Cyrus Home Page: <a href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a><br /> List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br /> To Unsubscribe:<br /> <a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></div>
</blockquote>
<p><br /></p>
<div>-- <br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Hiago Prata<br /> Graduando em Engenharia da Computação<br /> DataCenter da UFPA - CTIC<br /> Faculdade de Engenharia da<br /> Computação e Telecomunicações - ITEC<br /> Universidade Federal do Pará</div>
</div>
</body></html>