[Dovecot] Dovecot antispam plugint got an empty message
Petr Bravenec
dovecot at bravenec.eu
Wed Jan 25 09:05:47 EET 2012
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
-------------- next part --------------
# 2.0.16: /etc/dovecot/dovecot.conf
# OS: Linux 3.1.6-gentoo x86_64 Gentoo Base System release 2.0.3 ext4
auth_mechanisms = plain login
base_dir = /var/run/dovecot/
dict {
acl = pgsql:/etc/dovecot/dovecot-acl.conf
}
disable_plaintext_auth = no
first_valid_gid = 98
first_valid_uid = 98
last_valid_gid = 98
last_valid_uid = 98
listen = *, [::]
mail_location = maildir:/home/dovecot/%u/maildir
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
namespace {
inbox = yes
location =
prefix =
separator = .
type = private
}
namespace {
inbox = no
list = children
location = maildir:/home/dovecot/%%n/maildir:INDEX=/home/dovecot/%n/shared/%%n
prefix = Ostatni.%%n.
separator = .
subscriptions = no
type = shared
}
namespace {
inbox = no
list = children
location = maildir:/home/dovecot/Sdilene/maildir:INDEX=/home/dovecot/%n/public
prefix = Sdilene.
separator = .
subscriptions = no
type = public
}
passdb {
args = session=yes
driver = pam
}
plugin {
acl = vfile
acl_shared_dict = proxy::acl
antispam_backend = dspam
antispam_dspam_args = --user;%u;--source=error
antispam_dspam_binary = /usr/bin/dspam
antispam_dspam_notspam = --class=innocent
antispam_dspam_result_header = X-DSPAM-Result
antispam_dspam_spam = --class=spam
antispam_mail_tmpdir = /tmp
antispam_signature = X-DSPAM-Signature
antispam_signature_missing = move
antispam_spam = Junk
antispam_trash = Trash
antispam_unsure =
sieve = /home/dovecot/%u/sieve.default
sieve_before = /etc/dovecot/sieve/dspam.sieve
sieve_dir = /home/dovecot/%u/sieve
}
protocols = imap sieve
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-master {
group = vmails
mode = 0660
user = dspam
}
unix_listener auth-userdb {
group = vmails
mode = 0660
user = dspam
}
user = root
}
service dict {
unix_listener dict {
group = vmails
mode = 0660
user = dspam
}
}
ssl_cert = </etc/ssl/mail/imap.bravenec.eu.crt
ssl_key = </etc/ssl/mail/imap.bravenec.eu.key
userdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
protocol imap {
mail_plugins = acl imap_acl antispam
}
protocol lda {
hostname = imap.bravenec.eu
mail_plugin_dir = /usr/lib/dovecot
mail_plugins = sieve acl
postmaster_address = postmaster at bravenec.eu
}
More information about the dovecot
mailing list