Re: [Dovecot] dovecot-antispam plugin problem with multiple messages

2013-11-29 Thread Richard Platel
This seems to fix the issue --- a/dovecot-antispam-plugin/src/antispam-storage-2.0.c +++ b/dovecot-antispam-plugin/src/antispam-storage-2.0.c @@ -91,15 +91,6 @@ antispam_copy(struct mail_save_context *ctx, struct mail *mai int ret; bool src_trash, dst_trash; - if (!ctx->dest

[Dovecot] dovecot-antispam plugin problem with multiple messages

2013-11-27 Thread Richard Platel
Hi With dovecot 2.2.5, and dovecot-antispam built from a recent HEAD pull, when copying multiple messages to or from a Spam folder, the plugin sends multiple copies of the first message to the backend. I've tried this with the pipe and spool2dir backends. For example with the spool2dir backen

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-02 Thread Davide
I'm unable to output nothing to syslog nor in other dovecot's log files about problem of plugin. If i use the test server the output is this: Oct 2 10:38:34 debnew imap: antispam: mailbox_is_unsure(SPAM): 0 Oct 2 10:38:34 debnew imap: antispam: mailbox_is_trash(INBOX): 0 Oct 2 10:38:34 debnew

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-01 Thread Davide
I made an experiment because iwasn't able to output some error to syslog or stderr about my configuration... I've installed antispam plugin in a parallel server with the program of johannes Bergs that seem now upgraded to function with 2.X and i have same problem ("Failed to call crm114 binary..

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-01 Thread Eugene Paskevich
On Mon, 01 Oct 2012 14:48:31 +0300, Davide wrote: Can i attach compressed log in a post? If it's of the sane size :-) But I'm actually interested in the output which was triggered by the mail move itself. I can produce output replacing crm binary with a script bash to ouput command,us

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-01 Thread Davide
Restarting Dovecot instead to use doveadm reload i hav strange error: managesieve(root): Fatal: getcwd() failed: No such file or directory doveconf: Error: managesieve-login: dump-capability process returned 89 Il 01/10/2012 13:48, Davide ha scritto: Can i attach compressed log in a post? I c

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-01 Thread Davide
Can i attach compressed log in a post? I can produce output replacing crm binary with a script bash to ouput command,user etc etc Il 01/10/2012 13:01, Eugene Paskevich ha scritto: On Mon, 01 Oct 2012 13:57:14 +0300, Davide wrote: I deleted antispam_verbose_debug = 1 antispam_debu

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-01 Thread Eugene Paskevich
On Mon, 01 Oct 2012 13:57:14 +0300, Davide wrote: I deleted antispam_verbose_debug = 1 antispam_debug_target = syslog from dovecot.conf and i added debug_log_path = /var/log/dovecot/dovecot_debug.log restarted dovecot and now i see in the debug log 2012-10-01 12:33:31 imap:

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-01 Thread Eugene Paskevich
On Mon, 01 Oct 2012 13:58:23 +0300, Davide wrote: Parameters i.e. antispam_crm_binary = /opt/crm114/mailreaver.crm must be enclosed on ""? so antispam_crm_binary = "/opt/crm114/mailreaver.crm" No. -- Eugene Paskevich | *==)--- | Plug me into eug...@raptor.kiev.u

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-01 Thread Davide
Parameters i.e. antispam_crm_binary = /opt/crm114/mailreaver.crm must be enclosed on ""? so antispam_crm_binary = "/opt/crm114/mailreaver.crm" Il 01/10/2012 12:07, Eugene Paskevich ha scritto: On Mon, 01 Oct 2012 12:54:01 +0300, Davide wrote: this is my dovecot configuration for antispam plu

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-01 Thread Davide
I deleted antispam_verbose_debug = 1 antispam_debug_target = syslog from dovecot.conf and i added debug_log_path = /var/log/dovecot/dovecot_debug.log restarted dovecot and now i see in the debug log 2012-10-01 12:33:31 imap: Debug: Module loaded: /usr/local/lib/dovecot/lib90_antisp

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-01 Thread Eugene Paskevich
On Mon, 01 Oct 2012 12:54:01 +0300, Davide wrote: this is my dovecot configuration for antispam plugin logging: antispam_verbose_debug = 1 antispam_debug_target = syslog Neither my plugin nor (I believe) main dovecot reads those two. You can remove them. and this is info_log_p

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-01 Thread Davide
this is my dovecot configuration for antispam plugin logging: antispam_verbose_debug = 1 antispam_debug_target = syslog and this is info_log_path = /var/log/dovecot/dovecot.log log_path = /var/log/dovecot/dovecot-err.log debug_log_path = Il 01/10/2012 11:20, Eugene Paskevich ha scritt

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-01 Thread Eugene Paskevich
On Mon, 01 Oct 2012 12:00:14 +0300, Davide wrote: Thank you very much for the reply, i' have installed the supplied patch with the following command: - patch -p1 -i ../crm_debug.patch (i'm in the cloned base directory) i compile the plugin and all go easy i move my wrongly tagged mail fro

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-01 Thread Davide
I have recived an empty message in response Il 01/10/2012 11:04, Davide ha scritto: I downloaded and applaied the patch in the message 01:16 of 716 bytes: diff -r 7f94cc6b4d8e src/crm114.c --- a/src/crm114.cFri May 11 04:05:59 2012 +0300 +++ b/src/crm114.cMon Oct 01 02:15:40 2012 +0300

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-01 Thread Davide
I downloaded and applaied the patch in the message 01:16 of 716 bytes: diff -r 7f94cc6b4d8e src/crm114.c --- a/src/crm114.c Fri May 11 04:05:59 2012 +0300 +++ b/src/crm114.c Mon Oct 01 02:15:40 2012 +0300 @@ -56,11 +56,17 @@ * really only needs the signature. */ if (pip

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-10-01 Thread Davide
Thank you very much for the reply, i' have installed the supplied patch with the following command: - patch -p1 -i ../crm_debug.patch (i'm in the cloned base directory) i compile the plugin and all go easy i move my wrongly tagged mail from UNSURE to INBOX and thunderbird tell me ..blah..blah.

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-09-30 Thread Eugene Paskevich
On Mon, 01 Oct 2012 02:07:25 +0300, Eugene Paskevich wrote: Did you see anything in syslog? If not, let's begin with the attached patch. Ouch... too sleepy. Here's the correct patch. -- Eugene Paskevich | *==)--- | Plug me into eug...@raptor.kiev.ua| -

