From iRedMail
Revision as of 22:14, 5 May 2014 by ZhangHuangbin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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

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

  • Set correct owner and permission:
# chown -R iredapd:iredapd /opt/iRedAPD-1.4.3
# chmod -R 0700 /opt/iRedAPD-1.4.3
  • Copy config file from iRedAPD-1.4.1 release. WARNING: You cannot use config file from iRedAPD-1.3.8 or earlier versions directly, they have different syntax.
# cd /opt/iRedAPD-1.4.3/
# cp -p /opt/iRedAPD-1.4.1/settings.py /opt/iRedAPD-1.4.3/
# 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:
# rm -i /opt/iredapd               # <- Don't not end with '/'.
  • Create symbol link to the latest release:
# cd /opt/
# ln -s iRedAPD-1.4.3 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.
# cp /opt/iredapd/rc_scripts/iredapd.rhel /etc/init.d/iredapd
# chmod +x /etc/init.d/iredapd
  • Restart iRedAPD service:
# ---- 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