Re: sieve plugin editheader not found

2015-04-08 Thread Eugene Paskevich

On 04/08/2015 05:53 PM, Patrick Lion wrote:

Hey folks,

ive already made a bug report in the gentoo bugtracker last year. In the
meantime after some releases the error persists with the current dovecot
and pigeonhole versions.

Please see my bug report at gentoo mailinglist:

https://bugs.gentoo.org/show_bug.cgi?id=522148

Okay, here are some informations:

Steps to Reproduce:

add "editheader" to sieve options or "sievec" a file that need the extension

if header :matches "Something" "*" {
addheader "Anything" "${1}";
deleteheader "Something";
}

sievec mod_header.sieve
sievec(root): Fatal: Plugin 'editheader' not found from directory
/usr/lib64/dovecot/sieve



dovecot --version
2.2.16

pigeonhole-0.4.7 sources got downloaded and used in the build process

dovecot -n

# 2.2.16: /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.7
# OS: Linux 2.6.32-openvz-042stab102.9-amd64 x86_64 Gentoo Base System
release 2.2
auth_mechanisms = plain login
auth_socket_path = /var/run/dovecot/auth-userdb
auth_verbose = yes
dict {
   quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
disable_plaintext_auth = no
imap_capability = CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE IDLE SORT
SORT=DISPLAY THREAD=REFERENCES THREAD=ORDEREDSUBJECT CHILDREN NAMESPACE
UIDPLUS LIST-EXTENDED CONTEXT=SEARCH LIST-STATUS SPECIAL-USE XLIST QUOTA
info_log_path = syslog
login_log_format_elements = user=<%u> method=%m ip=%r mpid=%e
mail_location = maildir:%h/.maildir
mail_plugins = quota
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags
copy include body enotify environment mailbox date index ihave duplicate
imapflags notify
namespace compat {
   alias_for =
   hidden = yes
   inbox = no
   list = no
   location =
   prefix = INBOX.
   separator = .
}
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
 special_use = \Drafts
   }
   mailbox Junk {
 special_use = \Junk
   }
   mailbox Sent {
 special_use = \Sent
   }
   mailbox "Sent Messages" {
 special_use = \Sent
   }
   mailbox Trash {
 special_use = \Trash
   }
   prefix =
   separator = /
}
passdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
}
plugin {
   args = /etc/dovecot/dovecot-sql.conf.ext
   quota = maildir
   quota_rule2 = trash:storage=+150M
   quota_warning = storage=95%% quota-warning 95 %u
   quota_warning2 = storage=80%% quota-warning 80 %u
   sieve = ~/.dovecot.sieve
   sieve_dir = ~/sieve
   sieve_extensions = +notify +imapflags
   sieve_global_extensions = variables
}
postmaster_address = mailer-daemon@dev.someserver
service auth {
   unix_listener /var/spool/postfix/private/auth {
 group = mail
 mode = 0660
 user = postfix
   }
   unix_listener auth-userdb {
 group = mail
 mode = 0660
 user = postfix
   }
}
service lmtp {
   unix_listener /var/spool/postfix/private/dovecot-lmtp {
 group = postfix
 mode = 0660
 user = postfix
   }
}
service quota-warning {
   executable = script /etc/postfix/quota-warning.sh
   unix_listener quota-warning {
 group = hosting
 mode = 0660
 user = postfix
   }
   user = postfix
}
ssl_cert = 

I'm not using gentoo, but here on Debian everything works as expected.

eugene@hopper[pts/4]:~> locate editheader
/usr/share/doc/dovecot-core/sieve/extensions/editheader.txt

That is a txt version of
http://wiki2.dovecot.org/Pigeonhole/Sieve/Extensions/Editheader

eugene@hopper[pts/4]:~> doveconf -a | grep sieve
  sieve = ~/.sieve/.current
  sieve_dir = ~/.sieve
  sieve_global_dir = /etc/dovecot/sieve
  mail_plugins = " sieve

