// <ahref="./index.html">Document Index</a></div><h1id="upgrade-iredmail-from-050-to-051">Upgrade iRedMail from 0.5.0 to 0.5.1</h1>
<li><ahref="#replace-old-ldap-schema-file-with-the-new-one-shipped-in-iredmail-051">Replace old LDAP schema file with the new one shipped in iRedMail-0.5.1.</a></li>
<li><ahref="#use-proxymap-to-improve-performance-and-reliability-under-high-load">Use proxymap to improve performance and reliability under high load.</a></li>
<li><ahref="#restrict-pop3simaps-service-in-dovecot">Restrict POP3S/IMAPS service in Dovecot</a></li>
<li><ahref="#enable-pop3simaps-services-for-all-mail-users">Enable POP3S/IMAPS services for all mail users</a></li>
<li><ahref="#add-domain-alias-support">Add domain alias support</a></li>
<li><ahref="#add-missing-service-control-in-postfix-ldap-lookup-table">Add missing service control in Postfix LDAP lookup table</a></li>
<li><ahref="#add-missing-attributes-in-ldap-acl-and-index-control">Add missing attributes in LDAP ACL and index control</a></li>
<li><ahref="#add-new-columns">Add new columns</a></li>
<li><ahref="#use-proxymap-to-improve-performance-and-reliability-under-high-load-in-postfix">Use proxymap to improve performance and reliability under high load in Postfix</a></li>
<li><ahref="#restrict-pop3simaps-services-in-dovecot">Restrict POP3S/IMAPS services in Dovecot</a></li>
<li>2009-11-03: Explain why we need extra SQL columns. Thanks Rashef@forum.</li>
<li>2009-11-03: Fix file name of LDAP schema. Thanks Bronkoo@twitter.</li>
<li>2009-11-02: Use python script to update LDAP data. ldapsearch will wrap long line, it breaks dn value. Thanks yangbajing@bbs for report this issue.</li>
<li>2009-09-10: <ahref="http://www.iredmail.org/forum/topic236-fixed-in-050-maill-forwarding-and-bcc-are-invalid.html">Maill forwarding and bcc are invalid</a></li>
<li>2009-08-21: <ahref="http://www.iredmail.org/forum/topic182-fixed-in-050-peruser-mail-filter-setting.html">per-user mail filter setting</a></li>
</ul>
<h3id="enable-proxymap-in-sqlldap-query-maps">Enable <code>proxymap</code> in SQL/LDAP query maps</h3>
<p>Set <code>proxy_read_maps</code> in postfix, so that we can use <code>proxymap(8)</code> daemon which
is part of postfix to reduce the number of connections to MySQL/LDAP and
<h3id="replace-old-ldap-schema-file-with-the-new-one-shipped-in-iredmail-051">Replace old LDAP schema file with the new one shipped in iRedMail-0.5.1.</h3>
<pre><code># --- BELOW ARE SHELL COMMANDS ----
# cd /etc/openldap/schema/ # Note: On Debian/Ubuntu, path is /etc/ldap/schema/
<p>Add columns used for service control: pop3s, imaps, managesieve:</p>
<pre><code># mysql -uroot -p vmail
mysql> ALTER TABLE mailbox ADD COLUMN enableimapsecured TINYINT(1) NOT NULL DEFAULT '1';
mysql> ALTER TABLE mailbox ADD COLUMN enablepop3secured TINYINT(1) NOT NULL DEFAULT '1';
mysql> ALTER TABLE mailbox ADD COLUMN enablemanagesievesecured TINYINT(1) NOT NULL DEFAULT '1';
</code></pre>
<p>Add columns used to store default user quota size, per-domain default password
length control. Will be used in iRedAdmin.</p>
<pre><code># mysql -uroot -p vmail
mysql> ALTER TABLE domain ADD COLUMN defaultuserquota BIGINT(20) NOT NULL DEFAULT '1024';
mysql> ALTER TABLE domain ADD COLUMN minpasswordlength INT(10) NOT NULL DEFAULT '0';
mysql> ALTER TABLE domain ADD COLUMN maxpasswordlength INT(10) NOT NULL DEFAULT '0';
</code></pre>
<h3id="use-proxymap-to-improve-performance-and-reliability-under-high-load-in-postfix">Use <code>proxymap</code> to improve performance and reliability under high load in Postfix</h3>
<p>Prepend <code>proxy:</code> to the beginnning of all MySQL lookup table definitions in
postfix configuration file: <code>/etc/postfix/main.cf</code>. For example:</p>
<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>