Check dovecot version greater

This commit is contained in:
Spitap
2022-10-27 17:25:39 +02:00
parent 8f34f0af6f
commit fe7df276fc
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ class Dovecot(base.Installer):
pw = pwd.getpwnam(self.user) pw = pwd.getpwnam(self.user)
dovecot_package = {"deb": "dovecot-core", "rpm": "dovecot"} dovecot_package = {"deb": "dovecot-core", "rpm": "dovecot"}
ssl_protocol_parameter = "ssl_protocols" 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_protocol_parameter = "ssl_min_protocol"
ssl_protocols = "!SSLv2 !SSLv3" ssl_protocols = "!SSLv2 !SSLv3"
if package.backend.get_installed_version("openssl").startswith("1.1") \ if package.backend.get_installed_version("openssl").startswith("1.1") \

View File

@@ -8,7 +8,7 @@
# Workarround https://github.com/modoboa/modoboa/issues/2570 # Workarround https://github.com/modoboa/modoboa/issues/2570
# We try to load the key and pass if it fails # We try to load the key and pass if it fails
# Keys require root permissions, standard commands would be blocked # 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 !include_try = /etc/dovecot/conf.d/10-ssl-keys.try
# If key file is password protected, give the password here. Alternatively # If key file is password protected, give the password here. Alternatively