[Dovecot] 1.2rc2: setacl crash

2009-04-03 Thread Oli Schacher
Hi By playing around with imap acl I managed to get another crash. Setup is the same as in my last crash report ("1.2 beta4, crash with ACL"), except updated from beta4 to rc2 and added the slash to the prefix, as suggested by Timo: prefix: shared/%%d/%%n/ What I did: logged in as sales 2 setacl

[Dovecot] v1.3.UNSTABLE branch is now available

2009-04-03 Thread Timo Sirainen
v1.2.rc1 + config rewrite + multi-dbox: http://hg.dovecot.org/dovecot-1.3/ signature.asc Description: This is a digitally signed message part

[Dovecot] Global Recipe Location

2009-04-03 Thread James Butler
Hmmm. I'm having difficulty finding a good place for a global Sieve script. The problem seems to be related to saving the compiled version (xxx.svbin.tmp) in the same location as the script (xxx.sieve), which happens using the credentials of the recipient user. i.e. drwxr-xr-x dovecoter dovecote

Re: [Dovecot] v1.2.rc2 released

2009-04-03 Thread Timo Sirainen
On Fri, 2009-04-03 at 14:17 -0700, Daniel L. Miller wrote: > As clean as this code compiles, there are still a couple of warnings I > noticed. If these are being ignored on purpose - please ignore me. But > if these have slipped through - sometimes another pair of eyes helps. > > index-mail.c: I

Re: [Dovecot] v1.2.rc2 released

2009-04-03 Thread Daniel L. Miller
Timo Sirainen wrote: http://dovecot.org/releases/1.2/rc/dovecot-1.2.rc2.tar.gz http://dovecot.org/releases/1.2/rc/dovecot-1.2.rc2.tar.gz.sig Somehow I forgot to check that "make distcheck" finished successfully in rc1, so rc1 didn't actually even fully compile. No other changes since rc1 than th

Re: [Dovecot] v1.2.rc2 released

2009-04-03 Thread Daniel L. Miller
Timo Sirainen wrote: http://dovecot.org/releases/1.2/rc/dovecot-1.2.rc2.tar.gz http://dovecot.org/releases/1.2/rc/dovecot-1.2.rc2.tar.gz.sig Somehow I forgot to check that "make distcheck" finished successfully in rc1, so rc1 didn't actually even fully compile. No other changes since rc1 than th

Re: [Dovecot] Adding Sieve Extensions

2009-04-03 Thread James Butler
> On Fri, 2009-04-03 at 13:43 -0700, James Butler wrote: >> And if it's not too much trouble, is there a way to include currently >> un-included extensions, like 'editheader', into Dovecot/Sieve? How >> complicated is it? I'm guessing that it is more complicated than simply >> writing a Capability

Re: [Dovecot] Adding Sieve Extensions

2009-04-03 Thread Timo Sirainen
On Fri, 2009-04-03 at 13:43 -0700, James Butler wrote: > And if it's not too much trouble, is there a way to include currently > un-included extensions, like 'editheader', into Dovecot/Sieve? How > complicated is it? I'm guessing that it is more complicated than simply > writing a Capability defini

[Dovecot] v1.2.rc2 released

2009-04-03 Thread Timo Sirainen
http://dovecot.org/releases/1.2/rc/dovecot-1.2.rc2.tar.gz http://dovecot.org/releases/1.2/rc/dovecot-1.2.rc2.tar.gz.sig Somehow I forgot to check that "make distcheck" finished successfully in rc1, so rc1 didn't actually even fully compile. No other changes since rc1 than the compile fix. signa

Re: [Dovecot] Adding Sieve Extensions

2009-04-03 Thread James Butler
And if it's not too much trouble, is there a way to include currently un-included extensions, like 'editheader', into Dovecot/Sieve? How complicated is it? I'm guessing that it is more complicated than simply writing a Capability definition and generating a plugin ... James

Re: [Dovecot] Adding Sieve Extensions

2009-04-03 Thread James Butler
> On Fri, 2009-04-03 at 13:08 -0700, James Butler wrote: >> - Dovecot v.1.2.beta4 >> - Sieve 0.1.4 >> >> I am getting this in my sieve log: >> >> main script: line 7: error: unsupported sieve capability 'editheader'. > > Right, this isn't supported. > >> main script: line 7: error: unsupported siev

Re: [Dovecot] v1.2.rc1 released

2009-04-03 Thread Timo Sirainen
On Fri, 2009-04-03 at 12:42 -0700, Jeff Grossman wrote: > make[4]: *** No rule to make target `rquota.x', needed by `rquota.h'. Stop. :( I always run "make distcheck", but this was probably the first time when I didn't actually look at its result afterwards. Oh well, have to release rc2 then.

