Fix to compare version strings safely

This commit is contained in:
Ilia Ross
2026-07-05 13:18:18 +02:00
parent 1b4e2cadd4
commit 80ee472980

View File

@@ -92,7 +92,10 @@ if ($config{'index_check'} && ($err = &check_postfix())) {
( "sni" ) : ( ),
"local_delivery", "resource",
"smtpd", "smtp", "sasl", "client",
"rate", "debug", $postfix_version > 2 ? ( ) : ( "ldap" ),
"rate", "debug",
&compare_version_numbers($postfix_version, "2.0") > 0
? ( )
: ( "ldap" ),
"master", "mailq", "postfinger", "boxes", "manual" );
$access{'boxes'} = &foreign_available("mailboxes");