[Dovecot] dovecot-antispam plugin and "Failed to call dspam" message

2009-06-13 Thread Jeremy Doran
Hi,

I had this working until I recently upgraded Dovecot, and now I'm getting a 
message back from
Thunderbird of "Failed to call dspam." when I attempt to move a message into 
one of the designated
spam folders.

However, I know from looking at the dspam system.log file, the retraining 
actually happens - so it
-does- appear to be calling dspam. It appears that the 'move' operation fails.

Here's my configuration:
  dovecot 1.1.16 (built from ports)
  dovecot-antispam 1.1  (tried from ports as well as unmodified source)
  dspam 3.6.8 (built from ports)
  FreeBSD 7.1

Relevant sections from dovecot.conf:

protocol imap {
  mail_plugins = antispam
  mail_plugin_dir = /usr/local/lib/dovecot/imap
  ...
}

plugin {
  antispam_signature = X-DSPAM-Signature
  antispam_spam = SPAM;spam;Junk
  antispam_trash = Deleted Messages;Trash;INBOX.Trash
  antispam_dspam_binary = /usr/local/bin/dspam
  antispam_dspam_args = --deliver=;--user;%u
  ...
}

.config used by dovecot-antispam:
DOVECOT=/usr/ports/mail/dovecot/work/dovecot-1.1.16
BACKEND=dspam-exec
PLUGINNAME=antispam
DEBUG=syslog
DEBUG_VERBOSE=1

