[Dovecot] [PATCH] SCRAM-SHA-1 authentication

2011-09-15 Thread Florian Zeitz
Hy, over the last days I have implemented SCRAM-SHA-1 in Dovecot's 2.1 branch. It does not do SCRAM-SHA-1-PLUS, but should be extendable enough to introduce it later. There are some checks for the message format which (assuming the client acts correclty) are not strictly necessary during parsing.

Re: [Dovecot] mysql auth failover failing

2011-09-15 Thread Paul B. Henson
On 9/15/2011 3:53 AM, Timo Sirainen wrote: I did several fixes related to this in v2.0 hg. I patched version 2.0.13 with these fixes and tested it out. As far as I can tell, it still doesn't do load balancing. When started, it only connects to the primary server, and as long as that server i

[Dovecot] dovecot-virtual folder configuration

2011-09-15 Thread Pierre
Hi all, Long story short, I'd like to configure a folder containing: INBOX (some other folders) -> unseen emails from these folders + all other emails (also seen) from the same thread -> seen emails from these folders, but only the recent ones + all other emails from the same thread I trie

[Dovecot] Detecting duplicate messages with sieve

2011-09-15 Thread Aleksandar Lazic
Dear Listmember, I use http://www.courier-mta.org/reformail.html for "Detecting duplicate messages" ### The -D option implements a simple way to delete duplicate messages in incoming mail. filename is a file that will be approximately 'len' bytes long. This file will be used by reformail to sav

Re: [Dovecot] mysql auth failover failing

2011-09-15 Thread Paul B. Henson
On 9/15/2011 3:53 AM, Timo Sirainen wrote: I did several fixes related to this in v2.0 hg. Cool, thanks. Any thoughts on when you'll release a new version including them? Looks like the relevant changesets are 0dffdc3bfad1, 3334c12a2b1a, c056bd23fdcc, 11273f581686, 1b829680dce4, 2b4e8c

[Dovecot] convert maildrop filter to sieve

2011-09-15 Thread Aleksandar Lazic
Dear list member, does anybody have a script which can convert maildrop filter to sive filter? BR Aleks

Re: [Dovecot] Sieve envelope :detail "to" "extention" does not deliver to fileinto destination

2011-09-15 Thread Aleksandar Lazic
Dear Stephan, On Don 15.09.2011 11:29, Stephan Bosch wrote: Op 12-9-2011 19:14, Aleksandar Lazic schreef: Is there a 'log' or 'print' command in the sieve filter or how can I write a message to the log file? With the latest Pigeonhole (0.2.4), you can use the vnd.dovecot.debug extension (whic

Re: [Dovecot] moving mail out of alt storage

2011-09-15 Thread Micah Anderson
Timo Sirainen writes: > On Wed, 2011-09-14 at 23:17 -0400, Micah Anderson wrote: >> I moved some mail into the alt storage: >> >> doveadm altmove -u jo...@example.com seen savedbefore 1w >> >> and now I want to move it back to the regular INBOX, but I can't see how >> I can do that with either

Re: [Dovecot] Shared folder not listing

2011-09-15 Thread Tom Clark
I have managed to sort this out myself. Initially I was missing the ending "." from the prefix. I also noted that %%d wasn't returning the domain correctly (mailbox instead of mailbox.com). I changed to using %d which worked fine (as I'm not sharing folders outside the domain). I'm not sure if thi