Re: [Dovecot] Antispam plugin problem (CRM114)

2012-09-30 Thread Eugene Paskevich
On Thu, 27 Sep 2012 12:22:47 +0300, Davide wrote: Hi to all, sorry in advance for my poor english, this is the first time that i wrote to a list if i make mistake excuseme. My problem is this: i have dovecot 2.1.8 installed and functioning from 2 years one week ago i have installed cr

[Dovecot] Antispam plugin problem (CRM114)

2012-09-27 Thread Davide
Hi to all, sorry in advance for my poor english, this is the first time that i wrote to a list if i make mistake excuseme. My problem is this: i have dovecot 2.1.8 installed and functioning from 2 years one week ago i have installed crm114 for my last spam detection filter "version 20100106

Re: [Dovecot] dovecot-antispam-plugin problem

2010-10-23 Thread Lars Stavholm
On Sun, Oct 24, 2010 at 12:00:51AM +0200, Tom Hendrikx wrote: > On 23/10/10 22:00, Bradley Giesbrecht wrote: > > On Oct 23, 2010, at 12:03 PM, Lars Stavholm wrote: > > > >> Hi All, > >> > >> anyone been able to use the dovecot-antispam-plugin from > >> http://hg.dovecot.org with dovecot-2.0.x? > >

Re: [Dovecot] dovecot-antispam-plugin problem

2010-10-23 Thread Tom Hendrikx
On 23/10/10 22:00, Bradley Giesbrecht wrote: > On Oct 23, 2010, at 12:03 PM, Lars Stavholm wrote: > >> Hi All, >> >> anyone been able to use the dovecot-antispam-plugin from >> http://hg.dovecot.org with dovecot-2.0.x? >> >> Any input appreciated >> >> R >> /Lars Stavholm > > > +1 > > Sorry tha

Re: [Dovecot] dovecot-antispam-plugin problem

