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-BlameMichelson (TRE 0.8.0 (BSD))"
My mail system is qmail that through .qmail default correctly tag with
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-27CA1CFB
X-CRM114-CacheID: sfid-20120927_105129_798028_B0035817
X-CRM114-Status: GOOD ( 28.64 ) headers
dovecot.conf is as follow:
plugin {
. . .
antispam_signature = X-CRM114-CacheID
antispam_verbose_debug = 1
antispam_debug_target = stderr
antispam_backend = crm114
antispam_signature_missing = error
antispam_trash = Trash
antispam_spam = SPAM
antispam_unsure = UNSURE
antispam_crm_binary = /opt/crm114/mailreaver.crm
antispam_crm_args = --fileprefix=/opt/crm114/
. . .
}
protocol imap {
. . .
mail_plugin_dir = /usr/local/lib/dovecot
mail_plugins = $mail_plugins quota imap_quota mail_log antispam
. . .
}
I have a sieve default compiled script that automatically put mails in
SPAM folder or UNSURE folder if respectively in message hedere there is
the evaluation of crm114 (UNSURE or SPAM).
When i move mails incorrectly tagged by crm (for example from SPAM to my
inbox or from UNSURE to SPAM) thunderbird (company official mail client
ver 15.01) go in error with the following message:
"Operation failed over folder 'UNSURE'. Server for account
davide.marchi at mail.cgilfe.it said: [CANNOT] Failed to call crm114
binary.."
I dont'know where is my mistake if someone can help me is much
appreciated Thank you
--
*/Davide Marchi
/Teorema Ferrara Srl
/(Tel: /**/+39 0532 783161)/**/
(Fax: +/**/39 0532 783368/**/)/**//**/
/**//**/Davide.Marchi at mail.cgilfe.it
<mailto:davide.marchi at mail.cgilfe.it?subject=Info>
/CONFIDENZIALITA? ***
Questo messaggio, inclusi gli eventuali allegati, ? indirizzato solo ai
destinatari e pu? contenere informazioni riservate e confidenziali. Se
avete ricevuto il messaggio senza esserne un destinatario, siete pregati
di non utilizzare, copiare o distribuire questo messaggio o i suoi
allegati. Se avete ricevuto il messaggio per errore, siete pregati di
cancellarlo dal vostro sistema, assieme a tutti gli allegati, e di
informare immediatamente il mittente,sia ai sensi dell'art. 616 c.p.,
sia ai sensi del DL n. 196/03.
*CONFIDENTIALITY***
This message and any attachments are intended only for the use of the
addressee(s) and may contain information that is privileged and/or
confidential. If the reader of the message is not the intended
recipient(s) or an authorized representative of the intended
recipient(s), please do not use, copy, distribute this email or its
attachments or take action based on them. If you have received this
communication in error, please notify us immediately by email and delete
the message and any attachments from your system.
*Teorema FerraraSrl - Via Spronello, 7 - 44121 Ferrara Italia - P. IVA
01244490387**
P**S**tampa questo messaggio solo se veramente necessario, pensa alla
natura! - Please consider whether it is necessary to print this e-mail*
On Thu, 27 Sep 2012 12:22:47 +0300, Davide <davide.marchi at mail.cgilfe.it> 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 crm114 for my last spam detection > filter "version 20100106-BlameMichelson (TRE 0.8.0 (BSD))" > My mail system is qmail that through .qmail default correctly tag with > X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-27CA1CFB > X-CRM114-CacheID: sfid-20120927_105129_798028_B0035817 > X-CRM114-Status: GOOD ( 28.64 ) headers...> "Operation failed over folder 'UNSURE'. Server for account > davide.marchi at mail.cgilfe.it said: [CANNOT] Failed to call crm114 > binary.."Did you see anything in syslog? If not, let's begin with the attached patch. -- Eugene Paskevich | *==)----------- | Plug me into eugene at raptor.kiev.ua | -----------(==* | The Matrix -------------- next part -------------- A non-text attachment was scrubbed... Name: crm_debug.patch Type: application/octet-stream Size: 694 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20121001/a39c7719/attachment-0004.obj>
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_antispam_plugin.so
but nothing inherit [CANNOT] Failed to call crm114 binary
Il 01/10/2012 12:07, Eugene Paskevich ha scritto:> On Mon, 01 Oct 2012 12:54:01 +0300, Davide
> <davide.marchi at mail.cgilfe.it> 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_path = /var/log/dovecot/dovecot.log
>> log_path = /var/log/dovecot/dovecot-err.log
>> debug_log_path >
> Did you notice that patch is mainly for i_debug() invocations? :-)
> Try sitting debug_log_path to something meaningful. And of course
> restart dovecot.
>
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 > <davide.marchi at mail.cgilfe.it> 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_path = /var/log/dovecot/dovecot.log >> log_path = /var/log/dovecot/dovecot-err.log >> debug_log_path > > Did you notice that patch is mainly for i_debug() invocations? :-) > Try sitting debug_log_path to something meaningful. And of course > restart dovecot. >
On Mon, 01 Oct 2012 13:58:23 +0300, Davide <davide.marchi at mail.cgilfe.it> 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 eugene at raptor.kiev.ua | -----------(==* | The Matrix
On Mon, 01 Oct 2012 13:57:14 +0300, Davide <davide.marchi at mail.cgilfe.it> 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: Debug: Module loaded: > /usr/local/lib/dovecot/lib90_antispam_plugin.so > > but nothing inherit [CANNOT] Failed to call crm114 binaryCould you please post the contents of the debug file somewhere? -- Eugene Paskevich | *==)----------- | Plug me into eugene at raptor.kiev.ua | -----------(==* | The Matrix
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 > <davide.marchi at mail.cgilfe.it> 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: Debug: Module loaded: >> /usr/local/lib/dovecot/lib90_antispam_plugin.so >> >> but nothing inherit [CANNOT] Failed to call crm114 binary > > Could you please post the contents of the debug file somewhere? >
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 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 >> <davide.marchi at mail.cgilfe.it> 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: Debug: Module loaded: >>> /usr/local/lib/dovecot/lib90_antispam_plugin.so >>> >>> but nothing inherit [CANNOT] Failed to call crm114 binary >> >> Could you please post the contents of the debug file somewhere? >>