Browse Source

Fixed Poodle bug issue for Ubuntu 12.04

bugfixes
gau1991 10 years ago
parent
commit
5c1714dbcd
  1. 7
      src/modules/stack/install/mail/ee_mod_setup_dovecot.sh

7
src/modules/stack/install/mail/ee_mod_setup_dovecot.sh

@ -31,7 +31,14 @@ function ee_mod_setup_dovecot()
|| ee_lib_error "Unable to setup 10-auth.conf file, exit status = " $?
# Configuring 10-ssl.conf, Disable SSLv2 and SSLv3, Fixes POODLE Bug
grep ssl_protocols /etc/dovecot/conf.d/10-ssl.conf &>> $EE_COMMAND_LOG
if [ $? -eq 0 ]; then
# For Ubuntu 14.04, Debian 6 and Debian 7 10-ssl.conf file contains commented #ssl_protocol variable
sed -i "s/#ssl_protocols =.*/ssl_protocols = \!SSLv2 \!SSLv3/" /etc/dovecot/conf.d/10-ssl.conf
else
# For Ubuntu 12.04 10-ssl.conf file does not contain commented #ssl-protocols variable
echo 'ssl_protocols = !SSLv2 !SSLv3' >> /etc/dovecot/conf.d/10-ssl.conf
fi
# Configuring dovecot-sql.conf.ext
cp -v /usr/share/easyengine/mail/dovecot-sql.conf.ext /etc/dovecot/dovecot-sql.conf.ext &>> $EE_COMMAND_LOG \

Loading…
Cancel
Save