Skip to content

Commit 2c8f940

Browse files
committed
Fixed #258
1 parent 4c78e77 commit 2c8f940

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

install/dist/lib/fedora.lib.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,16 @@ function configure_postfix($options = '')
158158
}
159159
$configfile = $config_dir.'/master.cf';
160160
$content = rf($configfile);
161+
// if postfix package is from fedora or centios main repo
161162
$content = str_replace('# flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}',
162163
' flags=R user='.$cf['vmail_username'].' argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}',
163164
$content);
165+
// If postfix package is from centos plus repo
166+
$content = str_replace('# flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}',
167+
' flags=R user='.$cf['vmail_username'].' argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}',
168+
$content);
169+
170+
164171
$content = str_replace('#maildrop unix - n n - - pipe',
165172
'maildrop unix - n n - - pipe',
166173
$content);

0 commit comments

Comments
 (0)