This commit is contained in:
Zhang Huangbin 2016-02-04 17:58:33 +09:00
parent a8bbda6c34
commit 4d8b96218c
4 changed files with 139 additions and 53 deletions

View File

@ -123,25 +123,65 @@ smtpd_end_of_data_restrictions =
...
```
* Restart Postfix service:
### Enable iRedAPD in Postfix
* On Linux/FreeBSD: ```# service postfix restart```
* On OpenBSD: ```# /etc/rc.d/postfix restart```
Make sure iRedAPD are enabled in __BOTH__ `smtpd_recipient_restrictions`
and `smtpd_end_of_data_restrictions` like below:
* Stop Cluebringer service, and optionally, remove cluebringer packages.
```
smtpd_recipient_restrictions =
...
check_policy_service inet:127.0.0.1:7777
permit_mynetworks
...
* On RHEL/CentOS:
```# service cbpolicyd stop && yum remove cluebringer```
* On Debian/Ubuntu:
```# service postfix-cluebringer stop && apt-get remove --purge postfix-cluebringer```
* On FreeBSD:
```# service policyd2 stop && cd /usr/ports/mail/policyd2/ && make deinstall```
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777
```
### Restart Postfix service
Reloading or restarting Postfix service is required after changed `main.cf`.
* On Linux/FreeBSD:
```
# service postfix restart
```
* On OpenBSD:
```
# /etc/rc.d/postfix restart
```
### Stop Cluebringer service, and remove Cluebringer packages
We don't need Cluebringer anymore, so it's ok to stop cluebringer service and
remove the packages:
* On RHEL/CentOS:
```
# service cbpolicyd stop && yum remove cluebringer
```
* On Debian/Ubuntu:
```
# service postfix-cluebringer stop && apt-get remove --purge postfix-cluebringer
```
* On FreeBSD:
```
# service policyd2 stop && cd /usr/ports/mail/policyd2/ && make deinstall
```
* Edit root user's cron job, remove the one used to clean up Cluebringer SQL
database:
* Run command to edit root user's cron job: ```# crontab -e -u root```
* Find cron job like below, remove it or comment out it:
1. Run command to edit root user's cron job: ```# crontab -e -u root```
1. Find cron job like below, remove it or comment out it:
```
3 3 * * * /usr/sbin/cbpadmin --config=/etc/policyd/cluebringer.conf --cleanup >/dev/null
@ -161,10 +201,10 @@ or uwsgi (if you're running Nginx) service.
> with `policyd_` in iRedAdmin-Pro config file, for example:
```
policyd_enabled
policyd_db_host
policyd_db_port
policyd_db_name
policyd_db_user
policyd_db_password
policyd_enabled =
policyd_db_host =
policyd_db_port =
policyd_db_name =
policyd_db_user =
policyd_db_password =
```

View File

@ -1,12 +1,13 @@
# Upgrade iRedAPD
> Release Notes are available here: [iRedAPD Release Notes](./iredapd.releases.html).
> If you're trying to upgrade iRedAPD-1.3.x or earlier releases to the latest
> iRedAPD, please check this tutorial instead:
> [Upgrade iRedAPD from v1.3.x or earlier versions to latest release](./upgrade.old.iredapd.html).
> We offer remote upgrade service, check [the price](../support.html) and [contact us](../contact.html).
> * Release Notes are available here: [iRedAPD Release Notes](./iredapd.releases.html).
> * If you're trying to upgrade iRedAPD-1.3.x or earlier releases to the latest
> iRedAPD, please check this tutorial instead:
> [Upgrade iRedAPD from v1.3.x or earlier versions to latest release](./upgrade.old.iredapd.html).
> * iRedMail and iRedAdmin-Pro completely drop support for Cluebringer, if
> you're still running Cluebringer, please migrate to iRedAPD by following
> [our tutorial](./cluebringer.to.iredapd.html).
> * We offer remote upgrade service, check [the price](../support.html) and [contact us](../contact.html).
This tutorial describes how to upgrade iRedAPD from `1.4.0` or later releases
to the latest stable release. It's applicable on all Linux/BSD distributions
@ -49,3 +50,7 @@ sql> INSERT INTO greylisting (account, priority, sender, sender_priority, active
* Plugin `amavisd_wblist` is required if you manage white/blacklists with
iRedAdmin-Pro.
## See Also
* [Migrate Cluebringer to iRedAPD](./cluebringer.to.iredapd.html)

View File

@ -23,6 +23,9 @@
<li><a href="#after-migration">After migration</a><ul>
<li><a href="#enable-required-plugins-remove-old-plugins">Enable required plugins, remove old plugins</a></li>
<li><a href="#disable-cluebringer-in-postfix">Disable Cluebringer in Postfix</a></li>
<li><a href="#enable-iredapd-in-postfix">Enable iRedAPD in Postfix</a></li>
<li><a href="#restart-postfix-service">Restart Postfix service</a></li>
<li><a href="#stop-cluebringer-service-and-remove-cluebringer-packages">Stop Cluebringer service, and remove Cluebringer packages</a></li>
<li><a href="#disable-cluebringer-in-iredadmin-pro">Disable Cluebringer in iRedAdmin-Pro</a></li>
</ul>
</li>
@ -138,32 +141,61 @@ smtpd_end_of_data_restrictions =
...
</code></pre>
<h3 id="enable-iredapd-in-postfix">Enable iRedAPD in Postfix</h3>
<p>Make sure iRedAPD are enabled in <strong>BOTH</strong> <code>smtpd_recipient_restrictions</code>
and <code>smtpd_end_of_data_restrictions</code> like below:</p>
<pre><code>smtpd_recipient_restrictions =
...
check_policy_service inet:127.0.0.1:7777
permit_mynetworks
...
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777
</code></pre>
<h3 id="restart-postfix-service">Restart Postfix service</h3>
<p>Reloading or restarting Postfix service is required after changed <code>main.cf</code>.</p>
<ul>
<li>
<p>Restart Postfix service:</p>
<ul>
<li>On Linux/FreeBSD: <code># service postfix restart</code></li>
<li>On OpenBSD: <code># /etc/rc.d/postfix restart</code></li>
<li>On Linux/FreeBSD:</li>
</ul>
</li>
<li>
<p>Stop Cluebringer service, and optionally, remove cluebringer packages.</p>
<pre><code># service postfix restart
</code></pre>
<ul>
<li>On RHEL/CentOS:
<code># service cbpolicyd stop &amp;&amp; yum remove cluebringer</code></li>
<li>On Debian/Ubuntu:
<code># service postfix-cluebringer stop &amp;&amp; apt-get remove --purge postfix-cluebringer</code></li>
<li>On FreeBSD:
<code># service policyd2 stop &amp;&amp; cd /usr/ports/mail/policyd2/ &amp;&amp; make deinstall</code></li>
<li>On OpenBSD:</li>
</ul>
</li>
<pre><code># /etc/rc.d/postfix restart
</code></pre>
<h3 id="stop-cluebringer-service-and-remove-cluebringer-packages">Stop Cluebringer service, and remove Cluebringer packages</h3>
<p>We don't need Cluebringer anymore, so it's ok to stop cluebringer service and
remove the packages:</p>
<ul>
<li>On RHEL/CentOS:</li>
</ul>
<pre><code># service cbpolicyd stop &amp;&amp; yum remove cluebringer
</code></pre>
<ul>
<li>On Debian/Ubuntu:</li>
</ul>
<pre><code># service postfix-cluebringer stop &amp;&amp; apt-get remove --purge postfix-cluebringer
</code></pre>
<ul>
<li>On FreeBSD:</li>
</ul>
<pre><code># service policyd2 stop &amp;&amp; cd /usr/ports/mail/policyd2/ &amp;&amp; make deinstall
</code></pre>
<ul>
<li>
<p>Edit root user's cron job, remove the one used to clean up Cluebringer SQL
database:</p>
<ul>
<ol>
<li>Run command to edit root user's cron job: <code># crontab -e -u root</code></li>
<li>Find cron job like below, remove it or comment out it:</li>
</ul>
</ol>
</li>
</ul>
<pre><code>3 3 * * * /usr/sbin/cbpadmin --config=/etc/policyd/cluebringer.conf --cleanup &gt;/dev/null
@ -182,12 +214,12 @@ iRedAdmin-Pro-LDAP-2.4.0, or iRedAdmin-Pro-SQL-2.2.0, both released on Dec 14,
2015), you can either <strong>COMMENT OUT</strong> or <strong>REMOVE</strong> all parameters which start
with <code>policyd_</code> in iRedAdmin-Pro config file, for example:</p>
</blockquote>
<pre><code>policyd_enabled
policyd_db_host
policyd_db_port
policyd_db_name
policyd_db_user
policyd_db_password
<pre><code>policyd_enabled =
policyd_db_host =
policyd_db_port =
policyd_db_name =
policyd_db_user =
policyd_db_password =
</code></pre><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. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.<script>
(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),

View File

@ -12,11 +12,16 @@
// <a href="./index.html">Document Index</a>
</div><h1 id="upgrade-iredapd">Upgrade iRedAPD</h1>
<blockquote>
<p>Release Notes are available here: <a href="./iredapd.releases.html">iRedAPD Release Notes</a>.</p>
<p>If you're trying to upgrade iRedAPD-1.3.x or earlier releases to the latest
iRedAPD, please check this tutorial instead:
<a href="./upgrade.old.iredapd.html">Upgrade iRedAPD from v1.3.x or earlier versions to latest release</a>.</p>
<p>We offer remote upgrade service, check <a href="../support.html">the price</a> and <a href="../contact.html">contact us</a>.</p>
<ul>
<li>Release Notes are available here: <a href="./iredapd.releases.html">iRedAPD Release Notes</a>.</li>
<li>If you're trying to upgrade iRedAPD-1.3.x or earlier releases to the latest
iRedAPD, please check this tutorial instead:
<a href="./upgrade.old.iredapd.html">Upgrade iRedAPD from v1.3.x or earlier versions to latest release</a>.</li>
<li>iRedMail and iRedAdmin-Pro completely drop support for Cluebringer, if
you're still running Cluebringer, please migrate to iRedAPD by following
<a href="./cluebringer.to.iredapd.html">our tutorial</a>.</li>
<li>We offer remote upgrade service, check <a href="../support.html">the price</a> and <a href="../contact.html">contact us</a>.</li>
</ul>
</blockquote>
<p>This tutorial describes how to upgrade iRedAPD from <code>1.4.0</code> or later releases
to the latest stable release. It's applicable on all Linux/BSD distributions
@ -60,6 +65,10 @@ sql&gt; INSERT INTO greylisting (account, priority, sender, sender_priority, act
<p>Plugin <code>amavisd_wblist</code> is required if you manage white/blacklists with
iRedAdmin-Pro.</p>
</li>
</ul>
<h2 id="see-also">See Also</h2>
<ul>
<li><a href="./cluebringer.to.iredapd.html">Migrate Cluebringer to iRedAPD</a></li>
</ul><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. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.<script>
(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),