Upgrade SOGo from v4 to v5

Attention

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

SOGo v5 was released on Aug 10, 2020 by the SOGo team (https://sogo.nu), and nightly build packages for v4 and v4 were removed permanently. All users must switch to v5 as soon as possible.

Upgrade SOGo On RHEL/CentOS

mkdir -p /root/sogo-backup/{sogo,sysconfig}
cp /etc/sogo/* /root/sogo-backup/sogo/
cp /etc/sysconfig/sogo /root/sogo-backup/sysconfig/
bash /var/vmail/backup/backup_*sql.sh
bash /var/vmail/backup/backup_sogo.sh
baseurl=https://packages.inverse.ca/SOGo/nightly/5/rhel/$releasever/$basearch/
exclude=gnustep*
yum clean all
yum update 'sogo*' '*sope*'
    SOGoSMTPServer = "smtp://127.0.0.1:587/?tls=YES&tlsVerifyMode=allowInsecureLocalhost";
    SOGoMailingMechanism = smtp;
    SOGoSMTPAuthenticationType = PLAIN;

    SOGoSieveServer = "sieve://127.0.0.1:4190/?tls=YES&tlsVerifyMode=allowInsecureLocalhost";
service memcached restart
service sogod restart

Upgrade SOGo On Debian/Ubuntu

mkdir -p /root/sogo-backup/{sogo,default}
cp /etc/sogo/* /root/sogo-backup/sogo/
cp /etc/default/sogo /root/sogo-backup/default/
bash /var/vmail/backup/backup_*sql.sh
bash /var/vmail/backup/backup_sogo.sh
# Debian
https://packages.inverse.ca/SOGo/nightly/5/debian ...

# Ubuntu
https://packages.inverse.ca/SOGo/nightly/5/ubuntu ...
apt-get update
apt-get install --only-upgrade 'sogo*' '*sope*'
    SOGoSMTPServer = "smtp://127.0.0.1:587/?tls=YES&tlsVerifyMode=allowInsecureLocalhost";
    SOGoMailingMechanism = smtp;
    SOGoSMTPAuthenticationType = PLAIN;

    SOGoSieveServer = "sieve://127.0.0.1:4190/?tls=YES&tlsVerifyMode=allowInsecureLocalhost";
service memcached restart
service sogo restart

Upgrade SOGo On FreeBSD

FreeBSD ports tree still ships SOGo-4, please wait for v5.

Upgrade SOGo On OpenBSD

OpenBSD 6.7 still ships SOGo-4, please wait for v5.

Troubleshooting

If SOGo doesn't work as expected, please check its log file /var/log/sogo/sogo.log. If you don't understand what the error message means, please extract related error message and post to our online support forum: https://forum.iredmail.org/.