(I've tried it both with and without the DEBUG lines present in .config)

Plugin debug log when I attempt to move a message:
Jun 13 09:29:07 stelleri imap: antispam: mailbox_is_unsure(SPAM): 0
Jun 13 09:29:07 stelleri imap: antispam: mailbox_is_trash(INBOX): 0
Jun 13 09:29:07 stelleri imap: antispam: mailbox_is_trash(SPAM): 0
Jun 13 09:29:07 stelleri imap: antispam: mail copy: from trash: 0, to trash: 0
Jun 13 09:29:07 stelleri imap: antispam: mailbox_is_spam(INBOX): 0
Jun 13 09:29:07 stelleri imap: antispam: mailbox_is_spam(SPAM): 1
Jun 13 09:29:07 stelleri imap: antispam: mailbox_is_unsure(INBOX): 0
Jun 13 09:29:07 stelleri imap: antispam: mail copy: src spam: 0, dst spam: 1, 
src unsure: 0
Jun 13 09:29:07 stelleri imap: antispam: /usr/local/bin/dspam --source=error 
--class=spam
--signature=4a339984859385209328925 --deliver= --user frysco

Associated log from dspam system.log:
1244903347  M   4a339984859385209328925 
0.066815frysco  Retrained


Any help appreciated,

Thanks,
-jcd


Re: [Dovecot] auth_cache multiple passwords ?

2009-06-13 Thread Geoffroy Desvernay
Timo Sirainen a écrit :
> On Jun 12, 2009, at 9:45 AM, Geoffroy Desvernay wrote:
> 
>> For a single webmail connection par login, it work, thanks to cache_key
>> using client's IP.
>>
>> But for multiple use of the same login in the webmail, there are more
>> than one 'password' valid at a time…
>>
>> What may be the 'correct' solution:
> 
> The only usable solution I see is to disable negative auth caching and
> use this patch from v1.2:
> http://hg.dovecot.org/dovecot-1.2/rev/8a23ab43132a
> 
I'll try to patch 1.1.16 with this patch and report here, thanks !




signature.asc
Description: OpenPGP digital signature


[Dovecot] Dovecot v1.2.rc5 dbox file permissions

2009-06-13 Thread Pascal Volk
Hi Timo,

I've just setup Dovecot v1.2.rc5 and switched the mailbox format of one
account to dbox. Therefor I've created an empty directory, called dbox,
with access mode 0700, like the user's home directory.
After the IMAP login with Thunderbird some dboxes was created. All
permissions were set fine (0700 / 0600), except the permissions for the
files:
* ~/dbox/mailboxes/$FOLDERNAME/dbox-Mails/dbox.index
* ~/dbox/mailboxes/$FOLDERNAME/dbox-Mails/dovecot.index.log

Those files have the access mode 0666.


Regards,
Pascal
-- 
The trapper recommends today: cafebabe.0916...@localdomain.org


[Dovecot] dovecot-1.2-managesieve sieve_dir permissions

2009-06-13 Thread Pascal Volk
Hi Stephan,

I've compiled the latest managesieve code from Sun May 17th 2009.
ManageSieve had created the sieve directory with 0770 permissions, but
the user's home directory has only 0700 permissions.
With dovecot-1.{0,1}-managesieve the permissions was set properly.


Regards,
Pascal
-- 
The trapper recommends today: cafebabe.0916...@localdomain.org


Re: [Dovecot] dovecot-antispam plugin and "Failed to call dspam" message

2009-06-13 Thread Marcin Rzepecki
Sat, Jun 13, 2009 at 07:34:49AM -0700, Jeremy Doran wrote:
> Hi,
> 
> I had this working until I recently upgraded Dovecot, and now I'm getting a 
> message back from
> Thunderbird of "Failed to call dspam." when I attempt to move a message into 
> one of the designated
> spam folders.
>
> However, I know from looking at the dspam system.log file, the retraining 
> actually happens - so it
> -does- appear to be calling dspam. It appears that the 'move' operation fails.
> [...]

Hi Jeremy,
i've tried to figure it out some time ago. As you mentioned, dspam is
called ok, however error is still reported.
I'm applying following patch to avoid reporting error and all is working
great for me. I'm using dspam-devel version, but it should not make no
difference.

#v+
--- dspam-exec.c.orig   2008-11-11 16:02:20.0 +0100
+++ dspam-exec.c2008-11-11 16:02:30.0 +0100
@@ -178,13 +178,14 @@
int ret = 0;
 
while (item) {
-   if (call_dspam(item->sig, item->wanted)) {
+   /*  if (call_dspam(item->sig, item->wanted)) {
ret = -1;
mail_storage_set_error(ctx->box->storage,
   ME(NOTPOSSIBLE)
   "Failed to call dspam");
break;
-   }
+   } */
+   call_dspam(item->sig, item->wanted);
item = item->next;
}
 
#v-

Cheers,

-- 
Marcin Rzepecki
m.rzepecki(at)iem.pw.edu.pl



Re: [Dovecot] dovecot-antispam plugin and "Failed to call dspam" message

2009-06-13 Thread Harlan Stenn
It is probably a good idea to figure out the underlying problem instead
of ignoring it.

I use the following patch...

H


patch-dspam-exec.c
Description: Binary data


Re: [Dovecot] dovecot-antispam plugin and "Failed to call dspam" message

2009-06-13 Thread Jeremy Doran
Harlan Stenn wrote:
> It is probably a good idea to figure out the underlying problem instead
> of ignoring it.
> 
> I use the following patch...

Oh, I agree.

The extra logging only produced these extra lines in the logs:

> Jun 13 15:35:18 stelleri imap: antispam: mailbox_is_unsure(SPAM): 0
> Jun 13 15:35:18 stelleri imap: antispam: mailbox_is_trash(INBOX): 0
> Jun 13 15:35:18 stelleri imap: antispam: mailbox_is_trash(SPAM): 0
> Jun 13 15:35:18 stelleri imap: antispam: mail copy: from trash: 0, to trash: 0
> Jun 13 15:35:18 stelleri imap: antispam: mailbox_is_spam(INBOX): 0
> Jun 13 15:35:18 stelleri imap: antispam: mailbox_is_spam(SPAM): 1
> Jun 13 15:35:18 stelleri imap: antispam: mailbox_is_unsure(INBOX): 0
> Jun 13 15:35:18 stelleri imap: antispam: mail copy: src spam: 0, dst spam: 1, 
> src unsure: 0
> Jun 13 15:35:18 stelleri imap: antispam: /usr/local/bin/dspam --source=error 
> --class=spam --signature=4a339984859385209328925 --deliver= --user frysco 
> Jun 13 15:35:18 stelleri imap: antispam: error: dspam returned <57397: 
> [06/13/2009 15:35:18] query error: VERBOSE DEBUG (INFO ONLY - NOT AN ERROR): 
> see sql.errors for more details >
> Jun 13 15:35:18 stelleri imap: antispam: error: dspam returned <57397: 
> [06/13/2009 15:35:18] query error: VERBOSE DEBUG (INFO ONLY - NOT AN ERROR): 
> see sql.errors for more details >

Could the plugin be getting hung up on the 'verbose debug' messages that
dspam seems to be insistent upon producing? (I'm not sure how to disable
the writing to sql.errors)

Thanks,
-jcd


Re: [Dovecot] dovecot-antispam plugin and "Failed to call dspam" message

2009-06-13 Thread Jeremy Doran
Marcin Rzepecki wrote:
> Sat, Jun 13, 2009 at 07:34:49AM -0700, Jeremy Doran wrote:
>> Hi,
>>
>> I had this working until I recently upgraded Dovecot, and now I'm getting a 
>> message back from
>> Thunderbird of "Failed to call dspam." when I attempt to move a message into 
>> one of the designated
>> spam folders.
>>
>> However, I know from looking at the dspam system.log file, the retraining 
>> actually happens - so it
>> -does- appear to be calling dspam. It appears that the 'move' operation 
>> fails.
>> [...]
> 
> Hi Jeremy,
> i've tried to figure it out some time ago. As you mentioned, dspam is
> called ok, however error is still reported.
> I'm applying following patch to avoid reporting error and all is working
> great for me. I'm using dspam-devel version, but it should not make no
> difference.
> 

This did suppress the error and the move to the 'spam' mailbox succeeded.

Though, it would be good to know why it trips over.

Thanks,
-jcd


Re: [Dovecot] dovecot-antispam plugin and "Failed to call dspam" message

2009-06-13 Thread Harlan Stenn
Note that according to dspam-exec.c, and info sent to stderr by dspam is
treated by the antispam plugin as a fatal error.

All my patch does is to provide enough information to see what the
problem is.

H


[Dovecot] Error compile dovecot 1.1.16

2009-06-13 Thread Yanmarshus
/* sorry, my english is bad :-( */

There's error i found while compile dovecot 1.1.16
Compiling run on Slackware 12.2 (fresh install)

Error in src/dict/main.c line 85 and line 102
   dict_drivers_register_all();
and
   dict_drivers_unregister_all();

I know C so little, and try to add these line to dict.h

void dict_drivers_register_all(void)
void dict_drivers_unregister_all(void)

After this patch, compiling run without error
My question, is that right solution ?

Thanks.





Re: [Dovecot] Error compile dovecot 1.1.16

2009-06-13 Thread Pascal Volk
On 06/13/2009 01:35 AM Yanmarshus wrote:
> /* sorry, my english is bad :-( */
> 
> There's error i found while compile dovecot 1.1.16
> Compiling run on Slackware 12.2 (fresh install)
> 
> Error in src/dict/main.c line 85 and line 102
>dict_drivers_register_all();
> and
>dict_drivers_unregister_all();
> 
> I know C so little, and try to add these line to dict.h
> 
> void dict_drivers_register_all(void)
> void dict_drivers_unregister_all(void)
> 
> After this patch, compiling run without error
> My question, is that right solution ?
> 
> Thanks.

Huh, what have you done and _how_?
What was the exact error message?

The prototypes are already there, src/lib-dict/dict.h:23-24

Which make (make -v) and gcc (gcc --version) are you using?
How did you run the configure script (config.log:7)?


Regards,
Pascal
-- 
The trapper recommends today: c01dcofe.0916...@localdomain.org