diff --git a/data/conf/rspamd/dynmaps/settings.php b/data/conf/rspamd/dynmaps/settings.php index 098ffbd9..0b563b70 100644 --- a/data/conf/rspamd/dynmaps/settings.php +++ b/data/conf/rspamd/dynmaps/settings.php @@ -32,6 +32,11 @@ catch (PDOException $e) { ?> settings { query("SELECT `host` FROM `forwarding_hosts`"); $rows = $stmt->fetchAll(PDO::FETCH_COLUMN); @@ -39,16 +44,16 @@ try { catch (PDOException $e) { $rows = array(); } - -if ($rows) -{ +if (!empty($rows)) { ?> whitelist_forwarding_hosts { priority = high; + ip = ""; + apply "default" { actions { @@ -61,6 +66,11 @@ foreach ($rows as $host) { } query("SELECT DISTINCT `object` FROM `filterconf` WHERE `option` = 'highspamlevel' OR `option` = 'lowspamlevel'"); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);