// <ahref="./index.html">Document Index</a></div><h1id="upgrade-dovecot-from-11-to-12-on-rhelcentos-5x-debian-5">Upgrade Dovecot from 1.1 to 1.2 on RHEL/CentOS 5.x, Debian 5.</h1>
<p>Dovecot 1.2 is available in <ahref="http://iredmail.org/yum/rpms/dovecot/">another iRedMail yum repository</a>, you should append below lines in <code>/etc/yum.repos.d/iRedMail.repo</code> to enable it:</p>
<p>Note: Because iRedMail-0.6.1 and earlier versions doesn't support dovecot-1.2, so we can't add this package in default yum repository, otherwise new installation of iRedMail (<=0.6.1) will be failed.</p>
<p>Remove dovecot-1.1. Be aware of below steps, we will update dovecot config based on config file of <code>dovecot-1.1</code>.</p>
<p>We need to update Dovecot config file <code>dovecot.conf</code>, it's <code>/etc/dovecot.conf</code> on RHEL/CentOS, <code>/etc/dovecot/dovecot.conf</code> on Debian 5.</p>
<ul>
<li>Remove setting <code>umask =</code>. It wasn't really used anywhere anymore.</li>
<li>Remove <code>zlib</code> from all <code>mail_plugins =</code> settings. This plugin is buggy in 1.x and will be fixed only in 2.x.</li>
<li>Change sieve plugin name <code>cmusieve</code> to <code>sieve</code> in <code>protocol lda {}</code> section.</li>
<li>
<p>Change <code>ssl_disable=no</code> to <code>ssl=yes</code>.</p>
</li>
<li>
<p><code>[For MySQL backend]</code> Add two more columns in <code>vmail.mailbox</code> if not present:</p>
</li>
</ul>
<pre><code>$ mysql -uroot -p
mysql> USE vmail;
mysql> ALTER TABLE mailbox ADD COLUMN enablesieve TINYINT(1) NOT NULL DEFAULT '1';
mysql> ALTER TABLE mailbox ADD COLUMN enablesievesecured TINYINT(1) NOT NULL DEFAULT '1';
</code></pre>
<ul>
<li><code>[For RHEL/CentOS]</code> Append <code>managesieve</code> service related config in <code>dovecot.conf</code>:</li>
<li><code>[For Debian 5 (lenny)]</code> In <code>dovecot.conf</code>, move <code>sieve =</code> and <code>sieve_storage =</code> from section <code>protocol managesieve {}</code> to section <code>plugin {}</code>, and rename <code>sieve_storage</code> to <code>sieve_dir</code>:</li>
<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="http://www.iredmail.org/contact.html">contact us</a> to fix it.</p>