Skip to content
Snippets Groups Projects
Commit 7002a562 authored by Florian Schaal's avatar Florian Schaal
Browse files

readd check that the dkim-path is not a symlink

parent a0194276
No related branches found
No related tags found
No related merge requests found
...@@ -143,7 +143,12 @@ class mail_plugin_dkim { ...@@ -143,7 +143,12 @@ class mail_plugin_dkim {
mkdir($mail_config['dkim_path'], 0755, true); mkdir($mail_config['dkim_path'], 0755, true);
$app->log('No user amavis or vscan found - using root for '.$mail_config['dkim_path'], LOGLEVEL_WARNING); $app->log('No user amavis or vscan found - using root for '.$mail_config['dkim_path'], LOGLEVEL_WARNING);
} }
} } else {
if (!$app->system->checkpath($mail_config['dkim_path'])) {
$app->log('Unable to write DKIM settings - invalid DKIM-Path (symlink?)', LOGLEVEL_ERROR);
$check=false;
}
}
if (!is_writeable($mail_config['dkim_path'])) { if (!is_writeable($mail_config['dkim_path'])) {
$app->log('DKIM Path '.$mail_config['dkim_path'].' not writeable.', LOGLEVEL_ERROR); $app->log('DKIM Path '.$mail_config['dkim_path'].' not writeable.', LOGLEVEL_ERROR);
......
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