Skip to content
Snippets Groups Projects
Commit 2c8f9400 authored by tbrehm's avatar tbrehm
Browse files

Fixed #258

parent 4c78e775
No related branches found
No related tags found
No related merge requests found
...@@ -158,9 +158,16 @@ class installer_dist extends installer_base { ...@@ -158,9 +158,16 @@ class installer_dist extends installer_base {
} }
$configfile = $config_dir.'/master.cf'; $configfile = $config_dir.'/master.cf';
$content = rf($configfile); $content = rf($configfile);
// if postfix package is from fedora or centios main repo
$content = str_replace('# flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}', $content = str_replace('# flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}',
' flags=R user='.$cf['vmail_username'].' argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}', ' flags=R user='.$cf['vmail_username'].' argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}',
$content); $content);
// If postfix package is from centos plus repo
$content = str_replace('# flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}',
' flags=R user='.$cf['vmail_username'].' argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}',
$content);
$content = str_replace('#maildrop unix - n n - - pipe', $content = str_replace('#maildrop unix - n n - - pipe',
'maildrop unix - n n - - pipe', 'maildrop unix - n n - - pipe',
$content); $content);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment