docker compose -f /opt/mailcow-dockerized/docker-compose.yml exec rspamd-mailcow rspamc -h rspamd:11333 learn_spam /tmp/spam.eml

Category: Mail Servers & Postfix

docker compose -f /opt/mailcow-dockerized/docker-compose.yml exec rspamd-mailcow rspamc -h rspamd:11333 learn_spam /tmp/spam.eml

Train Rspamd's Bayesian filter on a spam sample

learn_spam feeds the message into Rspamd's statistical classifier so future similar mail scores higher. Feed a few dozen clearly labeled samples for the filter to be effective. The learned state lives in Redis, so it survives rspamd restarts.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.