Re: [Dovecot] Mailbox Delete

2010-11-26 Thread Alex Baule
It's strange, because if i comment the call for my function mailbox_delete, i don't get the error. Only if i delete it. i will check the rest of code... Tks Timo ! 2010/11/26 Timo Sirainen > On 26.11.2010, at 19.47, Alex Baule wrote: > > >box = mailbox_alloc(ns->list, name, 0); > >

Re: [Dovecot] Mailbox Delete

2010-11-26 Thread Timo Sirainen
On 26.11.2010, at 19.47, Alex Baule wrote: >box = mailbox_alloc(ns->list, name, 0); >if (mailbox_delete(box) < 0) { >struct mail_storage *storage = mailbox_get_storage(box); >i_error("Can't delete mailbox %s: %s", > name,mail_storage_get_last_err

[Dovecot] Mailbox Delete

2010-11-26 Thread Alex Baule
Hi Timo I Modify the plugin autocreate, that create and subscribe a mailbox to user. My modification consist in do the inverse, if my user don't have permission to create and subscribe a folder, the plugin remove and unsubscribe. My function is called in the same place that create and subscr

Re: [Dovecot] sieve fileinto public shared mbox?

2010-11-26 Thread Timo Sirainen
On Tue, 2010-11-23 at 16:52 -0800, RParr wrote: > > Fixed for v2.0: http://hg.dovecot.org/dovecot-2.0/rev/3daec8435d29 > > http://hg.dovecot.org/dovecot-2.0/rev/586d549732f5 .. > I can modify the calls to utime() in mbox-save.c and mbox-sync.c to > ignore the EPERM errors > but I first wanted to v

Re: [Dovecot] Use a different usename than the recipient address (that require a lookup)?

2010-11-26 Thread Timo Sirainen
On Mon, 2010-11-08 at 13:42 -0500, Zhou, Yan wrote: > I am integrating Postfix and DoveCot, both use LDAP to look up > user/email address info. My question is this: can I create a user > "jsmith" to get all emails with the recipient address: > dovecotd...@domain? Because of using LDAP, I need to

Re: [Dovecot] Plan: ACL changes

2010-11-26 Thread Thomas Leuxner
Am 26.11.2010 um 14:28 schrieb Timo Sirainen: > Not really. Also I'm no longer sure how useful this #2 would be, or how > exactly it should work.. The use cases I can think of can be solved with > global ACLs supporting wildcards. Guess more input/thoughts would be beneficial. ACL inheritance s

Re: [Dovecot] (summarized) wishlist :-)

2010-11-26 Thread Timo Sirainen
On Wed, 2010-11-24 at 15:38 +0100, Clemens Schrimpe wrote: > 1) the whole "post login scripting" is a mighty tool, yet it presently > lacks a few more words in the documentation, i.e., the syntax of the > corresponding config files isn't /entirely/ clear to me. Yes, I can > replay the examples giv

Re: [Dovecot] ioloop.c panic

2010-11-26 Thread Timo Sirainen
On Tue, 2010-11-23 at 18:02 -0800, Brad Davidson wrote: > Just this morning I upgraded from 2.0.6 to 2.0.7 (hg changeset > 66a523135836). A few hours later we had some power problems that caused > the networking to drop out at one site. The directors on the surviving > site all had a few imap-login

Re: [Dovecot] ldap passdb + mdbox

2010-11-26 Thread Timo Sirainen
On Tue, 2010-11-23 at 07:45 -0800, dmil...@amfes.com wrote: > > Auth-binds recommends the different connections for asynchronous > lookups to be faster - but since I'm using prefetch no userdb lookup is > ever performed, so it's a wasted connection...got it. Might want to add > a note to t

Re: [Dovecot] auth on tcp socket?

2010-11-26 Thread Timo Sirainen
On Wed, 2010-11-24 at 12:26 +0100, Hajo Locke wrote: > is it possible to provide service auth on tcp-socket instead of unix-socket? > I changed my conf and dovecot 2.0.5 is restarting but on telnet test it > throws: > dovecot: auth: Fatal: getsockname(12) failed: Socket operation on non-socket >

