[Rspamd] Changes to ignore watchdog checks

master
andryyy 2017-09-21 19:25:17 +02:00
parent 9a58bb1620
commit fd3b2e5f16
2 changed files with 15 additions and 3 deletions

View File

@ -97,6 +97,18 @@ function ucl_rcpts($object, $type) {
} }
?> ?>
settings { settings {
watchdog {
priority = 10;
rcpt = "/null@localhost/i";
from = "/watchdog@localhost/i";
apply "default" {
actions {
reject = 9999.0;
greylist = 9998.0;
"add header" = 9997.0;
}
}
}
<?php <?php
/* /*

View File

@ -110,11 +110,11 @@ rspamd_config:register_symbol({
}) })
rspamd_config:register_symbol({ rspamd_config:register_symbol({
name = 'NO_LOG_STAT_MAILFLOW', name = 'NO_LOG_STAT',
type = 'postfilter', type = 'postfilter',
callback = function(task) callback = function(task)
local sender = task:get_header('From') local from = task:get_header('From')
if sender == 'monitoring-system@everycloudtech.us' then if from and (from == 'monitoring-system@everycloudtech.us' or from == 'watchdog@localhost') then
task:set_flag('no_log') task:set_flag('no_log')
task:set_flag('no_stat') task:set_flag('no_stat')
end end