[Dovecot] dovecot-antispam plugin and "Failed to call dspam" message

Johannes Berg johannes at sipsolutions.net
Sun Jun 14 18:42:44 EEST 2009


Hi,

> 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.

> 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

I have no idea what's going on, obviously, but please verify that the
above dspam command line
 1) exits with exit code 0
 2) doesn't print anything to stderr

Both of these are taken by the plugin as an indication that something
went wrong, because dspam's error reporting was _severely_ lacking at
the time I wrote the plugin. It might have improved in the meantime, I
have no idea.

johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090614/70303625/attachment.bin 


More information about the dovecot mailing list