2010-10-23 Thread Bradley Giesbrecht
On Oct 23, 2010, at 12:03 PM, Lars Stavholm wrote: Hi All, anyone been able to use the dovecot-antispam-plugin from http://hg.dovecot.org with dovecot-2.0.x? Any input appreciated R /Lars Stavholm +1 Sorry that I have no input other then to add to the interest. Brad

[Dovecot] dovecot-antispam-plugin problem

2010-10-23 Thread Lars Stavholm
Hi All, anyone been able to use the dovecot-antispam-plugin from http://hg.dovecot.org with dovecot-2.0.x? Any input appreciated R /Lars Stavholm

Re: [Dovecot] antispam plugin problem

2010-05-13 Thread Steve
Original-Nachricht > Datum: Tue, 11 May 2010 13:36:57 +0600 > Von: Danila > An: dovecot@dovecot.org > Betreff: Re: [Dovecot] antispam plugin problem > Hi > Dovecot running as user dovecot > > %> grep dovecot /usr/local/etc/dspam.conf > Trust do

Re: [Dovecot] antispam plugin problem

2010-05-11 Thread Danila
All has dared addition ";" in an option --user i.e. --user;vmail Regards On 14:27 Tue 11 May , Philipp Haselwarter wrote: > why are dspam error code such a mystery anyways? does anyone know if a > somewhat comprehensive listing exists somewhere? > > > - Urspr??ngliche Mitteilung - > > >

Re: [Dovecot] antispam plugin problem

2010-05-11 Thread Philipp Haselwarter
why are dspam error code such a mystery anyways? does anyone know if a somewhat comprehensive listing exists somewhere? - Ursprüngliche Mitteilung - > > On 11/05/10 12:57, Danila wrote: > > With it I have already understood having added the user vmail in mail group, > > but all the same

Re: [Dovecot] antispam plugin problem

2010-05-11 Thread Tom Hendrikx
On 11/05/10 12:57, Danila wrote: > With it I have already understood having added the user vmail in mail group, > but all the same mutt produces an error "Failed to call dspam" and does not > wish to move the letter to a directory a spam. In log now here so: The --user option of dspam sets the

Re: [Dovecot] antispam plugin problem

2010-05-11 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 11 May 2010, Danila wrote: With it I have already understood having added the user vmail in mail group, but all the same mutt produces an error "Failed to call dspam" and does not wish to move the letter to a directory a spam. In log now

Re: [Dovecot] antispam plugin problem

2010-05-11 Thread Danila
With it I have already understood having added the user vmail in mail group, but all the same mutt produces an error "Failed to call dspam" and does not wish to move the letter to a directory a spam. In log now here so: May 11 14:51:50 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, sr

Re: [Dovecot] antispam plugin problem

2010-05-11 Thread Danila
Nothing happens #> su vmail -c "/usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail" #> On 10:05 Tue 11 May , Steffen Kaiser wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Tue, 11 May 2010, Danila wrote: > > > On 01:18 Tue

Re: [Dovecot] antispam plugin problem

2010-05-11 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 11 May 2010, Danila wrote: On 01:18 Tue 11 May , Trever L. Adams wrote: On 05/11/2010 12:02 AM, Danila wrote: May 11 10:54:09 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 May 11 10:54:09 evil imap: antispam: /u

Re: [Dovecot] antispam plugin problem

2010-05-11 Thread Danila
Hi Dovecot running as user dovecot %> grep dovecot /usr/local/etc/dspam.conf Trust dovecot On 01:18 Tue 11 May , Trever L. Adams wrote: > On 05/11/2010 12:02 AM, Danila wrote: > > > > May 11 10:54:09 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, > > src unsure: 0 > > May 11 10:54:09

Re: [Dovecot] antispam plugin problem

2010-05-11 Thread Trever L. Adams
On 05/11/2010 12:02 AM, Danila wrote: > > May 11 10:54:09 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src > unsure: 0 > May 11 10:54:09 evil imap: antispam: /usr/local/bin/dspam --source=error > --class=spam --signature=4be87a9f953248352114216 --client --user vmail > May 11 10:54:09

[Dovecot] antispam plugin problem

