Browse Source

Fix for Sieve error (due to IPv6 Comp from SOGo)

DerLinkman 3 years ago
parent
commit
7a23e4fd4e
1 changed files with 7 additions and 0 deletions
  1. 7 0
      data/Dockerfiles/dovecot/docker-entrypoint.sh

+ 7 - 0
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 <<EOF > /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