// <ahref="./index.html">Document Index</a></div><h1id="upgrade-iredmail-from-121-to-13">Upgrade iRedMail from 1.2.1 to 1.3</h1>
<divclass="toc">
<ul>
<li><ahref="#upgrade-iredmail-from-121-to-13">Upgrade iRedMail from 1.2.1 to 1.3</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="#upgrade-iredapd-postfix-policy-server-to-the-latest-stable-release">Upgrade iRedAPD (Postfix policy server) to the latest stable release</a></li>
<li><ahref="#upgrade-mlmmjadmin-to-the-latest-stable-release">Upgrade mlmmjadmin to the latest stable release</a></li>
<li><ahref="#add-missing-index-for-sql-column-msgstime_iso-in-amavisd-database">Add missing index for SQL column msgs.time_iso in amavisd database</a></li>
<li><ahref="#add-missing-index-for-sql-column-msgstime_iso-in-amavisd-database_1">Add missing index for SQL column msgs.time_iso in amavisd database</a></li>
<h3id="add-missing-index-for-sql-column-msgstime_iso-in-amavisd-database">Add missing index for SQL column <code>msgs.time_iso</code> in <code>amavisd</code> database</h3>
<p>Please run SQL commands below as MySQL root user:</p>
<pre><code>USE amavisd;
CREATE INDEX msgs_idx_time_iso ON msgs (time_iso);
<p>Now open file <code>/etc/fail2ban/action.d/banned_db.conf</code>, find the <code>actionban =</code>
line like below:</p>
<pre><code>actionban = /usr/local/bin/fail2ban_banned_db ban <ip><port><protocol><name>
</code></pre>
<p>Replace it by:</p>
<pre><code>actionban = /usr/local/bin/fail2ban_banned_db ban <ip><port><protocol><name><ipjailfailures><ipjailmatches>
</code></pre>
<p>Download improved shell script and replace the existing one:</p>
<h3id="add-missing-index-for-sql-column-msgstime_iso-in-amavisd-database_1">Add missing index for SQL column <code>msgs.time_iso</code> in <code>amavisd</code> database</h3>
<p>Please run SQL commands below as MySQL root user:</p>
<pre><code>USE amavisd;
CREATE INDEX msgs_idx_time_iso ON msgs (time_iso);
<p>Now open file <code>/etc/fail2ban/action.d/banned_db.conf</code>, find the <code>actionban =</code>
line like below:</p>
<pre><code>actionban = /usr/local/bin/fail2ban_banned_db ban <ip><port><protocol><name>
</code></pre>
<p>Replace it by:</p>
<pre><code>actionban = /usr/local/bin/fail2ban_banned_db ban <ip><port><protocol><name><ipjailfailures><ipjailmatches>
</code></pre>
<p>Download improved shell script and replace the existing one:</p>
<li>Open file <code>/etc/fail2ban/action.d/banned_db.conf</code>, find the <code>actionban =</code>
line like below:</li>
</ul>
<pre><code>actionban = /usr/local/bin/fail2ban_banned_db ban <ip><port><protocol><name>
</code></pre>
<p>Replace it by:</p>
<pre><code>actionban = /usr/local/bin/fail2ban_banned_db ban <ip><port><protocol><name><ipjailfailures><ipjailmatches>
</code></pre>
<ul>
<li>Download improved shell script and replace the existing one:</li>
<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>
</div>
<!-- Global site tag (gtag.js) - Google Analytics -->