[Dovecot] Dovecot antispam plugint got an empty message
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)
Message is copied from my INBOX to Junk folder, but dspam got an empty message and sent an error return code. So the moving operation is not successfull and the original message in INBOX was not deleted. 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.
Can you help me, please?
Petr Bravenec
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
Thank you, I have reconfigured my dovecot on gentoo and it looks now that it worked properly.
Regards, 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
participants (3)
-
Petr Bravenec
-
Petr Bravenec
-
Tom Hendrikx