curl -X POST "https://mail.example.com/api/v1/edit/qitem" -H "X-API-Key: $MAILCOW_API_KEY" -H "Content-Type: application/json" -d '{"action":"learnham","items":["5f8a1b2c3d4e5f6a7b8c9d0e"]}'

Category: Mail Servers & Postfix

curl -X POST "https://mail.example.com/api/v1/edit/qitem" -H "X-API-Key: $MAILCOW_API_KEY" -H "Content-Type: application/json" -d '{"action":"learnham","items":["5f8a1b2c3d4e5f6a7b8c9d0e"]}'

Release a message and train the filter as ham

The learnham action delivers the quarantined message and feeds it to Rspamd's Bayesian filter as legitimate mail. This both fixes the false positive and makes the filter less likely to catch similar mail. The learned state persists in Redis.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.