Commit e7d945bc authored by Marco Mariani's avatar Marco Mariani

set postfix_mail_owner and postfix_setgid_group to current user, group

parent fa200d2f
......@@ -1554,12 +1554,17 @@ sub setDefaults {
$config{zimbraMtaMyNetworks} = "$tmpval";
}
my $uid_name = `id -un`;
chomp $uid_name;
my $gid_name = `id -gn`;
chomp $gid_name;
if ($platform =~ /MACOSXx86_10/) {
$config{postfix_mail_owner} = "_postfix";
$config{postfix_setgid_group} = "_postdrop";
} else {
$config{postfix_mail_owner} = "postfix";
$config{postfix_setgid_group} = "postdrop";
$config{postfix_mail_owner} = "$uid_name";
$config{postfix_setgid_group} = "$gid_name";
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment