Skip to content
Snippets Groups Projects
Commit 86ad3973 authored by Carsten's avatar Carsten
Browse files

set correct ownership on sieve filter file and link

parent 097ad60d
No related branches found
No related tags found
No related merge requests found
...@@ -210,9 +210,15 @@ class maildeliver_plugin { ...@@ -210,9 +210,15 @@ class maildeliver_plugin {
} }
file_put_contents($sieve_file_isp, $tpl->grab()); file_put_contents($sieve_file_isp, $tpl->grab());
chown($sieve_file_isp,$mail_config['mailuser_name']);
chgrp($sieve_file_isp,$mail_config['mailuser_group']);
chdir($data["new"]["maildir"]); chdir($data["new"]["maildir"]);
//* create symlink to activate sieve script //* create symlink to activate sieve script
symlink("sieve/ispconfig.sieve", ".sieve") or $app->log("Unable to create symlink to active sieve filter", LOGLEVEL_WARN); symlink("sieve/ispconfig.sieve", ".sieve") or $app->log("Unable to create symlink to active sieve filter", LOGLEVEL_WARN);
if (is_link(".sieve")) {
lchown($sieve_file_isp,$mail_config['mailuser_name']);
lchgrp($sieve_file_isp,$mail_config['mailuser_group']);
}
unset($tpl); unset($tpl);
} }
......
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