[Rspamd] Changes to ignore watchdog checks
parent
9a58bb1620
commit
fd3b2e5f16
|
@ -97,6 +97,18 @@ function ucl_rcpts($object, $type) {
|
|||
}
|
||||
?>
|
||||
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
|
||||
|
||||
/*
|
||||
|
|
|
@ -110,11 +110,11 @@ rspamd_config:register_symbol({
|
|||
})
|
||||
|
||||
rspamd_config:register_symbol({
|
||||
name = 'NO_LOG_STAT_MAILFLOW',
|
||||
name = 'NO_LOG_STAT',
|
||||
type = 'postfilter',
|
||||
callback = function(task)
|
||||
local sender = task:get_header('From')
|
||||
if sender == 'monitoring-system@everycloudtech.us' then
|
||||
local from = task:get_header('From')
|
||||
if from and (from == 'monitoring-system@everycloudtech.us' or from == 'watchdog@localhost') then
|
||||
task:set_flag('no_log')
|
||||
task:set_flag('no_stat')
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue