.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/excessb64_group.conf"
}
+# Not defined by default
+group "neural" {
+ .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/neural_group.conf"
+ .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/neural_group.conf"
+}
+
.include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/groups.conf"
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/groups.conf"
\ No newline at end of file
lock_expire = 600,
learning_spawned = false,
ann_expire = 60 * 60 * 24 * 2, -- 2 days
- symbol_spam = 'FANNR_SPAM',
- symbol_ham = 'FANNR_HAM',
+ symbol_spam = 'NEURAL_SPAM',
+ symbol_ham = 'NEURAL_HAM',
}
local settings = {
end
local id = rspamd_config:register_symbol({
- name = 'FANN_CHECK',
+ name = 'NEURAL_CHECK',
type = 'postfilter,nostat',
priority = 6,
callback = ann_scores_filter
settings.rules[k] = def_rules
rspamd_config:set_metric_symbol({
name = def_rules.symbol_spam,
- score = 3.0,
+ score = 0.0,
description = 'Neural network SPAM',
group = 'neural'
})
rspamd_config:set_metric_symbol({
name = def_rules.symbol_ham,
- score = -2.0,
+ score = -0.0,
description = 'Neural network HAM',
group = 'neural'
})
end
rspamd_config:register_symbol({
- name = 'FANN_VECTOR_PUSH',
+ name = 'NEURAL_LEARN',
type = 'idempotent,nostat',
priority = 5,
callback = ann_push_vector