iredmail-doc/html/upgrade.iredmail.0.7.1-0.7....

66 lines
3.1 KiB
HTML
Raw Normal View History

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Upgrade iRedMail from 0.7.1 to 0.7.2</title>
<link href="./css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="./index.html">Document Index</a>
</div><h1 id="upgrade-iredmail-from-071-to-072">Upgrade iRedMail from 0.7.1 to 0.7.2</h1>
<div class="toc">
<ul>
<li><a href="#upgrade-iredmail-from-071-to-072">Upgrade iRedMail from 0.7.1 to 0.7.2</a><ul>
<li><a href="#general-all-backends-should-apply-these-upgrade-steps">General (All backends should apply these upgrade steps)</a><ul>
<li><a href="#update-fail2ban-filter">Update Fail2ban filter</a></li>
</ul>
</li>
<li><a href="#mysql-backend-special">MySQL backend special</a><ul>
<li><a href="#add-alias-domain-support-in-postfix">Add alias domain support in postfix</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<h2 id="general-all-backends-should-apply-these-upgrade-steps">General (All backends should apply these upgrade steps)</h2>
<h3 id="update-fail2ban-filter">Update Fail2ban filter</h3>
<p>Note: This step is applicable to Linux. We don't have Fail2ban running on FreeBSD.</p>
<ul>
<li>Edit <code>/etc/fail2ban/filter.d/postfix.iredmail.conf</code>, change line <code>failregex =</code>:</li>
</ul>
<pre><code># Part of file: /etc/fail2ban/filter.d/postfix.iredmail.conf
# Original line:
#failregex = \[&lt;HOST&gt;\]: SASL PLAIN authentication failed
# Modified
failregex = \[&lt;HOST&gt;\]: SASL (PLAIN|LOGIN) authentication failed
</code></pre>
<h2 id="mysql-backend-special">MySQL backend special</h2>
<h3 id="add-alias-domain-support-in-postfix">Add alias domain support in postfix</h3>
<p>Update MySQL query in postfix setting <code>virtual_mailbox_domains</code> to query alias
domains.</p>
<pre><code># Part of file: /etc/postfix/mysql/virtual_mailbox_domains.cf
# Original line:
#query = SELECT domain FROM domain WHERE domain='%s' AND backupmx=0 AND active=1
# Modified:
query = SELECT domain FROM domain WHERE domain='%s' AND backupmx=0 AND active=1 UNION SELECT alias_domain.alias_domain FROM alias_domain,domain WHERE alias_domain.alias_domain='%s' AND alias_domain.active=1 AND alias_domain.target_domain=domain.domain AND domain.active=1 AND domain.backupmx=0
</code></pre><p style="text-align: center; color: grey;">Document published under a <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">CC BY-ND 3.0</a> license. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.<!-- Google Analytics -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-3293801-14");
pageTracker._trackPageview();
} catch(err) {}
</script>
</body></html>