Upgrade/iRedAPD/1.4.0-1.4.1

From iRedMail
Jump to: navigation, search


Steps:

  • Download the latest stable release here: http://iredmail.org/yum/misc/ For example, iRedAPD-1.4.1.tar.bz2.
  • Upload it to your iRedMail server. Assume it's /root/iRedAPD-1.4.1.tar.bz2 on the server.
  • Extract downloaded package and move to /opt/.
Terminal:
# tar xjf /root/iRedAPD-1.4.1.tar.bz2 -C /opt/

You get a new directory: /opt/iRedAPD-1.4.1/.

  • Set correct owner and permission:
Terminal:
# chown -R iredapd:iredapd /opt/iRedAPD-1.4.1
# chmod -R 0700 /opt/iRedAPD-1.4.1
  • Copy config file from iRedAPD-1.4.0 release. WARNING: You cannot use config file from iRedAPD-1.3.8 or earlier versions directly, they have different syntax.
Terminal:
# cd /opt/iRedAPD-1.4.1/
# cp -p /opt/iRedAPD-1.4.0/settings.py /opt/iRedAPD-1.4.1/
# 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.

  • 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.1 iredapd
  • Copy new RC script for your server. We have scripts for different Linux/BSD distributions. Please copy the proper one for your server. For example:
    • /opt/iredapd/rc_scripts/iredapd.debian: For Debian and Ubuntu.
    • /opt/iredapd/rc_scripts/iredapd.freebsd: For FreeBSD. Please copy to /usr/local/etc/rc.d/.
    • /opt/iredapd/rc_scripts/iredapd.gentoo: For Gentoo Linux.
    • /opt/iredapd/rc_scripts/iredapd.openbsd: For OpenBSD. Please copy to /etc/rc.d/.
    • /opt/iredapd/rc_scripts/iredapd.opensuse: For openSUSE.
    • /opt/iredapd/rc_scripts/iredapd.rhel: For Red Hat, CentOS, Scientific Linux.
Terminal:
# cp /opt/iredapd/rc_scripts/iredapd.rhel /etc/init.d/iredapd
# chmod +x /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

That's all.

Personal tools