eugene@hopper[pts/4]:~> cat test.sieve
require ["editheader"];

if header :matches "Something" "*" {
addheader "Anything" "${1}";
deleteheader "Something";
}


Notice that require line.

eugene@hopper[pts/4]:~> sievec -d -x +editheader test.sieve -

* Script metadata (block: 0):

class = file
class.version = 0
location = /home/eugene/test.sieve

* Required extensions (block: 1):

  0: editheader (id: 30)

* Main program (block: 2):

Address   Line  Code
:   DEBUG BLOCK: 3
0001:   EXTENSIONS [1]:
0002: editheader
0003:3: HEADER
0006: match type: matches
0009: header names: STR[9] "Something"
0015: key list: STR[1] "*"
0019:3: JMPFALSE 39 [0041]
001e:4: addheader
0020: field-name: STR[8] "Anything"
002b: value: STR[4] "${1}"
0032:5: DELETEHEADER
0034: field name: STR[9] "Something"
0041:5: [End of code]

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


Re: sieve plugin editheader not found

2015-04-11 Thread Eugene Paskevich

On 04/11/2015 04:26 PM, Patrick Lion wrote:


   sieve_extensions = +notify +imapflags
   sieve_plugins = editheader


Editheader is not a plugin. It's an extension.
Ergo, if you put +editheader into sieve_extensions
sievec -x flag won't be necessary. Require line will be though.

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


Panic in service(log)

2015-08-27 Thread Eugene Paskevich

Hello,

I'm using the Debian builds of dovecot-2.2 by S[r]us.
Today I started getting the following panic:

log: Panic: file priorityq.c: line 122 (priorityq_remove_idx): assertion 
failed: (idx < count)


log: Error: Raw backtrace:
/usr/lib/dovecot/libdovecot.so.0(+0x7f1ae) [0x7fd368dc31ae] ->
/usr/lib/dovecot/libdovecot.so.0(+0x7f269) [0x7fd368dc3269] ->
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7fd368d6c81e] ->
/usr/lib/dovecot/libdovecot.so.0(+0xa0de8) [0x7fd368de4de8] ->
/usr/lib/dovecot/libdovecot.so.0(priorityq_remove+0xb) [0x7fd368de4eeb] ->
/usr/lib/dovecot/libdovecot.so.0(+0x9179c) [0x7fd368dd579c] ->
/usr/lib/dovecot/libdovecot.so.0(master_status_update+0x93) 
[0x7fd368d71263] ->

/usr/lib/dovecot/libdovecot.so.0(+0x2ecf3) [0x7fd368d72cf3] ->
/usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x4c) [0x7fd368dd6b2c] ->
/usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0xc5) 
[0x7fd368dd7e35] ->
/usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x25) 
[0x7fd368dd6bb5] ->

/usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x38) [0x7fd368dd6d58] ->
/usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13) 
[0x7fd368d72213] ->

dovecot/log(main+0x11c) [0x555e9f81771c] ->
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fd3689bcb45] ->
dovecot/log(+0x277d) [0x555e9f81777d]

master: Error: service(log): child 28845 killed with signal 6 (core 
dumps disabled)


Could anyone please advise?

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


Re: Panic in service(log)

2015-08-27 Thread Eugene Paskevich
27.08.2015, 16:09, "Eugene Paskevich" :
> Hello,
>
> I'm using the Debian builds of dovecot-2.2 by S[r]us.
> Today I started getting the following panic:
>
> log: Panic: file priorityq.c: line 122 (priorityq_remove_idx): assertion
> failed: (idx < count)

Just in case, here is the full backtrace.

(gdb) thread apply all bt full