Re: [Dovecot] Adding Sieve Extensions

2009-04-03 Thread Timo Sirainen
On Fri, 2009-04-03 at 13:23 -0700, Daniel L. Miller wrote: > Will Sieve become part of the standard distribution? Or will remain a > patch/add-on for the foreseeable future? The managesieve patch will hopefully go away around v2.0 release, but it'll remain as a separate package. signature.asc D

Re: [Dovecot] Adding Sieve Extensions

2009-04-03 Thread Timo Sirainen
On Fri, 2009-04-03 at 13:08 -0700, James Butler wrote: > - Dovecot v.1.2.beta4 > - Sieve 0.1.4 > > I am getting this in my sieve log: > > main script: line 7: error: unsupported sieve capability 'editheader'. Right, this isn't supported. > main script: line 7: error: unsupported sieve capabilit

Re: [Dovecot] Adding Sieve Extensions

2009-04-03 Thread Daniel L. Miller
Timo Sirainen wrote: On Fri, 2009-04-03 at 12:34 -0700, James Butler wrote: How can I add an extension to Dovecot's Sieve implementation? I would like to use 'editheader' and 'redirect'. I'm not really sure what you mean. editheader isn't implemented, although Konstantin is apparently

Re: [Dovecot] Adding Sieve Extensions

2009-04-03 Thread James Butler
> On Fri, 2009-04-03 at 12:34 -0700, James Butler wrote: >> How can I add an extension to Dovecot's Sieve implementation? >> >> I would like to use 'editheader' and 'redirect'. > > I'm not really sure what you mean. editheader isn't implemented, > although Konstantin is apparently trying to impleme

Re: [Dovecot] v1.2.rc1 released

2009-04-03 Thread Jeff Grossman
> http://dovecot.org/releases/1.2/rc/dovecot-1.2.rc1.tar.gz > http://dovecot.org/releases/1.2/rc/dovecot-1.2.rc1.tar.gz.sig > > I think it's time to get v1.2.0 out soon. Shared mailbox code is > beginning to look like it's working and other features should work fine > also. I don't really see any r

Re: [Dovecot] Adding Sieve Extensions

2009-04-03 Thread Timo Sirainen
On Fri, 2009-04-03 at 12:34 -0700, James Butler wrote: > How can I add an extension to Dovecot's Sieve implementation? > > I would like to use 'editheader' and 'redirect'. I'm not really sure what you mean. editheader isn't implemented, although Konstantin is apparently trying to implement it for

Re: [Dovecot] Missing mail_max_userip_connections setting

2009-04-03 Thread Timo Sirainen
On Fri, 2009-04-03 at 14:34 -0500, Thomas M Goerger wrote: > Hi, > > I'm having a problem with a webmail client trying to open multiple IMAP > connections with dovecot, and hitting a cap. I see from the error logs > from this program that it's hitting the mail_max_userip_connections cap, > but I'

[Dovecot] Adding Sieve Extensions

2009-04-03 Thread James Butler
How can I add an extension to Dovecot's Sieve implementation? I would like to use 'editheader' and 'redirect'. Thank you! James

[Dovecot] Missing mail_max_userip_connections setting

2009-04-03 Thread Thomas M Goerger
Hi, I'm having a problem with a webmail client trying to open multiple IMAP connections with dovecot, and hitting a cap. I see from the error logs from this program that it's hitting the mail_max_userip_connections cap, but I'm not seeing this value as defined in the dovecot.conf file. Would thi

Re: [Dovecot] Implementation of editheaders in dovecot

2009-04-03 Thread Konstantin Lepa
Thank you very much :-) On Apr 3, 2009, at 21:29 , Timo Sirainen wrote: On Fri, 2009-04-03 at 21:25 +0400, Konstantin Lepa wrote: Yeah, but it doesn't work without i_stream_seek(stream, 0) before. How can I remove EOH after i_stream_create_header_filter (second '\n')? Is it possible? You ca

[Dovecot] v1.2.rc1 released

2009-04-03 Thread Timo Sirainen
http://dovecot.org/releases/1.2/rc/dovecot-1.2.rc1.tar.gz http://dovecot.org/releases/1.2/rc/dovecot-1.2.rc1.tar.gz.sig I think it's time to get v1.2.0 out soon. Shared mailbox code is beginning to look like it's working and other features should work fine also. I don't really see any reasons to d

Re: [Dovecot] Implementation of editheaders in dovecot

2009-04-03 Thread Timo Sirainen
On Fri, 2009-04-03 at 21:25 +0400, Konstantin Lepa wrote: > Yeah, but it doesn't work without i_stream_seek(stream, 0) before. > > How can I remove EOH after i_stream_create_header_filter (second > '\n')? Is it possible? You can give i_stream_create_header_filter() a callback function, which ge

