Skip to content

Commit ee4cb61

Browse files
author
Till Brehm
committed
The !SSLv2 option for Dovecot 2.2 has been removed
1 parent 2cb3fcd commit ee4cb61

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

install/dist/lib/debian60.lib.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ public function configure_dovecot()
109109
if(version_compare($dovecot_version,2.1) < 0) {
110110
removeLine($config_dir.'/'.$configfile, 'ssl_protocols =');
111111
}
112+
if(version_compare($dovecot_version,2.2) >= 0) {
113+
// Dovecot > 2.2 does not recognize !SSLv2 anymore on Debian 9
114+
replaceLine($config_dir.'/'.$configfile, 'ssl_protocols = !SSLv2 !SSLv3', 'ssl_protocols = !SSLv3', 1, 0);
115+
}
112116
} else {
113117
if(is_file($conf['ispconfig_install_dir'].'/server/conf-custom/install/debian6_dovecot.conf.master')) {
114118
copy($conf['ispconfig_install_dir'].'/server/conf-custom/install/debian6_dovecot.conf.master', $config_dir.'/'.$configfile);

install/lib/installer_base.lib.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,10 @@ public function configure_dovecot() {
12701270
if(version_compare($dovecot_version, 2.1, '<')) {
12711271
removeLine($config_dir.'/'.$configfile, 'ssl_protocols =');
12721272
}
1273+
if(version_compare($dovecot_version,2.2) >= 0) {
1274+
// Dovecot > 2.2 does not recognize !SSLv2 anymore on Debian 9
1275+
replaceLine($config_dir.'/'.$configfile, 'ssl_protocols = !SSLv2 !SSLv3', 'ssl_protocols = !SSLv3', 1, 0);
1276+
}
12731277
}
12741278

12751279
//* dovecot-lmtpd

0 commit comments

Comments
 (0)