Delete the correct private DKIM key during DKIM deletion

Fixes #338
This commit is contained in:
Kienan Stewart 2019-05-13 18:00:18 -04:00 committed by Camille Lafitte
parent a00f4b0d5f
commit 7523d6bebf
1 changed files with 1 additions and 1 deletions

View File

@ -1215,7 +1215,7 @@ ORDER BY
$target_dir = "/etc/opendkim/keys/$domain";
if (file_exists($target_dir)) {
$this->shouldreloaddkim=true;
@unlink("$target_dir/alternc_private");
@unlink("$target_dir/alternc.private");
@unlink("$target_dir/alternc.txt");
@rmdir($target_dir);
del_line_from_file("/etc/opendkim/KeyTable","alternc._domainkey.".$domain." ".$domain.":alternc:/etc/opendkim/keys/".$domain."/alternc.private");