2023-10-26 12:25:44 +02:00
|
|
|
{
|
2024-04-05 06:38:53 +02:00
|
|
|
foreach my $sservice (qw(imap imaps pop3 pop3s)) {
|
|
|
|
$DB->set_prop($sservice, "type", "configuration") if ${$sservice}{type} eq "service";
|
2023-10-26 12:25:44 +02:00
|
|
|
}
|
2024-04-05 06:38:53 +02:00
|
|
|
# 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});
|
|
|
|
}
|
2025-01-18 21:41:12 +01:00
|
|
|
# drop SSLv2 from ssl_min_protocol
|
|
|
|
foreach my $prope (qw( SSLv2 )) {
|
|
|
|
$DB->get_prop_and_delete('dovecot', 'ssl_min_protocol') if (exists $dovecot{'ssl_min_protocol'} && $dovecot{'ssl_min_protocol'} eq $prope);
|
|
|
|
}
|
2024-04-05 06:38:53 +02:00
|
|
|
|
2023-10-26 12:25:44 +02:00
|
|
|
}
|