78 lines
3.8 KiB
HTML
78 lines
3.8 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="https://www.iredmail.org" target="_blank">
|
|
<img alt="iRedMail web site"
|
|
src="./images/logo-iredmail.png"
|
|
style="vertical-align: middle; height: 30px;"
|
|
/>
|
|
<span>iRedMail</span>
|
|
</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>
|
|
<div class="admonition note">
|
|
<p class="admonition-title">Paid Remote Upgrade Support</p>
|
|
<p>We offer remote upgrade support if you don't want to get your hands dirty,
|
|
check <a href="https://www.iredmail.org/support.html">the details</a> and
|
|
<a href="https://www.iredmail.org/contact.html">contact us</a>.</p>
|
|
</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 = \[<HOST>\]: SASL PLAIN authentication failed
|
|
|
|
# Modified
|
|
failregex = \[<HOST>\]: 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="https://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
|
|
</div>
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-3293801-21"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
|
|
gtag('config', 'UA-3293801-21');
|
|
</script>
|
|
</body></html> |