[Dovecot] unexpected LSUB / LIST (SUBSCRIBED) output Re: Panic: file mailbox-list-subscriptions.c: line 66 (mailbox_list_subscription_fill_one): assertion failed: (ns!= NULL && (ns->flags & NAMESPACE_

2011-09-15 Thread Lutz Preßler
On Thu, 15 Sep 2011, Timo Sirainen wrote: > On Wed, 2011-09-14 at 12:10 +0200, Lutz Preßler wrote: > > imap(2717, testuser): Panic: file mailbox-list-subscriptions.c: line > > 66 (mailbox_list_subscription_fill_one): assertion failed: (ns!= NULL > > && (ns->flags & NAMESPACE_FLAG_AUTOCREATED) != 0

Re: [Dovecot] dovecot Digest, Vol 101, Issue 26

2011-09-15 Thread Alan Brown
From: Timo Sirainen Subject: Re: [Dovecot] general advice sought Message-ID: <1315830847.7326.48.camel@hurina> Content-Type: text/plain; charset="ISO-8859-15" On Mon, 2011-09-12 at 13:11 +0100, Alan Brown wrote: I'd like to hear the thoughts of list members on which type of storage method seems

Re: [Dovecot] Shared folder not listing

2011-09-15 Thread Tom Clark
Fair enough. Here is output from doveconf -n # 2.0.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.35.6-45.fc14.x86_64 x86_64 Fedora release 14 (Laughlin) auth_debug_passwords = yes auth_verbose = yes auth_verbose_passwords = plain base_dir = /var/run/dovecot/ disable_plaintext_auth = no first_valid

Re: [Dovecot] Shared folder not listing

2011-09-15 Thread Charles Marcus
On 2011-09-15 9:40 AM, Tom Clark wrote: Have I missed anthing!?!? Only to please not copy/paste from your config files, but post output of doveconf -n. This ensures that your settings really are what you think they are. -- Best regards, Charles

[Dovecot] Shared folder not listing

2011-09-15 Thread Tom Clark
Hi Timo, I've got a weird problem on our dovecot. We're trying to setup private shared folder access. I have 2 users. t...@mailbox.com and sys...@mailbox.com. I have set the ACL's on all the folders (and subfolders) on sys...@mailbox.com. However, I'm not getting any of them listed when I

Re: [Dovecot] Warning: Subscriptions file .. Removing invalid entry:

2011-09-15 Thread Jan-Frode Myklebust
On Thu, Sep 15, 2011 at 02:50:08PM +0300, Timo Sirainen wrote: > > Sep 13 20:39:20 popimap1 dovecot: pop3(xx...@y.yy): Warning: > > I/O leak: 0x3829233d20 (10) > > Sep 13 20:39:20 popimap1 dovecot: pop3(xx...@y.yy): Warning: > > Timeout leak: 0x3829233ce0 > > Could you sh

Re: [Dovecot] mysql auth failover failing

2011-09-15 Thread Robert Schetterer
Am 15.09.2011 13:43, schrieb Timo Sirainen: > On Thu, 2011-09-15 at 13:39 +0200, Robert Schetterer wrote: >> >> is there really a native failover mysql in dovecot ? >> cant remember this , i only remember this as part of dovecot proxiing > > For SQL authentication it can use multiple SQL server ho

Re: [Dovecot] Warning: Subscriptions file .. Removing invalid entry:

2011-09-15 Thread Timo Sirainen
On Wed, 2011-09-14 at 09:12 +0200, Jan-Frode Myklebust wrote: > One of our dovecot-servers (v2.0.14) got a bit too busy last evening: > > Sep 13 20:39:18 popimap1 dovecot: master: Warning: service(pop3-login): > process_limit reached, client connections are being dropped > > then logged a

Re: [Dovecot] multiple "imapc namespaces" Re: imapc and imap_acl

2011-09-15 Thread Timo Sirainen
On Tue, 2011-09-13 at 18:58 +0200, Lutz Preßler wrote: > On Tue, 13 Sep 2011, Lutz Preßler wrote: > > On Di, 13 Sep 2011, Timo Sirainen wrote: > > > mail_location = imapc:~/imapc > > Oh, had not realized that a path argument is possible for imapc:. There are > > even index file then... > What about

Re: [Dovecot] mysql auth failover failing

2011-09-15 Thread Timo Sirainen
On Thu, 2011-09-15 at 13:39 +0200, Robert Schetterer wrote: > > is there really a native failover mysql in dovecot ? > cant remember this , i only remember this as part of dovecot proxiing For SQL authentication it can use multiple SQL server hosts (with both MySQL and PostgreSQL) and do HA/load

Re: [Dovecot] sharing of non-INBOX namespaces? Re: imapc and imap_acl

2011-09-15 Thread Lutz Preßler
On Do, 15 Sep 2011, Timo Sirainen wrote: > On Thu, 2011-09-15 at 12:46 +0200, Lutz Preßler wrote: > > I have a more general problem now: shared mailboxes from any "non-INBOX" > > namespace are not available to other users. That's not only with virtual or > > imapc namespaces, but also tested with

Re: [Dovecot] mysql auth failover failing

2011-09-15 Thread Robert Schetterer
Am 15.09.2011 12:53, schrieb Timo Sirainen: > On Fri, 2011-09-09 at 19:33 -0700, Paul B. Henson wrote: > >> Sep 9 15:47:34 tweak dovecot: auth: Error: >> mysql(mysql-1.unx.csupomona.edu): Connect failed to database (idmgmt): >> Can't connect to MySQL server on 'mysql-1.unx.csupomona.edu' (111)

Re: [Dovecot] sharing of non-INBOX namespaces? Re: imapc and imap_acl

2011-09-15 Thread Timo Sirainen
On Thu, 2011-09-15 at 12:46 +0200, Lutz Preßler wrote: > I have a more general problem now: shared mailboxes from any "non-INBOX" > namespace are not available to other users. That's not only with virtual or > imapc namespaces, but also tested with two Maildir ones: > namespace others { > type =

Re: [Dovecot] mysql auth failover failing

2011-09-15 Thread Timo Sirainen
On Fri, 2011-09-09 at 19:33 -0700, Paul B. Henson wrote: > Sep 9 15:47:34 tweak dovecot: auth: Error: > mysql(mysql-1.unx.csupomona.edu): Connect failed to database (idmgmt): > Can't connect to MySQL server on 'mysql-1.unx.csupomona.edu' (111) - > waiting for 1 seconds before retry I did seve

[Dovecot] sharing of non-INBOX namespaces? Re: imapc and imap_acl

2011-09-15 Thread Lutz Preßler
Hi, On Tue, 13 Sep 2011, Lutz Preßler wrote: > On Di, 13 Sep 2011, Timo Sirainen wrote: > > You mean you'd want local ACLs that apply to imapc mailboxes? > Yes, exactly. Great for "integrating" legacy IMAP servers without e.g. > ACL support. > > I think that should work. For example if you set: >

Re: [Dovecot] LDA panics without sieve script

2011-09-15 Thread g033
On Thu, 15 Sep 2011 12:34:33 +0300, Timo Sirainen wrote: On Wed, 2011-09-14 at 21:22 +0200, Jürgen Obermann wrote: The dovecot lda panics with "Trying to sync mailbox INBOX with open transactions" if a user has no sieve script defined. Debugging shows: Fixed: http://hg.dovecot.org/dovecot-2

Re: [Dovecot] Maildir "locking"

2011-09-15 Thread Attila Nagy
On 09/15/11 11:43, Timo Sirainen wrote: On Thu, 2011-09-15 at 11:37 +0200, Attila Nagy wrote: So you have a proxy that decides what backend server the connections are redirected to? How about you do it completely without locking with dsync? Moving between servers works basically the same as conv

Re: [Dovecot] Maildir "locking"

2011-09-15 Thread Timo Sirainen
On Thu, 2011-09-15 at 11:37 +0200, Attila Nagy wrote: > > So you have a proxy that decides what backend server the connections are > > redirected to? How about you do it completely without locking with > > dsync? Moving between servers works basically the same as converting a > > mailbox format, wi

Re: [Dovecot] Maildir "locking"

2011-09-15 Thread Attila Nagy
On 09/15/11 10:39, Timo Sirainen wrote: On Thu, 2011-09-15 at 10:25 +0200, Attila Nagy wrote: What is the best way to do this? If there is no such thing currently, would it be hard to implement the sticky bit checking on the root? dovecot-uidlist.lock basically does this. Dovecot comes with mai

Re: [Dovecot] LDA panics without sieve script

2011-09-15 Thread Timo Sirainen
On Wed, 2011-09-14 at 21:22 +0200, Jürgen Obermann wrote: > The dovecot lda panics with "Trying to sync mailbox INBOX with open > transactions" if a user has no sieve script defined. Debugging shows: Fixed: http://hg.dovecot.org/dovecot-2.0/rev/0264ac68c770

Re: [Dovecot] Sieve envelope :detail "to" "extention" does not deliver to fileinto destination

2011-09-15 Thread Stephan Bosch
Op 12-9-2011 19:14, Aleksandar Lazic schreef: Is there a 'log' or 'print' command in the sieve filter or how can I write a message to the log file? With the latest Pigeonhole (0.2.4), you can use the vnd.dovecot.debug extension (which is not available by default and therefore needs to be adde

Re: [Dovecot] movming mail out of alt storage

2011-09-15 Thread Timo Sirainen
On Wed, 2011-09-14 at 23:17 -0400, Micah Anderson wrote: > I moved some mail into the alt storage: > > doveadm altmove -u jo...@example.com seen savedbefore 1w > > and now I want to move it back to the regular INBOX, but I can't see how > I can do that with either 'altmove' or 'mailbox move'. Is

Re: [Dovecot] Maildir "locking"

2011-09-15 Thread Timo Sirainen
On Thu, 2011-09-15 at 10:25 +0200, Attila Nagy wrote: > >> What is the best way to do this? If there is no such thing currently, > >> would it be hard to implement the sticky bit checking on the root? > > dovecot-uidlist.lock basically does this. Dovecot comes with maildirlock > > utility to proper

Re: [Dovecot] Maildir "locking"

2011-09-15 Thread Attila Nagy
On 09/15/11 10:19, Timo Sirainen wrote: On Wed, 2011-09-14 at 13:32 +0200, Attila Nagy wrote: Hello, I'm looking for the alternative of qmail's chmod -t (sticky bit on the maildir root) for Dovecot. What I'm trying to achieve with this lock: - Dovecot lmtp should give back a temporary error (so

Re: [Dovecot] Maildir "locking"

2011-09-15 Thread Timo Sirainen
On Wed, 2011-09-14 at 13:32 +0200, Attila Nagy wrote: > Hello, > > I'm looking for the alternative of qmail's chmod -t (sticky bit on the > maildir root) for Dovecot. What I'm trying to achieve with this lock: > - Dovecot lmtp should give back a temporary error (so the email will be > deferred a

Re: [Dovecot] imapc vs auth-userdb security

2011-09-15 Thread Timo Sirainen
On Wed, 2011-09-14 at 13:57 +0200, Lutz Preßler wrote: > On Mi, 14 Sep 2011, Timo Sirainen wrote: > > > On 14.9.2011, at 14.40, Lutz Preßler wrote: > > > > > with imapc settings coming from userdb (individual configuration > > > necessary) > > > there exists a security problem if access to auth-