<li>Changing mailbox format does not migrate existing mailbox for you. You
have to migrate it <strong>BEFORE</strong> switching to new mailbox format, then
update SQL/LDAP data to use new mailbox format right after migrated the
mailbox.</li>
<li>New mailbox format will be used by Dovecot immediately after SQL/LDAP change.</li>
</ul>
</div>
<h2id="sql-backends">SQL backends</h2>
<p>You can switch to different mailbox format with SQL commands below. We use
MySQL for example here.</p>
<pre><code>USE vmail;
UPDATE mailbox SET mailboxformat='mdbox', mailboxfolder='mdbox' where username="user@your-domain.com";
</code></pre>
<ul>
<li>Value of <code>mailboxfolder</code> can be any folder name supported by Linux/BSD file
system, but value of <code>mailboxformat</code> must be one of the formats supported by
Dovecot, e.g. maildir, sdbox, mdbox.</li>
<li>Value of <code>mailboxfolder</code> can not be same as previously used one, otherwise
old mailbox will be messed up when Dovecot delivers new email.</li>
</ul>
<h2id="ldap-backends">LDAP backends</h2>
<p>You need some LDAP management tool like <ahref="http://phpldapadmin.sourceforge.net/">phpLDAPadmin</a>,
<ahref="https://directory.apache.org/studio/">Apache Directory Studio</a>, or command
line tool <code>ldapvi</code> (you can install it with <code>yum</code> or <code>apt-get</code> command directly)
to update mail user's LDIF data.</p>
<pre><code>mailboxFormat: mdbox
mailboxFolder: mdbox
</code></pre>
<ul>
<li>Value of <code>mailboxFolder</code> can be any folder name supported by Linux/BSD file
system, but value of <code>mailboxFormat</code> must be one of the formats supported by
Dovecot, e.g. maildir, sdbox, mdbox.</li>
<li>Value of <code>mailboxfolder</code> can not be same as previously used one, otherwise
old mailbox will be messed up when Dovecot delivers new email.</li>
<li>With iRedMail-0.9.9, if attribute <code>mailboxFormat</code> and <code>mailboxFolder</code> don't
present in user LDAP object, Dovecot is configured to use <code>maildir</code> as
default mailbox format and <code>Maildir</code> (case-sensitive) as folder name.</li>
</ul><divclass="footer">
<pstyle="text-align: center; color: grey;">All documents are available in <ahref="https://bitbucket.org/zhb/iredmail-docs/src">BitBucket repository</a>, and published under <ahref="http://creativecommons.org/licenses/by-nd/3.0/us/"target="_blank">Creative Commons</a> license. You can <ahref="https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2">download the latest version</a> for offline reading. If you found something wrong, please do <ahref="https://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
</div>
<!-- Global site tag (gtag.js) - Google Analytics -->