When running dovecot-dspam and moving emails to and from spam-folder to class them as spam or ham, I was having problems with dspam reporting in mail.log that it could not determine the destination user. This happened even though I had "MySQLUIDInSignature on" in dspam.conf. A --user argument was needed in the dspam-command called by the dovecot-dspam-plugin to make it work as intended. The attached patch gets the current user from the dovecot-environment and adds it to the dspam-command. Reproducible: Always Steps to Reproduce: 1. Configure dovecot to use the dovecot-dspam-plugin 2. Move a message to/from spam-folder. 3. Message in maillog saying that dspam could not determine destination user Actual Results: No dspam-reclassification done :( Expected Results: dspam should reclassify the message, which should leave no output in logs, but presumably different stats when running dspam_stats
Created attachment 133746 [details, diff] dovecot-dspam --user-patch
this is already in my overlay (http://overlays.gentoo.org/dev/hollow/browser/mail-filter/dovecot-dspam) will move it to portage soon
btw, did you see http://johannes.sipsolutions.net/Projects/dovecot-antispam ? it seems to obsolete dovecot-dspam .. and it supports --user, will probably add this one to portage
Nope, did not know about dovecot-antispam. Looks promising, looking forward to seeing it in portage.
mail-filter/dovecot-antispam-20071019 in portage now
well, the module seems to load for me, but I always get an error that the plugin is not configured. I have in my dovecot.conf file: protocol imap { mail_plugins = antispam } plugin { antispam_signature = X-DSPAM-Signature antispam_trash = trash;Trash;TRASH;Deleted Items antispam_spam = SPAM;spam;Spam;Junk antispam_dspam_binary = /usr/bin/dspam antispam_dspam_args = --user;%u antispam_dspam_args = --mode=teft } According to what I see in the manpage, it does look pretty configured :( If either of you has this working, I'd love some tips!