Re: [Dovecot] nfs director

2010-09-01 Thread Seth Mattinen
On 8/31/2010 10:22, Ariel Biener wrote: > > Oh, and Timo, I don't think we are just "a couple of NFS users". Maildir > and NFS are not as uncommon as > you'd think, even in very large installations. > NFS with maildir has been the gold standard for a long time, whether the NFS server be boxes

Re: [Dovecot] nfs director

2010-09-01 Thread Edward avanti
On Wed, Sep 1, 2010 at 8:53 PM, Noel Butler wrote: > On Sat, 2010-08-28 at 09:18 +0200, Cor Bosman wrote: > > > > > > imap access is not common in this country, it is in fact extremely rare, > common only for webmail servers. > > Much of Asia also no use imap as primary mail for customer > > Al

Re: [Dovecot] [DC2.x ]pop3-login seg faults when compiled with gcc 4.5.2 and gold

2010-09-01 Thread interfaSys sàrl
On 02/09/2010 00:35, Timo Sirainen wrote: > On 1.9.2010, at 23.35, interfaSys sàrl wrote: > >> Adding sleep() didn't change anything, it crashes right from the start >> and there isn't much info in the trace. It seems it cannot create the >> first thread. > ... >> #0 0x000800a29fa1 in _pthr

Re: [Dovecot] [DC2.x ]pop3-login seg faults when compiled with gcc 4.5.2 and gold

2010-09-01 Thread Timo Sirainen
On 1.9.2010, at 23.35, interfaSys sàrl wrote: > Adding sleep() didn't change anything, it crashes right from the start > and there isn't much info in the trace. It seems it cannot create the > first thread. .. > #0 0x000800a29fa1 in _pthread_mutex_init_calloc_cb () from > /lib/libc.so.7 I wo

Re: [Dovecot] [DC2.x ]pop3-login seg faults when compiled with gcc 4.5.2 and gold

2010-09-01 Thread interfaSys sàrl
On 01/09/2010 20:08, Timo Sirainen wrote: > On Mon, 2010-08-30 at 16:52 +0100, interfaSys sàrl wrote: > >> On FreeBSD, Dovecot 2.0.1 compiles fine with gcc45 and the other >> services have no problem, but even without any optimizations (CFLAGS) at >> all, pop3-login seg faults when a user tries

Re: [Dovecot] Segfault on dovecot 2.0.1 w/ACLs

2010-09-01 Thread Michael M. Slusarz
Quoting Timo Sirainen : On Tue, 2010-08-31 at 23:17 -0600, Michael M. Slusarz wrote: 5 LIST (SUBSCRIBED) "" (*) RETURN (SUBSCRIBED) * LIST (\Subscribed) "." "INBOX" [...] * LIST (\Subscribed) "." "Mileage Plus" Program received signal SIGSEGV, Segmentation fault. 0x76d0cd61 in ?? () fr

Re: [Dovecot] Passdb filter question - LDAP.

2010-09-01 Thread Timo Sirainen
On Wed, 2010-09-01 at 16:32 -0300, Lauro Costa G. Borges wrote: > --> Is it possible to make the passdb filter in a way it searches for If you can get the wanted fields by running ldapsearch command line tool once, you can do it with Dovecot's filters. > the mail account information (under ser

Re: [Dovecot] bogus fts percentage

2010-09-01 Thread Timo Sirainen
On Mon, 2010-08-30 at 12:54 -0500, Mike Abbott wrote: > Sometimes dovecot-2.0 sends this untagged response to clients: > * OK Indexed -2147483648% of the mailbox, ETA 0:00 > > I imagine there's a bug in there somewhere. Well, I guess this fixes it: http://hg.dovecot.org/dovecot-2.0/rev/1012052e2e

Re: [Dovecot] Passdb filter question - LDAP.

2010-09-01 Thread Lauro Costa G. Borges
I'm gonna try to ask more clearly, I guess I'm having a little difficulty to explain the problem. Dovecot 1.2 --- I'm using LDAP passdb lookups, with prefetch. I have two places on my LDAP tree where I get user information: an identities subtree, and a services subtree. For LDA,

