IRedMail/FAQ/Upgrade.iRedAPD
From iRedMail
(Difference between revisions)
| Line 1: | Line 1: | ||
---- | ---- | ||
| - | This tutorial describes how to upgrade iRedAPD to the latest stable release. It's applicable on all Linux/BSD distributions supported by iRedMail. | + | This tutorial describes how to upgrade iRedAPD to the latest stable release, iRedAPD-1.4.0. It's applicable on all Linux/BSD distributions supported by iRedMail. |
| + | |||
| + | Important notes: | ||
| + | * Since iRedAPD-1.4.0, we use Python source file as config file, not '.ini' format anymore. | ||
| + | * We don't need second instance, '''iredapd-rr''', anymore. | ||
---- | ---- | ||
| - | * Download the latest stable release here: http://iredmail.org/yum/misc/ For example, iRedAPD-1. | + | * Download the latest stable release here: http://iredmail.org/yum/misc/ For example, iRedAPD-1.4.0.tar.bz2. |
| - | * Upload it to your iRedMail server. Assume it's /root/iRedAPD-1. | + | * Upload it to your iRedMail server. Assume it's '''/root/iRedAPD-1.4.0.tar.bz2''' on the server. |
* Extract downloaded package and move to /opt/. | * Extract downloaded package and move to /opt/. | ||
{{cmd|<pre> | {{cmd|<pre> | ||
| - | # tar xjf /root/iRedAPD-1. | + | # tar xjf /root/iRedAPD-1.4.0.tar.bz2 -C /opt/ |
</pre>}} | </pre>}} | ||
| - | You get a new directory: /opt/iRedAPD-1. | + | You get a new directory: /opt/iRedAPD-1.4.0/. |
* Remove symbol link of old release: | * Remove symbol link of old release: | ||
{{cmd|<pre> | {{cmd|<pre> | ||
| Line 19: | Line 23: | ||
{{cmd|<pre> | {{cmd|<pre> | ||
# cd /opt/ | # cd /opt/ | ||
| - | # ln -s iRedAPD-1. | + | # ln -s iRedAPD-1.4.0 iredapd |
</pre>}} | </pre>}} | ||
| Line 28: | Line 32: | ||
</pre>}} | </pre>}} | ||
| - | * Copy config file from | + | * Copy config file from sample file, and set correct file owner and permission. |
{{cmd|<pre> | {{cmd|<pre> | ||
| - | # | + | # cd /opt/iredapd/ |
| - | # chown -R iredapd:iredapd | + | # cp settings.py.sample settings.py |
| - | # chmod -R 0600 | + | # chown -R iredapd:iredapd settings.py |
| + | # chmod -R 0600 settings.py | ||
</pre>}} | </pre>}} | ||
| + | WARNING: Config file '''/opt/iredapd/settings.py''' contains sensitive infomation (username, password), please don't make it world-readable. Permission 0600 is the best. | ||
| - | + | * Please open /opt/iredapd/settings.py, and sync settings with old iRedAPD config file '''/opt/iRedAPD-[OLD-VERSION]/etc/iredapd.ini'''. | |
| - | * | + | |
| - | * Please | + | * After sync settings, please copy new RC script for your server. We have scripts for different Please copy the proper one for your server. For example: |
| + | ** iredapd.debian: For Debian and Ubuntu. | ||
| + | ** iredapd.freebsd: For FreeBSD. Please copy to /usr/local/etc/rc.d/. | ||
| + | ** iredapd.gentoo: For Gentoo Linux. | ||
| + | ** iredapd.openbsd: For OpenBSD. | ||
| + | ** iredapd.opensuse: For openSUSE. | ||
| + | ** iredapd.rhel: For Red Hat, CentOS, Scientific Linux. | ||
| + | {{cmd|<pre> | ||
| + | # cp /opt/iredapd/rc_scripts/iredapd.rhel /etc/init.d/iredapd | ||
| + | </pre>}} | ||
* Restart iRedAPD service: | * Restart iRedAPD service: | ||
| Line 57: | Line 72: | ||
</pre>}} | </pre>}} | ||
| - | + | If you have '''iredapd-rr''' service enabled, please stop it and list enabled plugins in '''/opt/iredapd/settings.py''', parameter '''plugins = '''. | |
[[Category: FAQ]] | [[Category: FAQ]] | ||
[[Category: iRedMail/FAQ]] | [[Category: iRedMail/FAQ]] | ||
Revision as of 23:50, 12 March 2013
This tutorial describes how to upgrade iRedAPD to the latest stable release, iRedAPD-1.4.0. It's applicable on all Linux/BSD distributions supported by iRedMail.
Important notes:
- Since iRedAPD-1.4.0, we use Python source file as config file, not '.ini' format anymore.
- We don't need second instance, iredapd-rr, anymore.
- Download the latest stable release here: http://iredmail.org/yum/misc/ For example, iRedAPD-1.4.0.tar.bz2.
- Upload it to your iRedMail server. Assume it's /root/iRedAPD-1.4.0.tar.bz2 on the server.
- Extract downloaded package and move to /opt/.
| Terminal: |
# tar xjf /root/iRedAPD-1.4.0.tar.bz2 -C /opt/ |
You get a new directory: /opt/iRedAPD-1.4.0/.
- Remove symbol link of old release:
| Terminal: |
# rm -i /opt/iredapd # <- Don't not end with '/'. |
- Create symbol link to the latest release:
| Terminal: |
# cd /opt/ # ln -s iRedAPD-1.4.0 iredapd |
- Set correct owner and permission:
| Terminal: |
# chown -R iredapd:iredapd /opt/iredapd # chmod -R 0700 /opt/iredapd |
- Copy config file from sample file, and set correct file owner and permission.
| Terminal: |
# cd /opt/iredapd/ # cp settings.py.sample settings.py # chown -R iredapd:iredapd settings.py # chmod -R 0600 settings.py |
WARNING: Config file /opt/iredapd/settings.py contains sensitive infomation (username, password), please don't make it world-readable. Permission 0600 is the best.
- Please open /opt/iredapd/settings.py, and sync settings with old iRedAPD config file /opt/iRedAPD-[OLD-VERSION]/etc/iredapd.ini.
- After sync settings, please copy new RC script for your server. We have scripts for different Please copy the proper one for your server. For example:
- iredapd.debian: For Debian and Ubuntu.
- iredapd.freebsd: For FreeBSD. Please copy to /usr/local/etc/rc.d/.
- iredapd.gentoo: For Gentoo Linux.
- iredapd.openbsd: For OpenBSD.
- iredapd.opensuse: For openSUSE.
- iredapd.rhel: For Red Hat, CentOS, Scientific Linux.
| Terminal: |
# cp /opt/iredapd/rc_scripts/iredapd.rhel /etc/init.d/iredapd |
- Restart iRedAPD service:
| Terminal: |
# # ---- On Linux ---- # # /etc/init.d/iredapd restart # # ---- On FreeBSD ---- # # /usr/local/etc/rc.d/iredapd restart # # ---- On OpenBSD ---- # # /etc/rc.d/iredapd restart |
If you have iredapd-rr service enabled, please stop it and list enabled plugins in /opt/iredapd/settings.py, parameter plugins = .
