From 8cf07104a59c502ab6344f6693e2ace4b3a5f679 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Mon, 6 Sep 2021 08:55:40 +0800 Subject: [PATCH] Sync upgrade.iredmail.1.4.0-1.4.1.html. --- .../upgrade/0-upgrade.iredmail.1.4.0-1.4.1.md | 46 ++++++++++++++++++- html/upgrade.iredmail.1.4.0-1.4.1.html | 42 +++++++++++++++-- 2 files changed, 82 insertions(+), 6 deletions(-) diff --git a/en_US/upgrade/0-upgrade.iredmail.1.4.0-1.4.1.md b/en_US/upgrade/0-upgrade.iredmail.1.4.0-1.4.1.md index 612a16c9..0c02ba4a 100644 --- a/en_US/upgrade/0-upgrade.iredmail.1.4.0-1.4.1.md +++ b/en_US/upgrade/0-upgrade.iredmail.1.4.0-1.4.1.md @@ -130,7 +130,7 @@ bind_pw = 'passwd' ## For MySQL and MariaDB backends -### Add new SQL columns in `vmail.mailbox` table +### Add new SQL columns in `vmail.mailbox` table for per-user SOGo webmail / calendar / activesync service control iRedMail-1.4.1 introduces 3 new columns used to enable or disable per-user SOGo webmail, calendar and activesync services: @@ -148,9 +148,20 @@ mysql vmail < /tmp/iredmail.mysql rm -f /tmp/iredmail.mysql ``` +## SOGo: Re-create SQL VIEW + +Download plain SQL file used to update SQL table, then import it as +MySQL root user (Please run commands below as `root` user): + +``` +wget -O /tmp/sogo.mysql https://github.com/iredmail/iRedMail/raw/1.4.1/update/1.4.1/sogo.mysql +mysql sogo < /tmp/sogo.mysql +rm -f /tmp/sogo.mysql +``` + ## For PostgreSQL backend -### Add new SQL columns in `vmail.mailbox` table +### Add new SQL columns in `vmail.mailbox` table for per-user SOGo webmail / calendar / activesync service control iRedMail-1.4.1 introduces 3 new columns used to enable or disable per-user SOGo webmail, calendar and activesync services: @@ -181,3 +192,34 @@ psql -d vmail < /tmp/iredmail.pgsql ``` rm -f /tmp/iredmail.pgsql ``` + +## SOGo: Re-create SQL VIEW + +Download plain SQL file used to update SQL table: + +``` +wget -O /tmp/sogo.pgsql https://github.com/iredmail/iRedMail/raw/1.4.1/update/1.4.1/sogo.pgsql +chmod +r /tmp/sogo.pgsql +``` + +Please open file `/tmp/sogo.pgsql`, replace string `VMAIL_DB_BIND_PASSWD` by +the real password of SQL user `vmail`. You can find the password in any file +under `/etc/postfix/pgsql/`. + +After updated `/tmp/sogo.pgsql`, please connect to PostgreSQL server as +`postgres` user and import the SQL file: +* on Linux, it's `postgres` user +* on FreeBSD, it's `pgsql` user +* on OpenBSD, it's `_postgresql` user + +``` +su - postgres +psql -d sogo < /tmp/sogo.pgsql +``` + +* Remove downloaded file: + +``` +rm -f /tmp/sogo.pgsql +``` + diff --git a/html/upgrade.iredmail.1.4.0-1.4.1.html b/html/upgrade.iredmail.1.4.0-1.4.1.html index 8894b544..2704bb71 100644 --- a/html/upgrade.iredmail.1.4.0-1.4.1.html +++ b/html/upgrade.iredmail.1.4.0-1.4.1.html @@ -33,13 +33,15 @@
  • For MySQL and MariaDB backends
  • +
  • SOGo: Re-create SQL VIEW
  • For PostgreSQL backend
  • +
  • SOGo: Re-create SQL VIEW
  • @@ -162,7 +164,7 @@ bind_pw = 'passwd'

    For MySQL and MariaDB backends

    -

    Add new SQL columns in vmail.mailbox table

    +

    Add new SQL columns in vmail.mailbox table for per-user SOGo webmail / calendar / activesync service control

    iRedMail-1.4.1 introduces 3 new columns used to enable or disable per-user SOGo webmail, calendar and activesync services: