Skip to content

Commit d8083bb

Browse files
committed
master.cf changed on Debian 12 aka Bookworm
1 parent 7c9b206 commit d8083bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install/lib/installer_base.lib.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ public function configure_postfix($options = '') {
13531353
$change_maildrop_flags = @(preg_match("/$quoted_regex/", $configfile))?false:true;
13541354
}
13551355
if ($change_maildrop_flags) {
1356-
//* Change maildrop service in posfix master.cf
1356+
//* Change maildrop service in postfix master.cf
13571357
if(is_file($config_dir.'/master.cf')) {
13581358
copy($config_dir.'/master.cf', $config_dir.'/master.cf~');
13591359
}
@@ -1362,8 +1362,8 @@ public function configure_postfix($options = '') {
13621362
}
13631363
$configfile = $config_dir.'/master.cf';
13641364
$content = rf($configfile);
1365-
$content = str_replace('flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}',
1366-
'flags=DRhu user='.$cf['vmail_username'].' argv=/usr/bin/maildrop -d '.$cf['vmail_username'].' ${extension} ${recipient} ${user} ${nexthop} ${sender}',
1365+
$content = preg_replace('/flags=(DRX?hu) user=vmail argv=\/usr\/bin\/maildrop -d \${recipient}/',
1366+
'flags=$1 user='.$cf['vmail_username'].' argv=/usr/bin/maildrop -d '.$cf['vmail_username'].' \${extension} \${recipient} \${user} \${nexthop} \${sender}',
13671367
$content);
13681368
wf($configfile, $content);
13691369
}

0 commit comments

Comments
 (0)