Rapid spam filtering system https://rspamd.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
980 B

rspamd_config:register_symbol({
name = 'SIMPLE_PRE',
score = 1.0,
priority = 9, -- after settings
group = 'a',
type = 'prefilter',
callback = function()
return true, 'Fires always'
end
})
rspamd_config:register_symbol({
name = 'SIMPLE_POST',
score = 1.0,
type = 'postfilter',
group = 'c',
callback = function()
return true, 'Fires always'
end
})
local id = rspamd_config:register_symbol({
name = 'SIMPLE_TEST',
score = 1.0,
group = 'b',
callback = function(task)
task:insert_result('SIMPLE_VIRTUAL', 1.0)
task:insert_result('SIMPLE_VIRTUAL1', 1.0)
return true, 'Fires always'
end
})
rspamd_config:register_symbol({
name = 'SIMPLE_VIRTUAL',
type = 'virtual',
score = 1.0,
group = 'vg',
parent = id,
})
rspamd_config:register_symbol({
name = 'SIMPLE_VIRTUAL1',
type = 'virtual',
forbidden_ids = 'id_virtual,id_virtual_group',
allowed_ids = 'id_virtual1',
score = 1.0,
group = 'vg',
parent = id,
})