Re: [Dovecot] proxy (director) and destination ports

2010-11-26 Thread Timo Sirainen
On Wed, 2010-11-24 at 15:01 +0100, Oliver Eales wrote: > postfix main.cf: virtual_transport = lmtp:unix:private/dovecot-lmtp > > The dovecot proxy tries to connect to the backend server port 0 which is > obviously not working. > The proxy always seems to connect to the same port on the backend a

Re: [Dovecot] Director

2010-11-26 Thread Timo Sirainen
On Wed, 2010-11-24 at 18:19 -0300, Diego Damian Garcia wrote: > I am try to setup director in dovecot 2.0.7-1_123 but I donĀ“t unserstand how > this work. Have any tutorial with instructions to setup the director to > autenticate users and send to the real mail servers? Finally added docs: http://

Re: [Dovecot] IMAP aggregation and MUPDATE protocolo

2010-11-26 Thread Timo Sirainen
On Thu, 2010-11-25 at 00:43 +0100, Ernesto Revilla Derksen wrote: > Is IMAP aggregation proxying really so difficult? I know about the > problems of COPY (which in some cases in Cyrus-Murder is handled by > the proxy itself), but don't know if there are any other gotchas. Are you thinking about

Re: [Dovecot] Static userdb with LDAP passdb but without "allow_all_users=yes"?

2010-11-26 Thread Timo Sirainen
On Thu, 2010-11-25 at 19:31 +0100, Andreas Ntaflos wrote: > Is it possible to have a static user database along with an LDAP > password database and *not* be forced to set "allow_all_users=yes" for > the userdb? Yes. > dovecot: auth: Error: static(not-a-u...@test01.example.com): passdb > doe

Re: [Dovecot] How to know if dovecot director is running OK?

2010-11-26 Thread Timo Sirainen
On Fri, 2010-11-26 at 14:53 +0100, Antonio Perez-Aranda wrote: > If try to execute doveadm director status I can watch the two server like > that: > > [r...@kvm1 ~]# doveadm director status > mail server ip vhosts users > 192.168.13.100 100

Re: [Dovecot] Director and deliver

2010-11-26 Thread Thomas Hummel
On Fri, Nov 26, 2010 at 03:58:12PM +, Timo Sirainen wrote: > No, you don't. dovecot-lda and Dovecot's LMTP server uses exactly the > same code for writing mails. Ok. Thanks. It would have been weird not to use such an advantage (early indexing) in a director environment. -- Thomas Hummel

Re: [Dovecot] Director and deliver

2010-11-26 Thread Timo Sirainen
On Fri, 2010-11-26 at 16:33 +0100, Thomas Hummel wrote: > On Fri, Nov 26, 2010 at 03:16:44PM +, Timo Sirainen wrote: > > On Fri, 2010-11-26 at 15:11 +0100, Thomas Hummel wrote: > > > Or is the LMTP server able to directly put the message in the final > > > mailbox ? > > > > Yes. LMTP server c

Re: [Dovecot] Director and deliver

2010-11-26 Thread Thomas Hummel
On Fri, Nov 26, 2010 at 03:16:44PM +, Timo Sirainen wrote: > On Fri, 2010-11-26 at 15:11 +0100, Thomas Hummel wrote: > > Or is the LMTP server able to directly put the message in the final mailbox > > ? > > Yes. LMTP server could be thought of as LDA. But then you loose early updating of ind

Re: [Dovecot] maildir maintenance?

2010-11-26 Thread Brian Kroth
Timo Sirainen 2010-11-26 15:15: > On Fri, 2010-11-26 at 09:03 -0600, Brian Kroth wrote: > > > > So, I redid this in Perl to only use IMAP rather than any sudo or find > > calls. In theory then one doesn't need to worry about the indexes being > > out of sync. I still skipped over the "strange c

Re: [Dovecot] Director and deliver

2010-11-26 Thread Timo Sirainen
On Fri, 2010-11-26 at 15:11 +0100, Thomas Hummel wrote: > Or is the LMTP server able to directly put the message in the final mailbox ? Yes. LMTP server could be thought of as LDA.

Re: [Dovecot] maildir maintenance?

