iRedAPD-4.0 and later releases require Python 3.5+, only listed distribution releases are qualified to upgrade:
If you're running an old Linux/BSD release which doesn't have Python 3.5+, please stay with iRedAPD-3.6, it's the last release supports Python 2. if you need to upgrade to iRedAPD-3.6, please follow this upgrade tutorial instead: Upgrade iRedAPD from v1.4.0 or later releases to v3.6.
This tutorial describes how to upgrade iRedAPD from
1.4.0 or later releases
to the latest stable release on listed distribution releases listed above.
Run commands below on your iRedMail server:
cd /root wget -O iRedAPD-5.0.2.tar.gz https://github.com/iredmail/iRedAPD/archive/5.0.2.tar.gz tar zxf iRedAPD-5.0.2.tar.gz cd iRedAPD-5.0.2/tools/ bash upgrade_iredapd.sh