Upgrade iRedMail from 1.5.2 to 1.6.0

Attention

Check out the lightweight on-premises email archiving software developed by iRedMail team: Spider Email Archiver.

Paid Remote Upgrade Support

We offer remote upgrade support if you don't want to get your hands dirty, check the details and contact us.

ChangeLog

General (All backends should apply these changes)

Update /etc/iredmail-release with new iRedMail version number

iRedMail stores the release version in /etc/iredmail-release after installation, it's recommended to update this file after you upgraded iRedMail, so that you can know which version of iRedMail you're running. For example:

1.6.0

Upgrade mlmmjadmin to the latest stable release (3.1.5)

Please follow below tutorial to upgrade mlmmjadmin to the latest stable release: Upgrade mlmmjadmin to the latest stable release

Upgrade iRedAdmin (open source edition) to the latest stable release (1.7)

Please follow below tutorial to upgrade iRedAdmin to the latest stable release: Upgrade iRedAdmin to the latest stable release.

Upgrade netdata to the latest stable release (1.34.1)

If you have netdata installed, you can upgrade it by following this tutorial: Upgrade netdata.

For PostgreSQL backend

Move SQL view sogo.users to vmail database

In iRedMail-1.5.2 and early releases, we create SQL view users in sogo database, it invokes PostgreSQL extension dblink to query vmail database, this causes end users can not change passwords in SOGo webmail.

With steps below, we create SQL view sogo_users in vmail database, so that end users can change their own passwords.

Download plain SQL file used to update SQL table:

wget -O /tmp/sogo_view.pgsql https://github.com/iredmail/iRedMail/raw/1.6.0/update/1.6.0/sogo_view.pgsql
chmod +r /tmp/sogo_view.pgsql
su - postgres
psql -d vmail < /tmp/sogo_view.pgsql
rm -f /tmp/sogo_view.pgsql

Now we need to update SOGo config file to use this new SQL view.

    SOGoUserSources = (
        {
            type = sql;
            id = users;
            viewURL = "postgresql://...@127.0.0.1:5432/sogo/users";
            canAuthenticate = YES;
            ...
        },
    );
            viewURL = "postgresql://...@127.0.0.1:5432/vmail/sogo_users";
service memcached restart
service sogo restart
su - postgres
psql -d sogo -c "DROP VIEW users"