From 35f039a119bd0588ad025efec591f2d1a90551c7 Mon Sep 17 00:00:00 2001 From: DerLinkman Date: Mon, 26 Feb 2024 16:55:13 +0100 Subject: [PATCH 1/2] sogo: update to 5.10.0 --- data/Dockerfiles/sogo/bootstrap-sogo.sh | 2 ++ data/web/inc/init_db.inc.php | 14 +++++++++++++- docker-compose.yml | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/data/Dockerfiles/sogo/bootstrap-sogo.sh b/data/Dockerfiles/sogo/bootstrap-sogo.sh index aa15525c..bae06054 100755 --- a/data/Dockerfiles/sogo/bootstrap-sogo.sh +++ b/data/Dockerfiles/sogo/bootstrap-sogo.sh @@ -150,6 +150,8 @@ cat < /var/lib/sogo/GNUstep/Defaults/sogod.plist YES SOGoEncryptionKey ${RAND_PASS} + OCSAdminURL + mysql://${DBUSER}:${DBPASS}@%2Fvar%2Frun%2Fmysqld%2Fmysqld.sock/${DBNAME}/sogo_admin OCSCacheFolderURL mysql://${DBUSER}:${DBPASS}@%2Fvar%2Frun%2Fmysqld%2Fmysqld.sock/${DBNAME}/sogo_cache_folder OCSEMailAlarmsFolderURL diff --git a/data/web/inc/init_db.inc.php b/data/web/inc/init_db.inc.php index 445af8a9..f62858b3 100644 --- a/data/web/inc/init_db.inc.php +++ b/data/web/inc/init_db.inc.php @@ -3,7 +3,7 @@ function init_db_schema() { try { global $pdo; - $db_version = "09022024_1433"; + $db_version = "26022024_1433"; $stmt = $pdo->query("SHOW TABLES LIKE 'versions'"); $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC)); @@ -979,6 +979,18 @@ function init_db_schema() { ), "attr" => "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC" ), + "sogo_admin" => array( + "cols" => array( + "c_key" => "VARCHAR(255) NOT NULL DEFAULT ''", + "c_content" => "mediumtext NOT NULL", + ), + "keys" => array( + "primary" => array( + "" => array("c_key") + ) + ), + "attr" => "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC" + ), "pushover" => array( "cols" => array( "username" => "VARCHAR(255) NOT NULL", diff --git a/docker-compose.yml b/docker-compose.yml index ea56b429..3efd6a42 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -175,7 +175,7 @@ services: - phpfpm sogo-mailcow: - image: mailcow/sogo:1.122.1 + image: mailcow/sogo:1.123 environment: - DBNAME=${DBNAME} - DBUSER=${DBUSER} From d7430bf516ecd756a4384eca3d7a7a442b94aa93 Mon Sep 17 00:00:00 2001 From: DerLinkman Date: Mon, 26 Feb 2024 17:17:34 +0100 Subject: [PATCH 2/2] sogo: add new options to sogo.conf for update 5.10.0 --- data/conf/sogo/sogo.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/conf/sogo/sogo.conf b/data/conf/sogo/sogo.conf index 8d4dd93d..d398eb05 100644 --- a/data/conf/sogo/sogo.conf +++ b/data/conf/sogo/sogo.conf @@ -16,6 +16,9 @@ SOGoFoldersSendEMailNotifications = YES; SOGoForwardEnabled = YES; + // Option to set Users as admin to globally manage calendar permissions etc. Disabled by default + // SOGoSuperUsernames = ("moo@example.com"); + SOGoUIAdditionalJSFiles = ( js/theme.js, js/custom-sogo.js @@ -38,6 +41,7 @@ SOGoLanguage = English; SOGoMailAuxiliaryUserAccountsEnabled = YES; + // SOGoCreateIdentitiesDisabled = NO; SOGoMailCustomFromEnabled = YES; SOGoMailingMechanism = smtp; SOGoSMTPAuthenticationType = plain;