// <ahref="./index.html">Document Index</a></div><h1id="upgrade-iredmail-from-132-to-140">Upgrade iRedMail from 1.3.2 to 1.4.0</h1>
<divclass="toc">
<ul>
<li><ahref="#upgrade-iredmail-from-132-to-140">Upgrade iRedMail from 1.3.2 to 1.4.0</a><ul>
<li><ahref="#changelog">ChangeLog</a></li>
<li><ahref="#general-all-backends-should-apply-these-changes">General (All backends should apply these changes)</a><ul>
<li><ahref="#update-etciredmail-release-with-new-iredmail-version-number">Update /etc/iredmail-release with new iRedMail version number</a></li>
<li><ahref="#fail2ban-fixed-few-issues-in-script-usrlocalbinfail2ban_banned_db">Fail2ban: Fixed few issues in script /usr/local/bin/fail2ban_banned_db</a></li>
<li><ahref="#for-mysql-and-mariadb-backends">For MySQL and MariaDB backends</a><ul>
<li><ahref="#add-new-sql-table-vmailmaillist_owners-and-drop-4-unused-columns">Add new SQL table vmail.maillist_owners and drop 4 unused columns</a></li>
<li><ahref="#add-new-sql-table-vmailmaillist_owners-and-drop-4-unused-columns_1">Add new SQL table vmail.maillist_owners and drop 4 unused columns</a></li>
<h3id="fail2ban-fixed-few-issues-in-script-usrlocalbinfail2ban_banned_db">Fail2ban: Fixed few issues in script <code>/usr/local/bin/fail2ban_banned_db</code></h3>
<p>Script <code>/usr/local/bin/fail2ban_banned_db</code> shipped in iRedMail-1.3.2 and
earlier releases have few issues:</p>
<ul>
<li>It can not store IP address when its country name contains quotes</li>
<h2id="for-mysql-and-mariadb-backends">For MySQL and MariaDB backends</h2>
<h4id="add-new-sql-table-vmailmaillist_owners-and-drop-4-unused-columns">Add new SQL table <code>vmail.maillist_owners</code> and drop 4 unused columns</h4>
<ul>
<li>New SQL table <code>vmail.maillist_owners</code> is used to store owners' email addresses
of subscribeable mailing lists. With this new table, if self-service is enabled
in iRedAdmin-Pro, mailing list owner is able to login to iRedAdmin-Pro and
manage profile and members of owned mailing lists.</li>
<li>4 columns in sql table <code>vmail.mailbox</code> are not used anymore, it's safe to
drop them now:<ul>
<li><code>allowedsenders</code></li>
<li><code>rejectedsenders</code></li>
<li><code>allowedrecipients</code></li>
<li><code>rejectedrecipients</code></li>
</ul>
</li>
</ul>
<p>Download plain SQL file used to apply changes, then import it directly as
MySQL root user (Please run commands below as <code>root</code> user):</p>
<h4id="add-new-sql-table-vmailmaillist_owners-and-drop-4-unused-columns_1">Add new SQL table <code>vmail.maillist_owners</code> and drop 4 unused columns</h4>
<ul>
<li>New SQL table <code>vmail.maillist_owners</code> is used to store owners' email addresses
of subscribeable mailing lists. With this new table, if self-service is enabled
in iRedAdmin-Pro, mailing list owner is able to login to iRedAdmin-Pro and
manage profile and members of owned mailing lists.</li>
<li>4 columns in sql table <code>vmail.mailbox</code> are not used anymore, it's safe to
drop them now:<ul>
<li><code>allowedsenders</code></li>
<li><code>rejectedsenders</code></li>
<li><code>allowedrecipients</code></li>
<li><code>rejectedrecipients</code></li>
</ul>
</li>
</ul>
<p>Download plain SQL file used to apply changes:</p>
<pstyle="text-align: center; color: grey;">All documents are available in <ahref="https://github.com/iredmail/docs/">GitHub 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://github.com/iredmail/docs/archive/master.zip">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>