[Dovecot] dovecot-antispam plugin and "Failed to call dspam" message
Jeremy Doran
frysco-dovecot at gryphonic.org
Sat Jun 13 17:34:49 EEST 2009
Hi,
I had this working until I recently upgraded Dovecot, and now I'm getting a message back from
Thunderbird of "Failed to call dspam." when I attempt to move a message into one of the designated
spam folders.
However, I know from looking at the dspam system.log file, the retraining actually happens - so it
-does- appear to be calling dspam. It appears that the 'move' operation fails.
Here's my configuration:
dovecot 1.1.16 (built from ports)
dovecot-antispam 1.1 (tried from ports as well as unmodified source)
dspam 3.6.8 (built from ports)
FreeBSD 7.1
Relevant sections from dovecot.conf:
protocol imap {
mail_plugins = antispam
mail_plugin_dir = /usr/local/lib/dovecot/imap
...
}
plugin {
antispam_signature = X-DSPAM-Signature
antispam_spam = SPAM;spam;Junk
antispam_trash = Deleted Messages;Trash;INBOX.Trash
antispam_dspam_binary = /usr/local/bin/dspam
antispam_dspam_args = --deliver=;--user;%u
...
}
.config used by dovecot-antispam:
DOVECOT=/usr/ports/mail/dovecot/work/dovecot-1.1.16
BACKEND=dspam-exec
PLUGINNAME=antispam
DEBUG=syslog
DEBUG_VERBOSE=1
(I've tried it both with and without the DEBUG lines present in .config)
Plugin debug log when I attempt to move a message:
Jun 13 09:29:07 stelleri imap: antispam: mailbox_is_unsure(SPAM): 0
Jun 13 09:29:07 stelleri imap: antispam: mailbox_is_trash(INBOX): 0
Jun 13 09:29:07 stelleri imap: antispam: mailbox_is_trash(SPAM): 0
Jun 13 09:29:07 stelleri imap: antispam: mail copy: from trash: 0, to trash: 0
Jun 13 09:29:07 stelleri imap: antispam: mailbox_is_spam(INBOX): 0
Jun 13 09:29:07 stelleri imap: antispam: mailbox_is_spam(SPAM): 1
Jun 13 09:29:07 stelleri imap: antispam: mailbox_is_unsure(INBOX): 0
Jun 13 09:29:07 stelleri imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0
Jun 13 09:29:07 stelleri imap: antispam: /usr/local/bin/dspam --source=error --class=spam
--signature=4a339984859385209328925 --deliver= --user frysco
Associated log from dspam system.log:
1244903347 M <None Specified> 4a339984859385209328925 <None Specified>
0.066815 frysco Retrained
Any help appreciated,
Thanks,
-jcd
More information about the dovecot
mailing list