diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php index 3b2dadf9d2dbcd75a11cb73e7c2050cb3177894c..fb587770bd31ef9a3df4c1100ebd19c8bb390a7e 100644 --- a/install/lib/installer_base.lib.php +++ b/install/lib/installer_base.lib.php @@ -823,8 +823,8 @@ class installer_base { $postfix_service = @($out[0]=='')?false:true; } else { //* fallback - Postfix < 2.9 $content = rf($conf['postfix']['config_dir'].'/master.cf'); - $regex = '/[^#]'.$service.'.*.'.$type.'.*/'; - $postfix_service = @(!preg_match($regex, $content))?true:false; + $regex = "/^((?!#)".$service.".*".$type.".*)$/m"; + $postfix_service = @(preg_match($regex, $content))?true:false; } return $postfix_service;