|
|
@@ -17,10 +17,12 @@ if [ "$matches" > 1 ]; then
|
|
|
$HESTIA/bin/v-change-sys-config-value "ENFORCE_SUBDOMAIN_OWNERSHIP" "$ENFORCE_SUBDOMAIN_OWNERSHIP"
|
|
|
fi
|
|
|
|
|
|
-version=$(dovecot --version | cut -f -2 -d .);
|
|
|
-if [ "$version" = "2.3" ]; then
|
|
|
- echo "[ * ] Update dovecot config to sync with 2.3 settings"
|
|
|
- sed -i 's|ssl_dh_parameters_length = 4096|#ssl_dh_parameters_length = 4096|g' /etc/dovecot/conf.d/10-ssl.conf
|
|
|
- sed -i 's|#ssl_dh = </etc/ssl/dhparam.pem|ssl_dh = </etc/ssl/dhparam.pem|g' /etc/dovecot/conf.d/10-ssl.conf
|
|
|
- sed -i 's|ssl_protocols = !SSLv3 !TLSv1|ssl_min_protocol=TLSv1.1|g' /etc/dovecot/conf.d/10-ssl.conf
|
|
|
+if [ "$IMAP_SYSTEM" = "dovecot" ];
|
|
|
+ version=$(dovecot --version | cut -f -2 -d .);
|
|
|
+ if [ "$version" = "2.3" ]; then
|
|
|
+ echo "[ * ] Update dovecot config to sync with 2.3 settings"
|
|
|
+ sed -i 's|ssl_dh_parameters_length = 4096|#ssl_dh_parameters_length = 4096|g' /etc/dovecot/conf.d/10-ssl.conf
|
|
|
+ sed -i 's|#ssl_dh = </etc/ssl/dhparam.pem|ssl_dh = </etc/ssl/dhparam.pem|g' /etc/dovecot/conf.d/10-ssl.conf
|
|
|
+ sed -i 's|ssl_protocols = !SSLv3 !TLSv1|ssl_min_protocol=TLSv1.1|g' /etc/dovecot/conf.d/10-ssl.conf
|
|
|
+ fi
|
|
|
fi
|