Re: [Dovecot] Implementation of editheaders in dovecot

2009-04-03 Thread Konstantin Lepa
Yeah, but it doesn't work without i_stream_seek(stream, 0) before. How can I remove EOH after i_stream_create_header_filter (second '\n')? Is it possible? I found next solution: fname = t_strdup(mktemp("/tmp/temp.XX")); fd = creat(fname, 0600);

Re: [Dovecot] Maildir files with mtime in the future

2009-04-03 Thread Holger Weiss
* Timo Sirainen [2009-04-03 12:44]: > On Thu, 2009-04-02 at 19:36 +0200, Holger Weiss wrote: > > However, if the client does so, Dovecot will set the mtime of the > > Maildir file in question to the date specified by the client even if > > it's in the future. Since files with an mtime in the futu

Re: [Dovecot] Implementation of editheaders in dovecot

2009-04-03 Thread Timo Sirainen
On Fri, 2009-04-03 at 17:37 +0400, Konstantin Lepa wrote: > I fixed the problem and I created another :-) > > I removed header "Subject" and added "X-DSPAM: test value\n\n". Now, > problem is message_get_header_size in create_stream_for_msgbody. It > returns 0 :-( I don't know how to extract m

Re: [Dovecot] Maildir files with mtime in the future

2009-04-03 Thread Timo Sirainen
On Thu, 2009-04-02 at 19:36 +0200, Holger Weiss wrote: > However, if the client does so, Dovecot will set the mtime of the > Maildir file in question to the date specified by the client even if > it's in the future. Since files with an mtime in the future can cause > all sorts of trouble (e.g., th

Re: [Dovecot] decreasing log messages

2009-04-03 Thread Timo Sirainen
On Fri, 2009-04-03 at 11:25 +0200, Louis-David Mitterrand wrote: > Since I use "/usr/sbin/dovecot --exec-mail imap" from mutt I get a lot > of these in my syslog: > > Apr 3 11:09:33 zenon IMAP(ldm): : Connection closed bytes=36/256 > > Is it possible to suppress them while keeping the "re

Re: [Dovecot] 1.2 beta4, crash with ACL

2009-04-03 Thread Timo Sirainen
On Fri, 2009-04-03 at 12:37 +0200, Oli Schacher wrote: > Program terminated with signal 11, Segmentation fault. > #0 0x0011a664 in acl_shared_namespaces_add (ns=0x97cc720) > at acl-shared-storage.c:52 > 52acl-shared-storage.c: No such file or directory. > in acl-shared-storage.c Oft

Re: [Dovecot] ACL changes not respected by already loged in clients

2009-04-03 Thread Timo Sirainen
On Fri, 2009-04-03 at 06:12 -0400, Charles Marcus wrote: > On 4/2/2009 6:24 PM, Timo Sirainen wrote: > >> I think ACL changes should take immediate effect, or at least > >> should be re-checked in reasonable intervals (which imo shouldn't > >> exceed a few seconds). > > > I think this should work:

Re: [Dovecot] dbox benchmarks

2009-04-03 Thread Felix SchŸueren
Timo Sirainen wrote: On Apr 2, 2009, at 10:08 PM, Daniel L. Miller wrote: I can see where large mailservers would benefit from significant write performance increases - but unless the server is being actively limited by the local delivery agent, what other performance benefits does this offer

Re: [Dovecot] Maildir files with mtime in the future

2009-04-03 Thread Holger Weiss
* Ben Winslow [2009-04-03 10:59]: > On Fri, 3 Apr 2009 01:14:47 +0200 > Holger Weiss wrote: > > I'd guess most backup software will include files with an mtime newer > > than the time of the previous backup in incremental backups. At > > least, Bacula[*] and Veritas NetBackup do it that way. >

Re: [Dovecot] dovecot-1.1.13 auth-worker killed

2009-04-03 Thread Timo Sirainen
On Apr 3, 2009, at 4:31 AM, Jiri Novosad wrote: #0 0x003d5e60d6fc in ?? () from /lib64/libselinux.so.1 #1 0x003d5e60d86b in matchpathcon () from /lib64/libselinux.so.1 #2 0x003d64203d3b in ?? () from /usr/lib64/libkrb5support.so.0 #3 0x003d64204064 in krb5int_labeled_fopen ()

Re: [Dovecot] Maildir files with mtime in the future

2009-04-03 Thread Ben Winslow
On Fri, 3 Apr 2009 01:14:47 +0200 Holger Weiss wrote: > I'd guess most backup software will include files with an mtime newer > than the time of the previous backup in incremental backups. At > least, Bacula[*] and Veritas NetBackup do it that way. Aren't IMAP messages supposed to be immutable?

Re: [Dovecot] Implementation of editheaders in dovecot

2009-04-03 Thread Konstantin Lepa
Also, i'd like to know how to cut last '\n' from header stream. If I don't remove a last lf symbol, then all my headers'll added to message body :-( On Apr 3, 2009, at 17:37 , Konstantin Lepa wrote: I fixed the problem and I created another :-) I removed header "Subject" and added "X-DSPAM

Re: [Dovecot] Implementation of editheaders in dovecot

2009-04-03 Thread Konstantin Lepa
I fixed the problem and I created another :-) I removed header "Subject" and added "X-DSPAM: test value\n\n". Now, problem is message_get_header_size in create_stream_for_msgbody. It returns 0 :-( I don't know how to extract message body properly. Help me to understand usage of struct messa

Re: [Dovecot] v 1.1.13 / GSSAPI / Timeout waiting for handshake from auth server

2009-04-03 Thread pod
Timo Sirainen writes: > On Wed, 2009-03-25 at 15:31 +0100, Jahnke-Zumbusch, Dirk wrote: >> 1. I am puzzled about the credentials "i...@my.host.name" being obtained; >> shouldn't this be >>something like "imap/my.host.n...@my.realm" ? > > I don't know anything about Kerberos. I suspect the "

Re: [Dovecot] Time moved backwards errors

2009-04-03 Thread Noel Butler
On Fri, 2009-04-03 at 20:08, Charles Marcus wrote: > >> Hopefully you meant ntpd, not ntpdate... but I believe the OP was > >> using a VM, so ntpd is not an option... > > > How is that so? we use some vmware and xen setups, and ntpd works > > fine on both > > http://support.ntp.org/bin/view/Su

Re: [Dovecot] Quota calculation problem with 1.2 beta 4

2009-04-03 Thread Wolfgang . Friebel
On Thu, 2 Apr 2009, Timo Sirainen wrote: The limits in maildirsize file are ignored by Dovecot as long as you defined quota_rules. So don't bother looking at them. Thanks, that explains why my expectations about its contents were not met. If then I do another IMAP GETQUOTAROOT the correct v

[Dovecot] 1.2 beta4, crash with ACL

2009-04-03 Thread Oli Schacher
Hi I'm betatesting the new acl features in dovecot 1.2. System: Centos 5.2, dovecot 1.2beta4 built with the spec file from http://dl.atrpms.net/all/dovecot.spec I set up two accounts (sa...@domain, o...@domain), I could access them both without problems (testing with Thunderbird) Then I tried t

[Dovecot] Implementation of editheaders in dovecot

2009-04-03 Thread Konstantin Lepa
Hello. I wrote the hook function for deliver. I want to add support of editheaders in the plug-in for dovecot. For this purpose I wrote the function rarules_get_stream. Remover of headrs works properly, but adding does not work. I took Timo Sirainen's advice from http://markmail.org/message

Re: [Dovecot] ACL changes not respected by already loged in clients

2009-04-03 Thread Charles Marcus
On 4/2/2009 6:24 PM, Timo Sirainen wrote: >> I think ACL changes should take immediate effect, or at least >> should be re-checked in reasonable intervals (which imo shouldn't >> exceed a few seconds). > I think this should work: > > acl = vfile:/etc/dovecot/acls:cache_secs=1 > > The default is

Re: [Dovecot] Time moved backwards errors

2009-04-03 Thread Charles Marcus
On 4/2/2009 6:05 PM, Noel Butler wrote: >>> I see this all of the time on an EL4 machine when it is under >>> high load. The clock is synced to ntp but I still get dovecot >>> killing itself. Sometimes ntp looses sync but not always. >> Hopefully you meant ntpd, not ntpdate... but I believe the OP

[Dovecot] decreasing log messages

2009-04-03 Thread Louis-David Mitterrand
Hi, Since I use "/usr/sbin/dovecot --exec-mail imap" from mutt I get a lot of these in my syslog: Apr 3 11:09:33 zenon IMAP(ldm): : Connection closed bytes=36/256 Is it possible to suppress them while keeping the "remote users" messages: Apr 3 10:52:05 zenon dovecot: IMAP(

Re: [Dovecot] dovecot-1.1.13 auth-worker killed

2009-04-03 Thread Jiri Novosad
Timo Sirainen wrote: > On Thu, 2009-04-02 at 06:28 -0400, Charles Marcus wrote: >> On 4/1/2009 5:25 PM, Timo Sirainen wrote: dovecot: Mar 27 12:00:34 Error: child 21838 (auth-worker) killed with signal 6 (core not dumped) dovecot: Mar 27 12:10:23 Error: child 22711 (auth-worker) kil