File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,12 @@ if [ "$matches" > 1 ]; then
1717 $HESTIA /bin/v-change-sys-config-value " ENFORCE_SUBDOMAIN_OWNERSHIP" " $ENFORCE_SUBDOMAIN_OWNERSHIP "
1818fi
1919
20- version=$( dovecot --version | cut -f -2 -d .) ;
21- if [ " $version " = " 2.3" ]; then
22- echo " [ * ] Update dovecot config to sync with 2.3 settings"
23- sed -i ' s|ssl_dh_parameters_length = 4096|#ssl_dh_parameters_length = 4096|g' /etc/dovecot/conf.d/10-ssl.conf
24- sed -i ' s|#ssl_dh = </etc/ssl/dhparam.pem|ssl_dh = </etc/ssl/dhparam.pem|g' /etc/dovecot/conf.d/10-ssl.conf
25- sed -i ' s|ssl_protocols = !SSLv3 !TLSv1|ssl_min_protocol=TLSv1.1|g' /etc/dovecot/conf.d/10-ssl.conf
20+ if [ " $IMAP_SYSTEM " = " dovecot" ];
21+ version=$( dovecot --version | cut -f -2 -d .) ;
22+ if [ " $version " = " 2.3" ]; then
23+ echo " [ * ] Update dovecot config to sync with 2.3 settings"
24+ sed -i ' s|ssl_dh_parameters_length = 4096|#ssl_dh_parameters_length = 4096|g' /etc/dovecot/conf.d/10-ssl.conf
25+ sed -i ' s|#ssl_dh = </etc/ssl/dhparam.pem|ssl_dh = </etc/ssl/dhparam.pem|g' /etc/dovecot/conf.d/10-ssl.conf
26+ sed -i ' s|ssl_protocols = !SSLv3 !TLSv1|ssl_min_protocol=TLSv1.1|g' /etc/dovecot/conf.d/10-ssl.conf
27+ fi
2628fi
You can’t perform that action at this time.
0 commit comments