diff --git a/data/Dockerfiles/dovecot/docker-entrypoint.sh b/data/Dockerfiles/dovecot/docker-entrypoint.sh index aa1aa0ae..18746deb 100755 --- a/data/Dockerfiles/dovecot/docker-entrypoint.sh +++ b/data/Dockerfiles/dovecot/docker-entrypoint.sh @@ -307,29 +307,13 @@ namespace { } EOF -# Get SOGo IPv6 from Dig -SOGO_V6=$(dig +answer sogo AAAA +short) -if [ $SOGO_V6 ]; then -cat < /etc/dovecot/sogo_trusted_ip.conf -# Autogenerated by mailcow -remote ${IPV4_NETWORK}.248 { - disable_plaintext_auth = no -} - -remote ${SOGO_V6} { - disable_plaintext_auth = no -} -EOF - -else cat < /etc/dovecot/sogo_trusted_ip.conf # Autogenerated by mailcow remote ${IPV4_NETWORK}.248 { disable_plaintext_auth = no } EOF -fi # Create random master Password for SOGo SSO RAND_PASS=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1) diff --git a/data/Dockerfiles/sogo/bootstrap-sogo.sh b/data/Dockerfiles/sogo/bootstrap-sogo.sh index 04472dfd..aa15525c 100755 --- a/data/Dockerfiles/sogo/bootstrap-sogo.sh +++ b/data/Dockerfiles/sogo/bootstrap-sogo.sh @@ -142,6 +142,10 @@ cat < /var/lib/sogo/GNUstep/Defaults/sogod.plist mysql://${DBUSER}:${DBPASS}@%2Fvar%2Frun%2Fmysqld%2Fmysqld.sock/${DBNAME}/sogo_acl SOGoIMAPServer imap://${IPV4_NETWORK}.250:143/?TLS=YES&tlsVerifyMode=none + SOGoSieveServer + sieve://${IPV4_NETWORK}.250:4190/?TLS=YES&tlsVerifyMode=none + SOGoSMTPServer + smtp://${IPV4_NETWORK}.253:588/?TLS=YES&tlsVerifyMode=none SOGoTrustProxyAuthentication YES SOGoEncryptionKey diff --git a/data/conf/sogo/sogo.conf b/data/conf/sogo/sogo.conf index 1d6a9d3f..97a34e9e 100644 --- a/data/conf/sogo/sogo.conf +++ b/data/conf/sogo/sogo.conf @@ -32,8 +32,6 @@ // ); // self-signed is not trusted anymore - SOGoSieveServer = "sieve://dovecot:4190/?TLS=YES&tlsVerifyMode=none"; - SOGoSMTPServer = "smtp://postfix:588/?TLS=YES&tlsVerifyMode=none"; WOPort = "0.0.0.0:20000"; SOGoMemcachedHost = "memcached"; diff --git a/docker-compose.yml b/docker-compose.yml index 9fbfef59..ad78670d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -168,7 +168,7 @@ services: - phpfpm sogo-mailcow: - image: mailcow/sogo:1.110 + image: mailcow/sogo:1.111 environment: - DBNAME=${DBNAME} - DBUSER=${DBUSER} @@ -215,7 +215,7 @@ services: - sogo dovecot-mailcow: - image: mailcow/dovecot:1.18 + image: mailcow/dovecot:1.19 depends_on: - mysql-mailcow dns: diff --git a/generate_config.sh b/generate_config.sh index afd1d892..70dc5887 100755 --- a/generate_config.sh +++ b/generate_config.sh @@ -141,15 +141,22 @@ echo "Available Branches:" echo "- master branch (stable updates) | default, recommended [1]" echo "- nightly branch (unstable updates, testing) | not-production ready [2]" sleep 1 -read -r -p "Choose the Branch with it´s number [1/2] " branch + +while [ -z "${MAILCOW_BRANCH}" ]; do + read -r -p "Choose the Branch with it´s number [1/2] " branch case $branch in [2]) - git_branch="nightly" + MAILCOW_BRANCH="nightly" ;; *) - git_branch="master" + MAILCOW_BRANCH="master" ;; esac +done + +if [ ! -z "${MAILCOW_BRANCH}" ]; then + git_branch=${MAILCOW_BRANCH} +fi git fetch --all git checkout -f $git_branch @@ -458,4 +465,4 @@ else echo ' $MAILCOW_UPDATEDAT='$(date +%s)';' >> data/web/inc/app_info.inc.php echo '?>' >> data/web/inc/app_info.inc.php echo -e "\e[33mCannot determine current git repository version...\e[0m" -fi \ No newline at end of file +fi