1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-13 09:56:01 +00:00

[Dovecot] Fix create sogo-sso.conf

This commit is contained in:
FreddleSpl0it
2025-02-11 14:40:38 +01:00
parent f64c6aa1d4
commit 54728bf780
2 changed files with 8 additions and 1 deletions

View File

@@ -206,6 +206,13 @@ RAND_PASS=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1)
echo -n ${RAND_PASS} > /etc/phpfpm/sogo-sso.pass
# Creating additional creds file for SOGo notify crons (calendars, etc)
echo -n ${RAND_USER}@mailcow.local:${RAND_PASS} > /etc/sogo/cron.creds
cat <<EOF > /etc/dovecot/sogo-sso.conf
# Autogenerated by mailcow
passdb {
driver = static
args = allow_real_nets=${IPV4_NETWORK}.248/32 password={plain}${RAND_PASS}
}
EOF
if [[ "${MASTER}" =~ ^([nN][oO]|[nN])+$ ]]; then
# Toggling MASTER will result in a rebuild of containers, so the quota script will be recreated

View File

@@ -246,7 +246,7 @@ services:
- sogo
dovecot-mailcow:
image: mailcow/dovecot:nightly-20250123
image: mailcow/dovecot:nightly-20250211
depends_on:
- mysql-mailcow
- netfilter-mailcow