2010-05-10 Thread Danila
Hi I have installed a plug-in an antispam and when I try to move the message to a folder a spam mutt produces an error "Failed to call dspam." Here's my configuration(all built from ports): dovecot 1.2.11 dovecot-antispam 1.2_4,1 dspam 3.9.0_1 FreeBSD 8.0 Relevant sections from dovecot.

Re: [Dovecot] antispam plugin problem

2008-11-01 Thread Eugene
Hi Johannes, > This is the captured output of forked process > Oct 26 02:37:12 qsar imap: antispam: dspam returned: ^APdata stack: Out > of > memory when allocating 1073741840 bytes > If I understand correctly, this message is produced by dovecot before it > should have launched dspam executa

Re: [Dovecot] antispam plugin problem

2008-11-01 Thread Johannes Berg
On Sat, 2008-11-01 at 14:25 +0300, Eugene wrote: > This is the output of debug("calling dspam: %s %s %s %s %s %s %s", argv[0], > argv[1], argv[2], argv[3], argv[4], argv[5], argv[6]); > (debugv(argv) does not produce any output for some reason) > Oct 26 02:37:12 q imap: antispam: calling dspa

[Dovecot] antispam plugin problem

2008-11-01 Thread Eugene
Hi people! (Especially Johannes, probably =) I recently switched to DSPAM + antispam plugin combination. Mostly I am happy but there is a problem with calling dspam-exec in order to relearn the messages. Moving messages to spam folder does not work, giving the error message 'Failed to call dspam'

Re: [Dovecot] antispam plugin problem with dspam

2008-09-09 Thread Damian Lubosch
Harlan Stenn schrieb: > I got it working. > > I got it, too! :-) > The antispam plugin cannot exec the dspam binary. Choices include > figuring out what user/group are needed (dspam is suid root, executable > by the root or the mail group only, and dovecot will exec it as > virtual/virtual), o

Re: [Dovecot] antispam plugin problem with dspam

2008-09-08 Thread Harlan Stenn
I got it working. Here are the problems I fixed, and it would have been *lots* easier if the dovecot antispam plugin had better error/debug logging. Johannes, I can work on a patch for the following if you prefer, and I'd much rather spend my time getting ntp-4.2.6 out the door. Getting this wor

Re: [Dovecot] antispam plugin problem with dspam

2008-09-08 Thread Johannes Berg
> So it seems that dovecot seemed not to be able to run dspam. I enabled a > shell (temporarly) for dovecot and run dspam from there, and it > succeeded. It just doesn't work from the plugin. > > What could I check next? I really like the idea behind the plugin and > would like have it working.

Re: [Dovecot] antispam plugin problem with dspam

2008-09-08 Thread Damian Lubosch
Harlan Stenn schrieb: > I'm trying to use the dovecot antispam plugin with dspam. > > I'm running dovecot 1.1.2. > > Using thunderbird and IMAP, when I drag a spam message from the inbox > into the SPAM folder, I get a popup saying "The current command did not > succeed. The mail server responde

Re: [Dovecot] antispam plugin problem with dspam

2008-09-07 Thread mouss
Harlan Stenn wrote: Would it be better if the antispam plugin logged whatever stderr output came from the dspam invocation? I'd say yes. I don't seen any kind of error that should be shown to a "normal" user.

Re: [Dovecot] antispam plugin problem with dspam

2008-09-07 Thread mouss
Harlan Stenn wrote: I'm trying to use the dovecot antispam plugin with dspam. I'm running dovecot 1.1.2. Using thunderbird and IMAP, when I drag a spam message from the inbox into the SPAM folder, I get a popup saying "The current command did not succeed. The mail server responded: antispam si

Re: [Dovecot] antispam plugin problem with dspam

2008-09-04 Thread Harlan Stenn
Would it be better if the antispam plugin logged whatever stderr output came from the dspam invocation? H

[Dovecot] antispam plugin problem with dspam

2008-09-04 Thread Harlan Stenn
I'm trying to use the dovecot antispam plugin with dspam. I'm running dovecot 1.1.2. Using thunderbird and IMAP, when I drag a spam message from the inbox into the SPAM folder, I get a popup saying "The current command did not succeed. The mail server responded: antispam signature not found. Wh