Re: [Dovecot] Filtering virtual mailbox using other virtual mailbox?

2010-09-01 Thread Timo Sirainen
On Sun, 2010-08-29 at 15:28 +0200, Giovanni Giorgi wrote: > I have a virtual/spam mailbox which filter out all the spam thanks to > spamassassin. This mailbox is virtual, its description is > INBOX > -Trash > -Trash/* > -Junk > subject SPAM The above only shows messages in INBOX that have "SPA

Re: [Dovecot] Shared mail folders

2010-09-01 Thread Timo Sirainen
On Sun, 2010-08-29 at 23:20 +0100, Ian macdonald wrote: > IMAP(peter): userdb lookup: connect(/var/run/dovecot/auth-master) > failed: No such file or directory > dovecot: IMAP(peter): Namespace 'shared/': Could not lookup home for > user ian You need to setup auth-master socket. For example http

Re: [Dovecot] Virtual plugin speedup?

2010-09-01 Thread Timo Sirainen
On Wed, 2010-09-01 at 21:08 +0200, Giovanni Giorgi wrote: > Hi, I am using the virtual plugin on divecot2. It seems a bit slow > when accessing from my iPhone. How can I speed it up? The full text > search plugin can help? It depends on what exactly is slow. You could try figuring that out by

Re: [Dovecot] [DC2.x ]pop3-login seg faults when compiled with gcc 4.5.2 and gold

2010-09-01 Thread Timo Sirainen
On Mon, 2010-08-30 at 16:52 +0100, interfaSys sàrl wrote: > On FreeBSD, Dovecot 2.0.1 compiles fine with gcc45 and the other > services have no problem, but even without any optimizations (CFLAGS) at > all, pop3-login seg faults when a user tries to connect to Dovecot using > POP3. If you can fig

[Dovecot] Virtual plugin speedup?

2010-09-01 Thread Giovanni Giorgi
Hi, I am using the virtual plugin on divecot2. It seems a bit slow when accessing from my iPhone. How can I speed it up? The full text search plugin can help? Inviato da iPhone

Re: [Dovecot] nfs director

2010-09-01 Thread Cor Bosman
Hi, > Postfix has this issue as well. So does qmail. So does exim. It has nothing > to do with the software being used. It is a problem in the NFS protocol. Just to be clear. Of course these programs wont have this issue when used with dovecot-imap, because obviously they wont be updating any dov

Re: [Dovecot] Help with Public Folder Configuration

2010-09-01 Thread Timo Sirainen
On Tue, 2010-08-31 at 15:38 +0530, Joy wrote: > plugin { > acl = vfile:/usr/local/dovecot/dovecot-acl/acl > } Having dovecot/dovecot-acl/acl/ as the path to global ACLs seems a bit redundant (why not /usr/local/dovecot/acl/?). > after making this configuration i also created subfolder inside >

Re: [Dovecot] Broken SELECT ""/EXAMINE ""

2010-09-01 Thread Brad Davidson
Charles, > -Original Message- > > On 2010-09-01 3:50 AM, Brandon Davidson wrote: > > Imapproxy is naive and only reads capabilities from the initial > > banner - it doesn't refresh them after login. If you make sure > > they're in the initial capability list it will behave properly. > >

Re: [Dovecot] 2.0 migration weirdnesses: logs and hang

2010-09-01 Thread Kyle Wheeler
On Wednesday, September 1 at 06:08 PM, quoth Timo Sirainen: On Wed, 2010-08-25 at 15:34 -0500, Kyle Wheeler wrote: Attached. It looks like the rest of the commands in the same packet after mutt told Dovecot that it was "DONE" with IDLE were ignored. Hmh. I can't seem to find anything wrong wi

Re: [Dovecot] Some questions about Shared mailboxes

2010-09-01 Thread Timo Sirainen
On Fri, 2010-08-27 at 09:58 +0300, Mihajlin Evgenij wrote: > Hi, again. > > 1. Can somebody explain me about dovecot's shared mailboxes? What specifically is unclear in http://wiki2.dovecot.org/SharedMailboxes/Shared that could be improved? > 2. What does it do while searching shared mailboxes (

Re: [Dovecot] Shared mailboxes with dovecot.

2010-09-01 Thread Timo Sirainen
On Thu, 2010-08-26 at 16:13 +0300, Mihajlin Evgenij wrote: > > mail_location = maildir:/var/spool/vmail/domains/%d/%n/Maildir > namespace { > location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u These don't match. You're now using home dir in one but not the other. > user_attrs = > =hom

Re: [Dovecot] Shared mailboxes with dovecot.

2010-09-01 Thread Timo Sirainen
On Thu, 2010-08-26 at 16:13 +0300, Mihajlin Evgenij wrote: > Hi, first of all for forgive me for my english. > > I have several questions. > 1. There are 2 user/passwd databases in my setup - ldap and mysql. when i > login into one user with telnet 127.0.0.1 143 and share inbox to some users -

Re: [Dovecot] doveadm search/expunge with public folders

2010-09-01 Thread Timo Sirainen
On Thu, 2010-08-26 at 12:23 +0200, Ralf Zimmermann wrote: > can I expunge or search emails in public folders? http://hg.dovecot.org/dovecot-2.0/rev/267385a0ccd3 should help.

Re: [Dovecot] (no subject)

2010-09-01 Thread Alexander Cherniak
That's quite logical, but Outlook still shows unfriendly messages in other cases, for example, Cannot copy the items. The server responded: 'NOPERM] Permission denied' when user drops messages into the folder without the 'i' permission. -Original Message- From: Timo Sirainen [mailto:t.

Re: [Dovecot] My "%%" variables in the namespace settings do not appear to be expanding.

2010-09-01 Thread Timo Sirainen
On Tue, 2010-08-31 at 11:33 +0100, Kenneth Cope wrote: > I can not get the %% variable expansion in a namespace to work. > What I end up with, on an IMAP connection is a directory named, for > instance, '%h'. The same goes for any of the %% variables used at > this point. My curre

Re: [Dovecot] nfs director

2010-09-01 Thread Cor Bosman
Hi Noel, if you dont need the director, then thats great right? Why does anyone need to justify anything? Just dont use it, end of discussion. Those of us that do have a need for it, can use it anyways. Even without your agreement? Is that such a big problem? > we have a some total of 2 imap serv

Re: [Dovecot] (no subject)

2010-09-01 Thread Timo Sirainen
Dovecot doesn't give error in such case, because some clients (probably Outlook too) would start showing user alert boxes every time when a message is read, complaining about not having permissions to change message flags. On Wed, 2010-09-01 at 11:51 -0500, Alexander Cherniak wrote: > I checked bo

Re: [Dovecot] 2.0 migration weirdnesses: logs and hang

2010-09-01 Thread Timo Sirainen
On Wed, 2010-08-25 at 15:34 -0500, Kyle Wheeler wrote: > Attached. It looks like the rest of the commands in the same packet > after mutt told Dovecot that it was "DONE" with IDLE were ignored. Hmh. I can't seem to find anything wrong with the code. I also tried mutt (1.5.20-7ubuntu1) with imap_i

Re: [Dovecot] (no subject)

2010-09-01 Thread Alexander Cherniak
I checked both Outlook 2007 and 2010. The "red" flag get updated in local PST file, but not on the server. There is also no warning about the failure. Outlook Express behaves exactly the same. Although, eventually sync does happen after some period of time... \Seen flag behaves differently. Outl

Re: [Dovecot] configure forgets to add -lgcc_s under Solaris 10

2010-09-01 Thread Stephan Schulz
Am 01.09.2010 17:46, schrieb Timo Sirainen: On Wed, 2010-09-01 at 08:10 +0200, Stephan Schulz wrote: Yes, I have no problem compiling and using for example GNU-grep, GNU-patch, GNU-make, pkg-config, GNU-tar or the latest xz-utils without having to set the LIBS environment variable. (I hope th

Re: [Dovecot] Lazy expunge plugin - delete folder result error.

2010-09-01 Thread Timo Sirainen
On Tue, 2010-08-31 at 13:15 -0700, Kui Zhang wrote: > >> when try to delete the same folder again. > >> > >> Server Responded: "NONEXISTENT] Mailbox was deleted under us" > > > > This is still a bug .. I'll see about fixing it. With the bug I meant only the above error. http://hg.dovecot.org/dovec

Re: [Dovecot] Segfault on dovecot 2.0.1 w/ACLs

2010-09-01 Thread Timo Sirainen
On Tue, 2010-08-31 at 23:17 -0600, Michael M. Slusarz wrote: > 5 LIST (SUBSCRIBED) "" (*) RETURN (SUBSCRIBED) > * LIST (\Subscribed) "." "INBOX" > [...] > * LIST (\Subscribed) "." "Mileage Plus" > > Program received signal SIGSEGV, Segmentation fault. > 0x76d0cd61 in ?? () from /usr/lib/do

Re: [Dovecot] Dovecot - some more optimisations

2010-09-01 Thread Timo Sirainen
On Wed, 2010-09-01 at 16:25 +0100, Timo Sirainen wrote: > http://hg.dovecot.org/dovecot-2.0/rev/e9358064c45e Whops, messed up that one. http://hg.dovecot.org/dovecot-2.0/rev/0c73829cd1f8

Re: [Dovecot] (no subject)

2010-09-01 Thread Timo Sirainen
On Tue, 2010-08-31 at 14:26 -0500, Alexander Cherniak wrote: > Unfortunately, mail clients do not always cooperate, Outlook in > particular still allows to set message flags in folders without "wst" > ACLs. Can somebody recommend comparative analysis with configuration > options? You mean Outlook

Re: [Dovecot] Static passdb support?

2010-09-01 Thread Timo Sirainen
On Tue, 2010-08-31 at 13:12 -0700, Brad Davidson wrote: > Awesome! I was just looking at wiki2 and didn't see it there. Added now: http://wiki2.dovecot.org/PasswordDatabase/Static > Any special caveats? Can't think of any. > > -Original Message- > > From: Timo Sirainen [mailto:t...@iki.

Re: [Dovecot] doveadm expunge -A mailbox Trash savedbefore 30d iterate_query LDAP

2010-09-01 Thread Timo Sirainen
On Tue, 2010-08-31 at 14:48 -0700, Tomislav Mihalicek wrote: > >> Aug 31 10:03:35 cartman2 dovecot: auth: Fatal: > >> net_connect_unix(auth-worker) > >> failed: Permission denied Try: chmod 0755 /var/run/dovecot Also next Dovecot version will do that automatically.

Re: [Dovecot] doveadm quota get -u some...@ourdomains.com

2010-09-01 Thread Timo Sirainen
On Tue, 2010-08-31 at 20:46 -0400, Jerrale G wrote: > On 8/31/2010 5:03 PM, Timo Sirainen wrote: > > On 31.8.2010, at 21.42, Jerrale G wrote: > > > >> we have the mail_plugins defined differently for each protocol > >> ({imap=quota,expire,imap_quota} {pop3=quota,expire} > >> {lda=quota,expire,sie

Re: [Dovecot] configure forgets to add -lgcc_s under Solaris 10

2010-09-01 Thread Timo Sirainen
On Wed, 2010-09-01 at 08:10 +0200, Stephan Schulz wrote: > Yes, I have no problem compiling and using for example GNU-grep, > GNU-patch, GNU-make, pkg-config, GNU-tar or the latest xz-utils without > having to set the LIBS environment variable. (I hope that this is a > little bit representative

Re: [Dovecot] Broken SELECT ""/EXAMINE ""

2010-09-01 Thread Timo Sirainen
On Wed, 2010-09-01 at 01:18 -0600, Michael M. Slusarz wrote: > a EXAMINE "" > a NO Empty mailbox name. > [Should be in authenticated mode with no active mailbox. But...] Yeah, that's a bug. Fixed: http://hg.dovecot.org/dovecot-2.0/rev/a428dd6fe3e7 http://hg.dovecot.org/dovecot-1.2/rev/63857c49

Re: [Dovecot] Broken SELECT ""/EXAMINE ""

2010-09-01 Thread Timo Sirainen
On Wed, 2010-09-01 at 00:50 -0700, Brandon Davidson wrote: > Imapproxy is naive and only reads capabilities from the initial banner - it > doesn't refresh them after login. And just to be clear: imapproxy *ignores* updated capabilities that Dovecot sends to it. "Refresh" word sounds like it would

Re: [Dovecot] Dovecot - some more optimisations

2010-09-01 Thread Timo Sirainen
On Wed, 2010-09-01 at 13:23 +0200, Len7hir wrote: > And another problem. Why You use safe_memset instead of memset? > Now this function have the largest impact in Dovecot performance. Really? I'd think it would be called very rarely since it should be used only for password-related data. I anyway

Re: [Dovecot] Dovecot - some more optimisations

2010-09-01 Thread Len7hir
In dovecot-patch2.diff data = _stream->buffer + _stream->skip; Should be: data = (unsigned char *)_stream->buffer + _stream->skip; Sorry for this :P -- Len7hir

Re: [Dovecot] Dovecot creating aditional folders?

2010-09-01 Thread Pablo
Yes Bill and Charles!!! Thank you again, not only solved my folder problem, but I've solved accesing to my emails too! :-)) Thank you very much, I understand now how dovecot, sql and postfix work together. 2010/9/1 Charles Marcus : > On 2010-09-01 7:35 AM, Pablo wrote: >> password_query = SELEC

Re: [Dovecot] Dovecot creating aditional folders?

2010-09-01 Thread Charles Marcus
On 2010-09-01 7:35 AM, Pablo wrote: > password_query = SELECT password FROM mailbox WHERE username = '%n' > user_query = SELECT maildir, 1001 AS uid, 1001 AS gid FROM mailbox > WHERE username = '%n' > > Now I think it's all right. Depending on your requirements, you might consider changing it to

Re: [Dovecot] Dovecot creating aditional folders?

2010-09-01 Thread William Blunn
On 01/09/2010 12:10, Pablo wrote: Thank you again. Yes, you're on the way :-) Problem was that in /etc/dovecot/dovecot.conf was: mail_location = maildir:/home/vmail/%u/ instead of my new line: mail_location = maildir:/home/vmail/%d/%u/ Are you sure that you want %d/%u and not %d/%n ?

Re: [Dovecot] Dovecot creating aditional folders?

2010-09-01 Thread Pablo
Sorry, was not solved. I've changed in dovecot-sql.conf: password_query = SELECT password FROM mailbox WHERE username = '%u' user_query = SELECT maildir, 1001 AS uid, 1001 AS gid FROM mailbox WHERE username = '%u' by: password_query = SELECT password FROM mailbox WHERE username = '%n' user_quer

[Dovecot] Dovecot - some more optimisations

2010-09-01 Thread Len7hir
I did some more optimisation. Most performance hit in Dovecot do "for loop" in string operations. In one case (in message-parser.c) "for loop" has another "for" inside with the same variable used as iterator. This case is very hard to optimise by compiler. I do changes only in top functions

Re: [Dovecot] Dovecot creating aditional folders?

2010-09-01 Thread Pablo
Thank you again. Yes, you're on the way :-) Problem was that in /etc/dovecot/dovecot.conf was: mail_location = maildir:/home/vmail/%u/ instead of my new line: mail_location = maildir:/home/vmail/%d/%u/ I think it's all right now. Well...not all right, I see no mails with a client (it's on the

Re: [Dovecot] nfs director

2010-09-01 Thread Noel Butler
On Sat, 2010-08-28 at 09:18 +0200, Cor Bosman wrote: > Noel, I think you just dont quite understand the problem the director is > solving. > > The issue is that NFS is not lock-safe over multiple servers. We have 35 > imap servers accessing a central NFS cluster. (we have over a million > mailbo

Re: [Dovecot] Dovecot creating aditional folders?

2010-09-01 Thread Charles Marcus
On 2010-09-01 5:05 AM, Pablo wrote: > Sep 1 10:58:30 socrates dovecot: auth-worker(default): > sql(pablo.rodrig...@escuelasuperiordecoaching.com,127.0.0.1): SELECT > maildir, 1001 AS uid, 1001 AS gid FROM mailbox WHERE username = > 'pablo.rodrig...@escuelasuperiordecoaching.com' > Sep 1 10:58:30

Re: [Dovecot] Broken SELECT ""/EXAMINE ""

2010-09-01 Thread Charles Marcus
On 2010-09-01 3:50 AM, Brandon Davidson wrote: > Imapproxy is naive and only reads capabilities from the initial > banner - it doesn't refresh them after login. If you make sure > they're in the initial capability list it will behave properly. Hopefully you or someone opened a bug with them to f

Re: [Dovecot] sieve + homedirectory

2010-09-01 Thread spamvoll
ok solved it user_attrs = uid=home=/home/MAILBOXES/%$/,home=mail=maildir:~/mail thx 2010/9/1 : > hi.. > > system: dovecot 2.0.1 + pigenhole > > my global sieve script is used but my users sieve scrips not. > the user scripts arent even compiled. > so i think the problem is with the home path >

Re: [Dovecot] Dovecot creating aditional folders?

2010-09-01 Thread Pablo
Thank you for your response. Yes, I know that I'm using maildir, but when we create an account, file sistem look likes: /home/vmail/domain.com/user1/new /home/vmail/domain.com/user1/cur /home/vmail/domain.com/user1/tmp My problem is that dovecot is creating additional folders: /home/vmail/user1

[Dovecot] sieve + homedirectory

2010-09-01 Thread spamvoll
hi.. system: dovecot 2.0.1 + pigenhole my global sieve script is used but my users sieve scrips not. the user scripts arent even compiled. so i think the problem is with the home path im using ldap as userdb (ive tryed staticdb but i need the uid from my ldap, path is /home/MAILBOXES/hpeter/mail

[Dovecot] Dovecot creating aditional folders?

2010-09-01 Thread Pablo
Hi guys. My conf: # 1.2.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-23-server x86_64 Ubuntu 10.04.1 LTS reiserfs log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/mail/dovecot.crt ssl_key_file: /etc/ssl/mail/dovecot.key disable_plaintext_auth: no login_

Re: [Dovecot] Broken SELECT ""/EXAMINE ""

2010-09-01 Thread Brandon Davidson
Michael, On 9/1/10 12:18 AM, "Michael M. Slusarz" wrote: > imapproxy *should* really be using UNSELECT, but that looks like a > different (imapproxy) bug. I run imapproxy too. If you're using Dovecot 2.0, set: imap_capability = +UNSELECT IDLE Imapproxy is naive and only reads capabilities from

Re: [Dovecot] vpopmail auth always return "unknown user"

2010-09-01 Thread Toorop
Le 31/08/2010 20:35, Timo Sirainen a écrit : .. #1 0x0041f735 in vpopmail_lookup (auth_request=0x23c4358, callback=0x410770) at userdb-vpopmail.c:99 _module = 0x23b13f0 Yeah, vpopmail keeps changing their APIs in ways I have no idea what to do to fix it. So here's my soluti

[Dovecot] Broken SELECT ""/EXAMINE ""

2010-09-01 Thread Michael M. Slusarz
a EXAMINE INBOX [...] a OK [READ-ONLY] Select completed. a EXAMINE "" a NO Empty mailbox name. [Should be in authenticated mode with no active mailbox. But...] a STATUS INBOX (UIDVALIDITY) * STATUS "INBOX" (UIDVALIDITY 1255685337) a OK [CLIENTBUG] Status on selected mailbox completed. a UNSELECT