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

75 lines
3.7 KiB
HTML

<!DOCTYPE html>
<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 rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<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>
<blockquote>
<p>We provide remote upgrade service, check <a href="../support.html">the price</a> and <a href="../contact.html">contact us</a>.</p>
</blockquote>
<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><div class="footer">
<p style="text-align: center; color: grey;">All documents are available in <a href="https://bitbucket.org/zhb/iredmail-docs/src">BitBucket repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="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 <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
</div>
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3293801-21', 'auto');
ga('send', 'pageview');
</script>
</body></html>