2010-11-26 Thread Timo Sirainen
On Fri, 2010-11-26 at 09:03 -0600, Brian Kroth wrote: > > So, I redid this in Perl to only use IMAP rather than any sudo or find > calls. In theory then one doesn't need to worry about the indexes being > out of sync. I still skipped over the "strange characters" mailboxes > for the moment. I'm

Re: [Dovecot] maildir maintenance?

2010-11-26 Thread Brian Kroth
Brian Kroth 2010-11-24 13:28: > Timo Sirainen 2010-11-24 19:04: > > On 24.11.2010, at 18.59, Brian Kroth wrote: > > > > >>> Hi, I'm running version 1.2.15 (so no doveadm) > > >> You could build Dovecot v2.0 and only use doveadm binary from it. > > > > > > Does it just issue the command via IMAP

Re: [Dovecot] Director and deliver

2010-11-26 Thread Thomas Hummel
On Fri, Nov 26, 2010 at 12:52:03PM +0100, Oliver Eales wrote: Thanks for your answer > If you are planning to use the director, you should switch to LMTP and not > use deliver as LDA. > LMTP can use the director. Excuse my poor understanding of LMTP but what I don't understand is if some sort o

[Dovecot] How to know if dovecot director is running OK?

2010-11-26 Thread Antonio Perez-Aranda
I'm using director on dovecot 2.0 At present, I know that two instances are connected, If I stop of one system, then I can watch how to the connections are closed on port 5000. I defined 5000 as director port. I have one user (user1) connected to kvm1 (192.168.13.100) and kvm2 (192.168.13.101) se

Re: [Dovecot] Quota by max file size

2010-11-26 Thread Timo Sirainen
On 26.11.2010, at 12.26, Antonio Perez-Aranda wrote: > Is It possible have a quota for max file size? No. Also I don't think that's really about quota, since this could be useful even when users have no quota. > I think maybe is easy to create a plugin, get the saved stream size > and then if i

Re: [Dovecot] Plan: ACL changes

2010-11-26 Thread Timo Sirainen
On 26.11.2010, at 9.41, Thomas Leuxner wrote: >> Plan #2: Add support for per-user default namespace ACLs. In the mail root >> directory if "dovecot-default-acl" file exists, it's used as the default >> ACLs. I'm not entirely sure what should happen if it conflicts with the >> global ACLs. Prob

Re: [Dovecot] Plan: ACL changes

2010-11-26 Thread Timo Sirainen
On 26.11.2010, at 6.42, Robert Schetterer wrote: > Hi Timo, features are nice to have, but in real i dont think global acls > are a widely used feature. > So if it does not break something it might be welcome in principal Global ACLs already exist and are used by people, but they are just a bit

[Dovecot] Quota by max file size

2010-11-26 Thread Antonio Perez-Aranda
Is It possible have a quota for max file size? Per example, If the client try to save a very big mail as draft, p.e. 100M, and the limit of Exim configuration is 20M, the mail is really saved in Maildir at sent or Draft but it can't be sent. I think maybe is easy to create a plugin, get the saved

Re: [Dovecot] Director and deliver

2010-11-26 Thread Oliver Eales
Am 26.11.2010 um 11:05 schrieb Thomas Hummel: > Hello Timo, > > Although I haven't tried neither director nor deliver, I'm planning to try > both. I've been catching up with threads on this list talking about director > but I'm not sure about how deliver would fit into a setup using director. I

[Dovecot] Director and deliver

2010-11-26 Thread Thomas Hummel
Hello Timo, Although I haven't tried neither director nor deliver, I'm planning to try both. I've been catching up with threads on this list talking about director but I'm not sure about how deliver would fit into a setup using director. Since deliver would touch indexes and dovecot-uidlist, woul

Re: [Dovecot] Plan: ACL changes

2010-11-26 Thread Thomas Leuxner
On Fri, Nov 26, 2010 at 05:49:16AM +, Timo Sirainen wrote: > So plan #1: deprecate this usage. If global-acls is a directory, keep using > the old method. But the new preferred method would be for it to be a file > that contains all of the global ACLs. Typically there should be very few > en