Thread 1 (LWP 28412):
#0  0x7fe01d5df107 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x7fe01d5e04e8 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x7fe01d9d21a6 in default_fatal_finish (type=, 
status=status@entry=0) at failures.c:202
backtrace = 0x559b3daf8198 "/usr/lib/dovecot/libdovecot.so.0(+0x7f1ae) 
[0x7fe01d9d21ae] -> /usr/lib/dovecot/libdovecot.so.0(+0x7f29c) [0x7fe01d9d229c] 
-> /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7fe01d97b81e] -> 
/usr/lib/d"...
#3  0x7fe01d9d229c in i_internal_fatal_handler (ctx=0x7fffdc318f70, 
format=, args=) at failures.c:671
status = 0
#4  0x7fe01d97b81e in i_panic (format=format@entry=0x7fe01d9ff898 "file %s: 
line %d (%s): assertion failed: (%s)") at failures.c:276
ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0, 
timestamp_usecs = 0}
args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 
0x7fffdc319070, reg_save_area = 0x7fffdc318fb0}}
#5  0x7fe01d9f3de8 in priorityq_remove_idx (pq=0x559b3db007e0, 
idx=4294967295) at priorityq.c:122
pq = 0x559b3db007e0
idx = 4294967295
count = 1
#6  0x7fe01d9f3eeb in priorityq_remove (pq=, 
item=item@entry=0x559b3db221f0) at priorityq.c:138
No locals.
#7  0x7fe01d9e479c in timeout_reset_timeval (timeout=0x559b3db221f0, 
tv_now=tv_now@entry=0x0) at ioloop.c:329
__FUNCTION__ = "timeout_reset_timeval"
#8  0x7fe01d9e4b4d in timeout_reset (timeout=) at 
ioloop.c:336
__FUNCTION__ = "timeout_reset"
#9  0x7fe01dd062a6 in index_mailbox_want_full_sync 
(box=box@entry=0x559b3db1c410, flags=flags@entry=(unknown: 0)) at 
index-sync.c:49
ibox = 0x559b3db1c888
#10 0x7fe01dcbbb60 in maildir_storage_sync_init (box=0x559b3db1c410, 
flags=(unknown: 0)) at maildir-sync.c:1101
mbox = 0x559b3db1c410
lost_files = false
force_resync = false
ret = 0
__FUNCTION__ = "maildir_storage_sync_init"
#11 0x7fe01dc90bbb in mailbox_sync_init (box=box@entry=0x559b3db1c410, 
flags=flags@entry=(unknown: 0)) at mail-storage.c:1651
_data_stack_cur_id = 4
ctx = 
#12 0x559b3d622a01 in imap_sync_init (client=0x559b3db19010, box=, imap_flags=imap_flags@entry=(unknown: 0), flags=flags@entry=(unknown: 0)) 
at imap-sync.c:230
__FUNCTION__ = "imap_sync_init"
#13 0x559b3d60f05e in idle_sync_now (box=, 
ctx=0x559b3db19d08) at cmd-idle.c:145
No locals.
#14 0x559b3d60f35d in cmd_idle (cmd=0x559b3db19bf0) at cmd-idle.c:308
client = 0x559b3db19010
#15 0x559b3d61875c in command_exec (cmd=cmd@entry=0x559b3db19bf0) at 
imap-commands.c:168
hook = 0x559b3db01120
diff = 
finished = 
#16 0x559b3d616cf2 in client_command_input (cmd=cmd@entry=0x559b3db19bf0) 
at imap-client.c:821
client = 0x559b3db19010
command = 
__FUNCTION__ = "client_command_input"
#17 0x559b3d616d80 in client_command_input (cmd=0x559b3db19bf0) at 
imap-client.c:881
client = 0x559b3db19010
command = 
__FUNCTION__ = "client_command_input"
#18 0x559b3d6170ed in client_handle_next_command (remove_io_r=, client=0x559b3db19010) at imap-client.c:919
No locals.
#19 client_handle_input (client=0x559b3db19010) at imap-client.c:931
_data_stack_cur_id = 3
remove_io = false
handled_commands = false
client = 0x559b3db19010
#20 0x559b3d6174b5 in client_input (client=0x559b3db19010) at 
imap-client.c:973
cmd = 0xa51de
output = 0x559b3db19a30
bytes = 8
__FUNCTION__ = "client_input"
#21 0x7fe01d9e5b2c in io_loop_call_io (io=0x559b3db19b00) at ioloop.c:540
ioloop = 0x559b3db00770
t_id = 2
__FUNCTION__ = "io_loop_call_io"
#22 0x7fe01d9e6e35 in io_loop_handler_run_internal 
(ioloop=ioloop@entry=0x559b3db00770) at ioloop-epoll.c:220
ctx = 0x559b3db01510
io = 
tv = {tv_sec = 1799, tv_usec = 999712}
events_count = 
msecs = 
ret = 1
i = 0
j = 
call = 
__FUNCTION__ = "io_loop_handler_run_internal"
#23 0x7fe01d9e5bb5 in io_loop_handler_run 
(ioloop=ioloop@entry=0x559b3db00770) at ioloop.c:588
No locals.
#24 0x7fe01d9e5d58 in io_loop_run (ioloop=0x559b3db00770) at ioloop.c:564
__FUNCTION__ = "io_loop_run"
#25 0x7fe01d981213 in master_service_run (service=0x559b3db00

