From 7a23e4fd4e02df90dd8ac0fe7968f47fda6839cf Mon Sep 17 00:00:00 2001 From: DerLinkman Date: Wed, 24 Aug 2022 12:12:41 +0200 Subject: [PATCH] Fix for Sieve error (due to IPv6 Comp from SOGo) --- data/Dockerfiles/dovecot/docker-entrypoint.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/data/Dockerfiles/dovecot/docker-entrypoint.sh b/data/Dockerfiles/dovecot/docker-entrypoint.sh index ac7aeb1d8..801d422ac 100755 --- a/data/Dockerfiles/dovecot/docker-entrypoint.sh +++ b/data/Dockerfiles/dovecot/docker-entrypoint.sh @@ -307,11 +307,18 @@ namespace { } EOF +# Get SOGo IPv6 from Dig +SOGO_V6=$(dig +answer sogo AAAA +short) + 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 # Create random master Password for SOGo SSO