[Dovecot] Another dovecot-antispam plugin can't call dspam

Rob Klingsten bladex at coldstripe.com
Wed Nov 5 17:25:10 EET 2008


> Johannes Berg wrote:
>> On Wed, 2008-11-05 at 10:03 -0500, Rob Klingsten wrote:
>>> Hi folks -
>>>
>>> I am configuring a new system and the antispam plugin is the last 
>>> piece I need, everything else is working. Thanks to Johannes for this 
>>> plugin, it's exactly what I want and an elegant solution for filter 
>>> training. But I've been trying everything I can think of for the last 
>>> 3 days to get this to work, no success.
>>>
>>> I've got: Postfix 2.5.3, dspam 3.8.0, Dovecot 1.1.6, Maildrop 2.0.4 
>>> and dovecot-antispam 1.0 tarball.  I've built dspam from source with 
>>> --disable-trusted-user-security to try and isolate the source of the 
>>> plugin problem, which is the message at the IMAP client "Failed to 
>>> call dspam."
>>>
>>> Here's what I've got configured for the plugin:
>>
>> hmm. I wonder if there's a bug in debugv(), can you comment that call
>> out in dspam-exec.c?
>>
>> johannes
> 
> Aha, that's getting closer ... I still got the 'Failed to call dspam' 
> message, but dspam now seems to be called:
> 
> .
> .
> Nov  5 10:11:01 venus imap: antispam: "Spam" is spam folder
> Nov  5 10:11:01 venus imap: antispam: no unsure folders
> Nov  5 10:11:01 venus imap: antispam: dspam binary set to 
> /usr/local/bin/dspam
> Nov  5 10:11:01 venus imap: antispam: dspam extra arg --user rob at xxxx.org
> Nov  5 10:11:01 venus dovecot: IMAP(rob at xxxx.org): maildir: 
> data=/var/mail/janeandrob.org/rob
> Nov  5 10:11:01 venus dovecot: IMAP(rob at xxxx.org): maildir++: 
> root=/var/mail/xxxx.org/rob, index=, control=, inbox=/var/mail/xxxx.org/rob
> Nov  5 10:11:01 venus imap: antispam: signature header line is 
> "X-DSPAM-Signature"
> Nov  5 10:11:05 venus imap: antispam: mailbox_is_unsure(Spam): 0
> Nov  5 10:11:05 venus imap: antispam: mailbox_is_trash(INBOX): 0
> Nov  5 10:11:05 venus imap: antispam: mailbox_is_trash(Spam): 0
> Nov  5 10:11:05 venus imap: antispam: mail copy: from trash: 0, to trash: 0
> Nov  5 10:11:05 venus imap: antispam: mailbox_is_spam(INBOX): 0
> Nov  5 10:11:05 venus imap: antispam: mailbox_is_spam(Spam): 1
> Nov  5 10:11:05 venus imap: antispam: mailbox_is_unsure(INBOX): 0
> Nov  5 10:11:05 venus imap: antispam: mail copy: src spam: 0, dst spam: 
> 1, src unsure: 0
> Nov  5 10:11:05 venus dspam[834]: Unable to determine the destination user
> Nov  5 10:11:05 venus dspam[834]: DSPAM agent misconfigured: aborting
> 
> So now what happened to the arguments to dspam? Thanks very much for the 
> help!

Ok, I got it, it works!  The primary solution was to comment out 
debugv() in dspam-exec.c ...

Then, as suggested I put back in the semicolon in my extra arguments to 
dspam and bingo!

Thanks very much to Johannes and Thorsten V. for the suggestions and 
speedy solution!

Rob Klingsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5631 bytes
Desc: S/MIME Cryptographic Signature
Url : http://dovecot.org/pipermail/dovecot/attachments/20081105/1fce2aec/attachment-0001.bin 


More information about the dovecot mailing list