@spam_scanners = ( [
'Local Rspamd', 'Amavis::SpamControl::RspamdClient',
score_factor => $sa_tag2_level_deflt / 15.0,
mta_name => 'myserver.kolcore.com'
] );
Does rspamd listen on the expected endpoint?
$ curl http://127.0.0.1:11333/checkv2
{"is_skipped":false,"score":15.0,"required_score":15.0,"action":"reject","thresholds":{"reject":15.0,"add
header":6.0,"greylist":4.0},"symbols":{"COMPLETELY_EMPTY":{"name":"COMPLETELY_EMPTY","score":15.0,"metric_score":15.0}},"messages":{},"time_real":0.000669,"milter":{"remove_headers":{"X-Spam":0}}}
If there is a connection problem, there should be an according log-line no
matter the $log_level:
Local Rspamd client failed: ...
Other potential problems could log "Error calling rspamd" or "Missing rspamd
response".
With $log_level 5 one would expect to see
Rspamd response: ...