Skip to content

Commit 15f2c4c

Browse files
authored
Merge pull request #4749 from mailcow/staging
2022-08b
2 parents 7c9c2c3 + a0174c6 commit 15f2c4c

File tree

5 files changed

+17
-24
lines changed

5 files changed

+17
-24
lines changed

data/Dockerfiles/dovecot/docker-entrypoint.sh

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -307,29 +307,13 @@ namespace {
307307
}
308308
EOF
309309

310-
# Get SOGo IPv6 from Dig
311-
SOGO_V6=$(dig +answer sogo AAAA +short)
312310

313-
if [ $SOGO_V6 ]; then
314-
cat <<EOF > /etc/dovecot/sogo_trusted_ip.conf
315-
# Autogenerated by mailcow
316-
remote ${IPV4_NETWORK}.248 {
317-
disable_plaintext_auth = no
318-
}
319-
320-
remote ${SOGO_V6} {
321-
disable_plaintext_auth = no
322-
}
323-
EOF
324-
325-
else
326311
cat <<EOF > /etc/dovecot/sogo_trusted_ip.conf
327312
# Autogenerated by mailcow
328313
remote ${IPV4_NETWORK}.248 {
329314
disable_plaintext_auth = no
330315
}
331316
EOF
332-
fi
333317

334318
# Create random master Password for SOGo SSO
335319
RAND_PASS=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1)

data/Dockerfiles/sogo/bootstrap-sogo.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ cat <<EOF > /var/lib/sogo/GNUstep/Defaults/sogod.plist
142142
<string>mysql://${DBUSER}:${DBPASS}@%2Fvar%2Frun%2Fmysqld%2Fmysqld.sock/${DBNAME}/sogo_acl</string>
143143
<key>SOGoIMAPServer</key>
144144
<string>imap://${IPV4_NETWORK}.250:143/?TLS=YES&amp;tlsVerifyMode=none</string>
145+
<key>SOGoSieveServer</key>
146+
<string>sieve://${IPV4_NETWORK}.250:4190/?TLS=YES&amp;tlsVerifyMode=none</string>
147+
<key>SOGoSMTPServer</key>
148+
<string>smtp://${IPV4_NETWORK}.253:588/?TLS=YES&amp;tlsVerifyMode=none</string>
145149
<key>SOGoTrustProxyAuthentication</key>
146150
<string>YES</string>
147151
<key>SOGoEncryptionKey</key>

data/conf/sogo/sogo.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
// );
3333

3434
// self-signed is not trusted anymore
35-
SOGoSieveServer = "sieve://dovecot:4190/?TLS=YES&tlsVerifyMode=none";
36-
SOGoSMTPServer = "smtp://postfix:588/?TLS=YES&tlsVerifyMode=none";
3735
WOPort = "0.0.0.0:20000";
3836
SOGoMemcachedHost = "memcached";
3937

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ services:
168168
- phpfpm
169169

170170
sogo-mailcow:
171-
image: mailcow/sogo:1.110
171+
image: mailcow/sogo:1.111
172172
environment:
173173
- DBNAME=${DBNAME}
174174
- DBUSER=${DBUSER}
@@ -215,7 +215,7 @@ services:
215215
- sogo
216216

217217
dovecot-mailcow:
218-
image: mailcow/dovecot:1.18
218+
image: mailcow/dovecot:1.19
219219
depends_on:
220220
- mysql-mailcow
221221
dns:

generate_config.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,22 @@ echo "Available Branches:"
141141
echo "- master branch (stable updates) | default, recommended [1]"
142142
echo "- nightly branch (unstable updates, testing) | not-production ready [2]"
143143
sleep 1
144-
read -r -p "Choose the Branch with it´s number [1/2] " branch
144+
145+
while [ -z "${MAILCOW_BRANCH}" ]; do
146+
read -r -p "Choose the Branch with it´s number [1/2] " branch
145147
case $branch in
146148
[2])
147-
git_branch="nightly"
149+
MAILCOW_BRANCH="nightly"
148150
;;
149151
*)
150-
git_branch="master"
152+
MAILCOW_BRANCH="master"
151153
;;
152154
esac
155+
done
156+
157+
if [ ! -z "${MAILCOW_BRANCH}" ]; then
158+
git_branch=${MAILCOW_BRANCH}
159+
fi
153160

154161
git fetch --all
155162
git checkout -f $git_branch
@@ -458,4 +465,4 @@ else
458465
echo ' $MAILCOW_UPDATEDAT='$(date +%s)';' >> data/web/inc/app_info.inc.php
459466
echo '?>' >> data/web/inc/app_info.inc.php
460467
echo -e "\e[33mCannot determine current git repository version...\e[0m"
461-
fi
468+
fi

0 commit comments

Comments
 (0)