Check dovecot version greater
This commit is contained in:
@@ -60,7 +60,7 @@ class Dovecot(base.Installer):
|
||||
pw = pwd.getpwnam(self.user)
|
||||
dovecot_package = {"deb": "dovecot-core", "rpm": "dovecot"}
|
||||
ssl_protocol_parameter = "ssl_protocols"
|
||||
if package.backend.get_installed_version(dovecot_package[package.backend.FORMAT]).startswith("2.3"):
|
||||
if package.backend.get_installed_version(dovecot_package[package.backend.FORMAT]) > "2.3":
|
||||
ssl_protocol_parameter = "ssl_min_protocol"
|
||||
ssl_protocols = "!SSLv2 !SSLv3"
|
||||
if package.backend.get_installed_version("openssl").startswith("1.1") \
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
# Workarround https://github.com/modoboa/modoboa/issues/2570
|
||||
# We try to load the key and pass if it fails
|
||||
# Keys require root permissions, standard commands would be blocked
|
||||
# by permissions
|
||||
# because dovecot can't load these cert
|
||||
!include_try = /etc/dovecot/conf.d/10-ssl-keys.try
|
||||
|
||||
# If key file is password protected, give the password here. Alternatively
|
||||
|
||||
Reference in New Issue
Block a user