Re: [Dovecot] dspam

2011-07-25 Thread Eugene Paskevich
On Sun, 24 Jul 2011 21:51:04 +0300, Stéphane Guedon  
 wrote:



I have installed dspam (from gentoo compile system) and dovecot-antispam
plugin for dovecot 2.0.13.

I have setup it in dovecot.conf but still have this:

jul 24 20:38:19 einstein dovecot: imap(stephane): Error: antispam plugin
backend is not selected for this user

any explanation ?


A simple one, yes. :-)
Pay your attention to dovecot-antispam manual page.
Please keep us posted if problems remain.

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


Re: [Dovecot] Antispam plugin not compatible with Dovecot 2.1

2012-01-18 Thread Eugene Paskevich

On Wed, 18 Jan 2012 16:34:18 +0200, Timo Sirainen  wrote:


On Tue, 2012-01-17 at 11:07 +, interfaSys sàrl wrote:

Here is what I get when I try to compile the antispam plugin agaisnt
Dovecot 2.1

**
mailbox.c: In function 'antispam_save_begin':
mailbox.c:138:12: error: 'struct mail_save_context' has no member named
'copying'


The "copying" should be changed to "copying_via_save".


Thank you, Timo.
Would #if DOVECOT_IS_GE(2,1) suffice or do I need anything more specific?

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


Re: [Dovecot] Antispam plugin not compatible with Dovecot 2.1

2012-01-18 Thread Eugene Paskevich

On Wed, 18 Jan 2012 18:31:49 +0200, Timo Sirainen  wrote:


On Wed, 2012-01-18 at 18:19 +0200, Eugene Paskevich wrote:

>> mailbox.c: In function 'antispam_save_begin':
>> mailbox.c:138:12: error: 'struct mail_save_context' has no member  
named

>> 'copying'
>
> The "copying" should be changed to "copying_via_save".

Thank you, Timo.
Would #if DOVECOT_IS_GE(2,1) suffice or do I need anything more  
specific?


Where do you expect to find such macro? ;) Hm. Perhaps I should try to
add one.


Heh. That's Johannes' package private macro... :)

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


Re: [Dovecot] release plan for dovecot antispam plugin?

2010-10-05 Thread Eugene Paskevich

On Tue, 05 Oct 2010 12:20:57 +0300, Tom Hendrikx  wrote:


I noticed that someone took over the development of the dovecot antispam
plugin, and the is currently hosted at dovecots hg repo. Great to see
that the plugin is not dead! ;)


Well, that's not the word I'd use. Rather reincarnated.


I created a gentoo ebuild that builds the plugin from the repo, and the
plugin seems to work nice with dspam (using mailtrain backend). I'm
running a checkout from Tue Sep 21 16:14:48 2010.


