[ANNOUNCE] dovecot_spam_report - non-blocking spam/ham learning (IMAPSieve + sa-learn)
Hi all,
I would like to announce dovecot_spam_report, a small GPL tool that decouples spam/ham reporting via IMAPSieve from sa-learn, so Dovecot no longer blocks while messages are being learned.
Download: https://inf-it.com/dovecot_spam_report.tgz
The problem
The usual setup ("Replacing antispam plugin with IMAPSieve", https://doc.dovecot.org/latest/core/config/spam_reporting.html) pipes every message moved into or out of Junk directly to sa-learn, and the IMAP process waits for sa-learn to finish for each message. The HOWTO itself warns that this can lock the user out for tens of seconds or minutes; with bulk moves of thousands of messages it gets much worse.
JM
Ján Máté via dovecot skrev den 2026-10-15 17:13:
Hi all,
I would like to announce dovecot_spam_report, a small GPL tool that decouples spam/ham reporting via IMAPSieve from sa-learn, so Dovecot no longer blocks while messages are being learned.
yes its a problem when there is many mails in the spam/ham folders
i think this one solves it partly
eq not in the imap process, but in a async other threds
sa-learn --spam --progress spamfolder/cur/.
is slow but keep it in one shell
participants (2)
-
Benny Pedersen
-
Ján Máté