[Dovecot] Dovecot 2.2.7/2.2.8 failing to call dspam with antispam

Guillaume Hilt ghilt at shadowprojects.org
Mon Nov 25 14:17:22 EET 2013


     Hello again,

I'm running Gentoo AMD64 2013 with postfix, mysql, dovecot and dspam :
dovecot 2.2.8 (it was working fine with 2.2.6 after doing a chmod 4511 
on dspam binary), dspam 3.10.2-r1 and dovecot-antispam-2.0_pre20130429 
(recompiled after each dovecot upgrade).

I've set dspam to debug, and mail_debug to yes.

uid 1001 is user vmail (dovecot is running under vmail)
gid 12 is group mail (vmail is a member, with 
mail,postfix,dspam,dovecot,apache)
All the necessary users are trusted in dspam configuration.

Here's my plugin settings :
antispam_verbose_debug = 1
antispam_debug_target = syslog
antispam_backend = dspam
antispam_allow_append_to_spam = NO
antispam_skip_from_line = NO
antispam_spam = Spam
antispam_trash = Trash
antispam_signature = X-DSPAM-Signature
antispam_signature_missing = error
antispam_dspam_binary = /usr/bin/dspam
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

When i'm moving an email to the dspam folder, Thunderbird throw me an 
error : Failed to call dspam (email is dropped in the Spam folder 
anyway, but a copy stay on my INBOX)

==> /var/log/mail/mail/log <==
Nov 25 13:01:04 srv1 dovecot: imap: Debug: Loading modules from 
directory: /usr/lib64/dovecot
Nov 25 13:01:04 srv1 dovecot: imap: Debug: Module loaded: 
/usr/lib64/dovecot/lib90_antispam_plugin.so
Nov 25 13:01:04 srv1 dovecot: imap: Debug: Added userdb setting: 
plugin/maildir=shadowprojects.org/ghilt/
Nov 25 13:01:04 srv1 dovecot: imap(ghilt at shadowprojects.org): Debug: 
Effective uid=1001, gid=12, home=/home/vmail/shadowprojects.org/ghilt/
Nov 25 13:01:04 srv1 dovecot: imap(ghilt at shadowprojects.org): Debug: 
Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, 
list=yes, subscriptions=yes 
location=maildir:/home/vmail/shadowprojects.org/ghilt/.maildir
Nov 25 13:01:04 srv1 dovecot: imap(ghilt at shadowprojects.org): Debug: 
maildir++: root=/home/vmail/shadowprojects.org/ghilt/.maildir, index=, 
indexpvt=, control=, 
inbox=/home/vmail/shadowprojects.org/ghilt/.maildir, alt=
Nov 25 13:01:04 srv1 dovecot: imap(ghilt at shadowprojects.org): Debug: 
Namespace : Using permissions from 
/home/vmail/shadowprojects.org/ghilt/.maildir: mode=0770 gid=default
Nov 25 13:01:04 srv1 dovecot: imap(ghilt at shadowprojects.org): Debug: 
dspam error:29764 prefix=imap(ghilt at shadowprojects.org):
Nov 25 13:01:04 srv1 dovecot: imap(ghilt at shadowprojects.org): Debug: 
executing /usr/bin/dspam failed: 13 (uid=1001, gid=12)
Nov 25 13:01:04 srv1 dovecot: imap: Error:
Nov 25 13:01:04 srv1 dovecot: imap: Error:

==> /var/log/dspam/dspam.debug <==
9976: [11/25/2013 13:12:23] DSPAM Instance Startup
9976: [11/25/2013 13:12:23] input args: /usr/bin/dspam --user 
ghilt at shadowprojects.org --deliver= --source=error 
--signature=89,52900600118151560172939 --class=spam
9976: [11/25/2013 13:12:23] pass-thru args:
9976: [11/25/2013 13:12:23] processing user ghilt at shadowprojects.org
9976: [11/25/2013 13:12:23] uid = 1001, euid = 0, gid = 12, egid = 12
9976: [11/25/2013 13:12:23] loading preferences for user 
ghilt at shadowprojects.org
...
9976: [11/25/2013 13:06:08] DSPAM Instance Shutdown.  Exit Code: 99
9976: [11/25/2013 13:06:08] process_users() failed on error 9

If i try to call dspam like this, it works :
sudo -u vmail /usr/bin/dspam --source=error --class=spam 
--signature=4be87a9f953248352114216 --client --user vmail

Any idea ?

Thanks,

-- 
   Guillaume Hilt



More information about the dovecot mailing list