As of this writing all of the previous backends were implemented.
But several of them lack any testing whatsoever.
I.e. I haven't tested signature-log, nor crm114.
All others were tested to some extent.


However, it is lacking a release so distributions can also easily update
the plugin. Is there any news on this?


In order to prepare a well shaped release the current code
has to be stuffed with optional (verbose) diagnostic messages.
Should something go wrong, users have be able to provide some debugging
info, not just "it doesn't work." That's what keeps me from releasing
from the code side. There is another side however. I haven't spoken
to all of the authors of the previous plugin. I have to run all the
licensing/copyrighting questions by them. I hope this shouldn't be
a problem. But it has to be done before releasing.

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


Re: [Dovecot] [st...@telcotec.se: [stava: antispam problem]]

2010-10-23 Thread Eugene Paskevich
On Sat, Oct 23, 2010 at 01:33:58PM +0200, Lars Stavholm wrote:
> Hi All,
> 
> I've built the dovecot-antispam-plugin from hg.dovecot.org and installed it.

Which version is that? I mean the mercurial commit ID as returned by 'hg id'
command.

> I've turned on debugging with "mail_debug = yes" in dovecot.conf and restarted
> dovecot. However, the antispam plugin module gets loaded by dovecot, but then
> nothing, i.e. when moving mail from Inbox to Spam and vice versa, I see 
> nothing.

The plugin code has almost no debugging at the moment.

My first guess would be that folders aren't recognized as you supposed
them to be. Try applying the attached patch which should show how
exactly the folders are treated.

-- 
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix
diff -r 0cda886fec90 src/mailbox.c
--- a/src/mailbox.c	Sun Oct 24 05:17:20 2010 +0300
+++ b/src/mailbox.c	Sun Oct 24 07:07:20 2010 +0300
@@ -286,6 +286,8 @@
 asmb->module_ctx.super = box->v;
 
 asmb->box_class = antispam_mailbox_classify(box);
+i_debug("mailbox '%s' was recognized as %i", mailbox_get_name(box),
+	asmb->box_class);
 
 box->v.copy = antispam_copy;
 box->v.save_begin = antispam_save_begin;


Re: [Dovecot] dovecot-antispam-1.3 multiple plugin load

2010-10-23 Thread Eugene Paskevich
On Sun, Oct 24, 2010 at 02:20:03AM +0200, Antonio Perez-Aranda wrote:
> I have running dovecot-1.2.15 and I try whith dovecot-antispam-1.3 and
> 1.2-* if it's running for me.
> 
> I use mailtrain backend to call a script when I move a mail to a
> specific folder. Then, I set allow_append_to_spam: yes
> 
> At .config for Make dovecot-antispam. I set the plugin's name to:
> 
> PLUGINNAME=isspam
> 
> An then, I have another copy of the sources and .config with plugin's
> name set to:
> 
> PLUGINNAME=nospam
> 
> With this. If I put on dovecot.conf
> 
> protocol imap {
> ...
>   mail_plugins = isspam nospam
> ...
> }
> 
> When I try to login, the connection is aborted and dovecot connection
> die with coredump
> 
> 
> Are there are any people with similar settings ?
> 
> (doble instance of antispam plugin)

Could you please elaborate why you need to load multiple plugin instances
simultaneously?

-- 
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


Re: [Dovecot] 2.1.10 crashes at login (buf->used <= buf->alloc)

2012-09-19 Thread Eugene Paskevich

On Wed, 19 Sep 2012 18:02:07 +0300, Timo Sirainen  wrote:


On Wed, 2012-09-19 at 17:59 +0300, Timo Sirainen wrote:

On 19.9.2012, at 17.55, interfaSys sàrl wrote:

>> Did you recompile antispam plugin? Is it the latest antispam? This  
line doesn't seem to match the current code.

