Upgrade iRedAPD from v1.3.x or earlier versions to latest release

Attention

This tutorial describes how to upgrade iRedAPD from v1.3.x or earlier versions to the later releases, it's applicable on all Linux/BSD distributions supported by iRedMail.

Important Notes

Steps to upgrade iRedAPD-1.3.x or earlier versions:

# tar xjf /root/iRedAPD-1.4.4.tar.bz2 -C /opt/
# cd /opt
# chown -R iredapd:iredapd iRedAPD-1.4.4
# chmod -R 0700 iRedAPD-1.4.4
# cd /opt/iRedAPD-1.4.4/
# cp settings.py.sample settings.py
# chown -R iredapd:iredapd settings.py
# chmod -R 0400 settings.py

WARNING: Config file /opt/iredapd/settings.py contains sensitive infomation (username, password), please don't make it world-readable. Permission 0400 is the best.

# rm -i /opt/iredapd               # <- Don't not end with '/'.
# cp /opt/iredapd/rc_scripts/iredapd.rhel /etc/init.d/iredapd
# chmod +x /etc/init.d/iredapd
# cd /opt/
# ln -s iRedAPD-1.4.4 iredapd
#
# ---- On Linux ----
#
# /etc/init.d/iredapd restart

#
# ---- On FreeBSD ----
#
# /usr/local/etc/rc.d/iredapd restart

#
# ---- On OpenBSD ----
#
# /etc/rc.d/iredapd restart
# /etc/init.d/iredapd-rr stop
# rm /etc/init.d/iredapd-rr

Check whether you have check_policy_service inet:127.0.0.1:__7778__ in Postfix config file /etc/postfix/main.cf (Linux/OpenBSD) or /usr/local/etc/postfix/main.cf (FreeBSD), if you have it, please remove it, then restart Postfix service.