diff --git a/createlinks b/createlinks index 35e727e..cbef5ca 100644 --- a/createlinks +++ b/createlinks @@ -20,7 +20,6 @@ event_link("adjust-dovecot", "smeserver-dovecot-update", "02"); event_link("systemd-reload", "smeserver-dovecot-update", "89"); event_link("systemd-default", "smeserver-dovecot-update", "88"); templates2events("/etc/rsyslog.conf","smeserver-dovecot-update"); -templates2events("/usr/lib/systemd/system/dovecot.service.d/50koozali.conf", qw(bootstrap-console-save console-save post-install post-upgrade smeserver-dovecot-update )); # in case the ip change safe_symlink("sigusr2", "root/etc/e-smith/events/ip-change/services2adjust/dovecot"); diff --git a/root/etc/e-smith/db/configuration/migrate/dovecot b/root/etc/e-smith/db/configuration/migrate/dovecot index f05e689..41ada24 100644 --- a/root/etc/e-smith/db/configuration/migrate/dovecot +++ b/root/etc/e-smith/db/configuration/migrate/dovecot @@ -1,5 +1,11 @@ { - foreach my $sservice qw(imap imaps pop3 pop3s) { - $DB->set_prop($sservice, "type", "configuration") if $DB->${$sservice}->{type} eq "service"; + foreach my $sservice (qw(imap imaps pop3 pop3s)) { + $DB->set_prop($sservice, "type", "configuration") if ${$sservice}{type} eq "service"; } + # drop dovecot SSLv2 SSLv3 TLSv1 TLSv1.1 TLSv1.2 and move to ssl_min_protocol + # drop dovecot dh + foreach my $prope (qw( SSLv2 SSLv3 TLSv1 TLSv1.1 TLSv1.2 dh )) { + $DB->get_prop_and_delete('dovecot', $prope) if (exists $dovecot{$prope}); + } + } diff --git a/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/35ssl b/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/35ssl index aa46a56..2d88165 100644 --- a/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/35ssl +++ b/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/35ssl @@ -3,16 +3,11 @@ ssl_cert = 1,TLSv1=>1, TLSv1.1=>1, TLSv1.2=>1,TLSv1.3=>1}; +my $proto = ( (exists $dovecot{'ssl_min_protocol'} ) && (exists $protos{$dovecot{'ssl_min_protocol'}} ) ) ? $dovecot{'ssl_min_protocol'} : 'TLSv1.2'; -my $dh = $dovecot{'dh'} || '4096'; -$OUT .= "ssl_dh_parameters_length = $dh\n"; -$OUT .= "ssl_protocols = $proto\n" if ($proto ne ''); +$OUT .= "ssl_dh= 11.0.0-6.sme +- fix migrate fragment error [SME: 12548] +- add support for quota-fs [SME: 11733] +- fix ssl and config issues [SME: 12571] +- use external dh parameter [SME: 10935] + * Thu Apr 04 2024 Brian Read 11.0.0-5.sme - Set license file to GPL2.0 [SME: 12577]