>
> You are correct, it had not been compiled in a while. Here is a new
> backtrace:
..
> #6  0x105e7a6a in buffer_write () from
> /usr/lib/dovecot/libdovecot.so.0
> No symbol table info available.
> #7  0x105ce9f9 in array_idx_set_i () from
> /usr/lib/dovecot/libdovecot.so.0
> No symbol table info available.
> #8  0x10e2a1b5 in antispam_user_created (user=0x10a83040) at
> user.c:96
>_module_tmp = (void *) 0x10a84d18
>asu = (struct antispam_user *) 0x10a84d18
>tmp = Variable "tmp" is not available.

This still looks some kind of a version mismatch. Did you compile  
antispam against v2.1.10 headers? /usr/lib/dovecot/libdovecot.so.0 is  
also really from v2.1.10?


Attached a helpful antispam patch.


Erm... Am I missing something?
http://hg.dovecot.org/dovecot-antispam-plugin/annotate/7f94cc6b4d8e/src/antispam-plugin.c
line 26, or actually line 32 given
http://hg.dovecot.org/dovecot-antispam-plugin/annotate/e902fcd40d1d/antispam-plugin.c#l32

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


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 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.mar...@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
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix

crm_debug.patch
Description: Binary data


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|   ---(==*   |  The Matrix

crm_debug.patch
Description: Binary data


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 from UNSURE to INBOX and thunderbird tell  
me ..blah..blah.. [CANNOT] Failed to call crm114 binary

I cant see in any log what's the problem 


Weird... Did you configure anything specific about logging?
doveconf -n might show. You should also check your syslog configuration
as to where debugging logging should go to. Otherwise I have no idea.

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


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_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.


--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


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.ua|   ---(==*   |  The Matrix


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: 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?

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


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,user etc etc


Wait a second... So the script is ran correctly but reaver isn't?
That probably means that either reaver dislikes its arguments or its  
stdin...


--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


[Dovecot] LDA misbehavior?

2013-02-21 Thread Eugene Paskevich

Hello,

Could somebody please give me a hint on what might be going wrong?

Feb 21 16:33:07 hopper dovecot: lda(eugene): Panic: file mail-storage.c:  
line 1757 (mailbox_transaction_commit_get_changes): assertion failed: (ret  
< 0 || seq_range_count(&changes_r->saved_uids) == save_count)
Feb 21 16:33:07 hopper dovecot: lda(eugene): Error: Raw backtrace:  
/usr/lib/dovecot/libdovecot.so.0(+0x6019a) [0x7f38e5ef619a] ->  
/usr/lib/dovecot/ibdovecot.s
o.0(i_syslog_fatal_handler+0x2b) [0x7f38e5ef621b] ->  
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f38e5eb81f4] ->  
/usr/lib/dovecot/libdovecot-storage.so.0(+0x7c0de) [0x7f38e61cd0de] ->  
/usr/lib/dovecot/libdovecot-lda.so.0(mail_deliver_save+0x1b2)  
[0x7f38e6469d62] ->  
/usr/lib/dovecot/libdovecot-lda.so.0(mail_deliver+0xe3) [0x7f38e646a113]  
-> /usr/lib/dovecot/dovecot-lda(main+0x38a) [0x40295a] ->  
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f38e5b2aead]  
-> /usr/lib/dovecot/dovecot-lda() [0x4031e1]
Feb 21 16:33:07 hopper exim[10094]: 1U8XCf-0002Za-4s **  
eug...@hopper.volia.net  R=local_user  
T=dovecot_delivery: Child process of dovecot_delivery transport (running  
command "/usr/lib/dovecot/dovecot-lda -f $sender_address -a  
$original_local_part@$original_domain") was terminated by signal 6  
(Aborted)
Feb 21 16:33:07 hopper exim[10094]: 1U8XCf-0002Za-4s Frozen (delivery  
error message)


It started a couple of days ago.
Triggered by the mass delivery.
E.g. by
for i in {1..50}; do { mail -s "test $i" eug...@hopper.volia.net <<< "Try  
$i" & }; done


I suspected that sieve might cause that, but disabling it gave nothing.

Current
root@hopper[pts/0]:/etc/dovecot> doveconf -n
# 2.2.beta1 (808a64899e8a): /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.0
mail_location = maildir:~/Maildir
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix =
}
passdb {
  driver = pam
}
postmaster_address = hop...@volia.net
protocols = imap
service imap-login {
  inet_listener imap {
port = 143
  }
  inet_listener imap2 {
port = 1357
  }
}
ssl_cert = 

Re: [Dovecot] dovecot antispam plugin is not woking

2013-04-30 Thread Eugene Paskevich
On Tue, 30 Apr 2013 12:36:44 +0300, Ravi Kanchan  
 wrote:



I am using dovecot  version 2.0.9
DSPAM Anti-Spam Suite 3.10.2 (agent/library)
ClamAV 0.97.7/17102

and dspam antispam plugin
 dovecot-antispam-plugin-43880985e3dd


That is quite an old revision.
However, there were no significant changes since then.
If you update to the latest revision you might need to revert 5e8351bcfb29,
given your dovecot version.


and plugin configuration is given below:

protocol imap {
  mail_plugins = " antispam autocreate"
}
protocol pop3 {
  mail_plugins = antispam autocreate
}


I'm not sure this plugin could be used with POP3.


plugin {
  antispam_allow_append_to_spam = YES
  antispam_backend = dspam
  antispam_crm_args = --config=/home/vmail


This line isn't used for dspam backend.


  antispam_dspam_args = --client;--user vmail


"--user vmail" is treated like a single argument due to missing semicolon.
That is definitely not what you want. Put it like "--client;--user;vmail".

Also, you might consider adding these two:  
"--source=error;--signature=%%s".

But I've never used dspam, so can't know for sure.


  antispam_dspam_binary = /usr/bin/dspam
  antispam_dspam_notspam = --class=innocent


These are default, could be removed.


  antispam_dspam_result_header = X-DSPAM-Result
  antispam_dspam_spam = --class=spam


This last line could also be removed because it's default.


  antispam_mail_tmpdir = /tmp


No such setting at all for this plugin.


  antispam_signature = X-DSPAM-Signature
  antispam_signature_missing = error


Again, default.


  antispam_spam = Spam
}

dspam bin path:

[root@sogo ~]# which dspam
/usr/bin/dspam

but my dspam plugin
configuration is not working. and I am not getting any log from
dspam. My dspam server is working prefect.

cna anyone help me


Please fix antispam_dspam_args and let me know whether it works.

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


Re: [Dovecot] dovecot antispam plugin is not woking

2013-04-30 Thread Eugene Paskevich
On Tue, 30 Apr 2013 15:56:19 +0300, Ravi Kanchan  
 wrote:



thank you for your valuable response


I have changed the configuration as per your suggestion.


Try putting it this way:

plugin {
  antispam_spam = Spam
  antispam_allow_append_to_spam = YES
  antispam_backend = dspam
  antispam_dspam_args =  
--client;--user;vmail;--source=error;--signature=%%s

  antispam_dspam_result_header = X-DSPAM-Result
  antispam_signature = X-DSPAM-Signature
}

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


Re: [Dovecot] Antispam r49 breaks Dovecot v2.1

2013-04-30 Thread Eugene Paskevich
On Thu, 20 Dec 2012 12:58:23 +0200, Steffen Kaiser  
 wrote:



patch 49 breaks compilation with Dovecot v2.1.


Fixed in 5ebc6aae4d7c.

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix


Re: [Dovecot] dovecot antispam plugin is not woking

2013-05-04 Thread Eugene Paskevich
On Sat, 04 May 2013 08:13:44 +0300, Ravi Kanchan  
 wrote:


But it is not woking in our setup its not block or marking SPAM mail  
which is receiving through IMAP or POP3 services.


Antispam plugin isn't supposed to block nor mark mails.
It's only used to teach your spam system should it make an error.

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix