Skip to content

Commit 7002a56

Browse files
author
Florian Schaal
committed
readd check that the dkim-path is not a symlink
1 parent a019427 commit 7002a56

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

server/plugins-available/mail_plugin_dkim.inc.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,12 @@ function check_system($data) {
143143
mkdir($mail_config['dkim_path'], 0755, true);
144144
$app->log('No user amavis or vscan found - using root for '.$mail_config['dkim_path'], LOGLEVEL_WARNING);
145145
}
146-
}
146+
} else {
147+
if (!$app->system->checkpath($mail_config['dkim_path'])) {
148+
$app->log('Unable to write DKIM settings - invalid DKIM-Path (symlink?)', LOGLEVEL_ERROR);
149+
$check=false;
150+
}
151+
}
147152

148153
if (!is_writeable($mail_config['dkim_path'])) {
149154
$app->log('DKIM Path '.$mail_config['dkim_path'].' not writeable.', LOGLEVEL_ERROR);

0 commit comments

Comments
 (0)