[Dovecot] Dovecot antispam plugin bug: got an empty message

Petr Bravenec petr at bravenec.eu
Sat Jun 9 23:23:05 EEST 2012


It is few months ago I requested help with combination dovecot - dovecot-
antispam plugin and dspam.

Now I got into troubles with a lot of spam delivering to users inbox. Problem 
described bellow is now better hidden but stil remains:

When moving a message from INBOX to Junk, dspam got an empty message. 
I made a wrapper about dspamc and there is no input on stdio. The dspam was 
not trained (got an empty message).

Looking to source code of dspam and antispam plugin I suspect the dovecot not 
to sending any content to plugin when moving from inbox to junk.

Petr Bravenec

Dne Wednesday 25 of January 2012 17:19:18 Tom Hendrikx napsal(a):
> On 25-01-12 08:05, Petr Bravenec wrote:
> > Few weeks ago I upgraded dovecot from 1.2 to 2.0.16 and antispam plugin
> > to 2.0_pre20101222. Since the upgrade I'm not able to move messages to
> > my Junk folder. In the maillog I have found this message:
> > 
> > dspam[25060]: empty message (no data received)
> 
> Gentoo has included the antispam plugin from Johannes historically, but
> added the fork by Eugene to support upgrades to dovecot 2.0. It is not
> really made clear by the gentoo ebuild is that the forked plugin needs a
> slightly different config.
> 
> I use the config below with dovecot 2.0.17 and a git checkout for
> dovecot-antispam:
> 
> ===8<========
> plugin {
>         antispam_signature = X-DSPAM-Signature
>         antispam_signature_missing = move
>         antispam_spam_pattern_ignorecase = Junk;Junk.*
>         antispam_trash_pattern_ignorecase = Trash;Deleted Items;Deleted
> Messages
> 
>         # Backend specific
>         antispam_backend = dspam
>         antispam_dspam_binary = /usr/bin/dspamc
>         antispam_dspam_args =
> --user;%u;--deliver=;--source=error;--signature=%%s
>         antispam_dspam_spam = --class=spam
>         antispam_dspam_notspam = --class=innocent
>         #antispam_dspam_result_header = X-DSPAM-Result
> }
> 
> 
> --
> Regards,
> 	Tom


More information about the dovecot mailing list