|
@@ -307,29 +307,13 @@ namespace {
|
|
}
|
|
}
|
|
EOF
|
|
EOF
|
|
|
|
|
|
-# Get SOGo IPv6 from Dig
|
|
|
|
-SOGO_V6=$(dig +answer sogo AAAA +short)
|
|
|
|
|
|
|
|
-if [ $SOGO_V6 ]; then
|
|
|
|
-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
|
|
|
|
-
|
|
|
|
-else
|
|
|
|
cat <<EOF > /etc/dovecot/sogo_trusted_ip.conf
|
|
cat <<EOF > /etc/dovecot/sogo_trusted_ip.conf
|
|
# Autogenerated by mailcow
|
|
# Autogenerated by mailcow
|
|
remote ${IPV4_NETWORK}.248 {
|
|
remote ${IPV4_NETWORK}.248 {
|
|
disable_plaintext_auth = no
|
|
disable_plaintext_auth = no
|
|
}
|
|
}
|
|
EOF
|
|
EOF
|
|
-fi
|
|
|
|
|
|
|
|
# Create random master Password for SOGo SSO
|
|
# Create random master Password for SOGo SSO
|
|
RAND_PASS=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1)
|
|
RAND_PASS=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1)
|