Commit 7002a562 authored by Florian Schaal's avatar Florian Schaal

readd check that the dkim-path is not a symlink

parent a0194276
......@@ -143,7 +143,12 @@ class mail_plugin_dkim {
mkdir($mail_config['dkim_path'], 0755, true);
$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'])) {
$app->log('DKIM Path '.$mail_config['dkim_path'].' not writeable.', LOGLEVEL_ERROR);
......
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