trigger antispam config-rebuild if dkim-flag changed for domain or a new domain with dkim=1 has been created
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -831,6 +831,9 @@ class Domains extends ApiCommand implements ResourceEntity
|
|||||||
Cronjob::inserttask(TaskId::REBUILD_VHOST);
|
Cronjob::inserttask(TaskId::REBUILD_VHOST);
|
||||||
// Using nameserver, insert a task which rebuilds the server config
|
// Using nameserver, insert a task which rebuilds the server config
|
||||||
Cronjob::inserttask(TaskId::REBUILD_DNS);
|
Cronjob::inserttask(TaskId::REBUILD_DNS);
|
||||||
|
if ($dkim == '1') {
|
||||||
|
Cronjob::inserttask(TaskId::REBUILD_RSPAMD);
|
||||||
|
}
|
||||||
|
|
||||||
$this->logger()->logAction(FroxlorLogger::ADM_ACTION, LOG_WARNING, "[API] added domain '" . $domain . "'");
|
$this->logger()->logAction(FroxlorLogger::ADM_ACTION, LOG_WARNING, "[API] added domain '" . $domain . "'");
|
||||||
|
|
||||||
@@ -1675,6 +1678,10 @@ class Domains extends ApiCommand implements ResourceEntity
|
|||||||
Cronjob::inserttask(TaskId::REBUILD_VHOST);
|
Cronjob::inserttask(TaskId::REBUILD_VHOST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($dkim != $result['dkim']) {
|
||||||
|
Cronjob::inserttask(TaskId::REBUILD_RSPAMD);
|
||||||
|
}
|
||||||
|
|
||||||
if ($speciallogfile != $result['speciallogfile'] && $speciallogverified != '1') {
|
if ($speciallogfile != $result['speciallogfile'] && $speciallogverified != '1') {
|
||||||
$speciallogfile = $result['speciallogfile'];
|
$speciallogfile = $result['speciallogfile'];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user