Re: [Dovecot] Multiple "mail" field in one LDAP account

2008-10-16 Thread Proskurin Kirill
Yes I understand - it must be a stupid question but could some one explain it to me? Im aware of problems what lack of understanding may give. Proskurin Kirill wrote: Timo Sirainen wrote: On Oct 16, 2008, at 12:09 PM, Proskurin Kirill wrote: pass_attrs = mail=user,userPassword=password You

[Dovecot] imap crash "Message count decreased" (1.1.4)

2008-10-16 Thread Heiko Schlichting
During crash coredumpsize was set to 0, so there is no dump and no gdb backtrace. Maybe the log entry is still helpful: Oct 10 16:10:41 b6:Uruguay dovecot: imap[21184]: user=<[EMAIL PROTECTED]>, Disconnected for inactivity in reading our output bytes=339/191358 Oct 10 16:10:41 b2:Uruguay dovecot:

Re: [Dovecot] Backtrace of /usr/local/libexec/dovecot/imap

2008-10-16 Thread Ralf Hildebrandt
* Timo Sirainen <[EMAIL PROTECTED]>: > On Oct 16, 2008, at 7:04 PM, Ralf Hildebrandt wrote: > >> My batch file uses: >> bt full >> p my_client.command_queue >> p my_client.command_queue.next > > Looks like I forgot *, so for future: Change these to p *my_client... Added it now. >> $1 = (struct cl

Re: [Dovecot] Backtrace of /usr/local/libexec/dovecot/imap

2008-10-16 Thread Timo Sirainen
On Oct 16, 2008, at 7:04 PM, Ralf Hildebrandt wrote: My batch file uses: bt full p my_client.command_queue p my_client.command_queue.next Looks like I forgot *, so for future: Change these to p *my_client... $1 = (struct client_command_context *) 0x84a2088 $2 = (struct client_command_context

[Dovecot] Backtrace of /usr/local/libexec/dovecot/imap

2008-10-16 Thread Ralf Hildebrandt
My batch file uses: bt full p my_client.command_queue p my_client.command_queue.next p my_client.command_queue.next.next p my_client.command_queue.next.next.next p my_client.command_queue.next.next.next.next p my_client.command_queue.next.next.next.next.next p my_client.command_queue.next.next.next

Re: [Dovecot] Multiple maildirs

2008-10-16 Thread Timo Sirainen
On Oct 16, 2008, at 6:12 PM, Charles Marcus wrote: Probably compiled with 32bit off_t, which prevents opening files >2GB. Compiling with 64bit off_t should be pretty easy with Linux, but I don't know if Postfix can be configured to do that without modifying Makefile manually (-D_FILE_OFFSE

Re: [Dovecot] Problem with namespaces

2008-10-16 Thread Tim Bishop
On Thu, Oct 16, 2008 at 06:03:41PM +0300, Timo Sirainen wrote: > On Thu, 2008-10-16 at 15:51 +0100, Tim Bishop wrote: > > The ~/Mail folder contains just two folders. The config given to imapd > > is as follows: > > > > MAIL=mbox:/home/cut/jru2/Mail:INBOX=/home/cut/jru2/.mail:INDEX=/var/state/dove

Re: [Dovecot] Multiple maildirs

2008-10-16 Thread Charles Marcus
On 10/16/2008 11:01 AM, Timo Sirainen wrote: > On Thu, 2008-10-16 at 10:29 -0400, Charles Marcus wrote: >> On 10/16/2008 10:12 AM, Vassilis Vatikiotis wrote: >>> Unfortunately no, and this is a Postfix limitation. Postfix has a >>> hardcoded upper limit for mbox sizes, which is 2GB on 32bit machine

Re: [Dovecot] Problem with namespaces

2008-10-16 Thread Timo Sirainen
On Thu, 2008-10-16 at 15:51 +0100, Tim Bishop wrote: > The ~/Mail folder contains just two folders. The config given to imapd > is as follows: > > MAIL=mbox:/home/cut/jru2/Mail:INBOX=/home/cut/jru2/.mail:INDEX=/var/state/dovecot-indexes/jru2 > NAMESPACE_1=mbox:/home/cut/jru2/Mail:INBOX=/home/cut/j

Re: [Dovecot] Multiple maildirs

2008-10-16 Thread Timo Sirainen
On Thu, 2008-10-16 at 10:29 -0400, Charles Marcus wrote: > On 10/16/2008 10:12 AM, Vassilis Vatikiotis wrote: > > Unfortunately no, and this is a Postfix limitation. Postfix has a > > hardcoded upper limit for mbox sizes, which is 2GB on 32bit machines, > > I really don't think that is correct - i

[Dovecot] Problem with namespaces

2008-10-16 Thread Tim Bishop
[1.1.4 with http://hg.dovecot.org/dovecot-1.1/rev/b61424a50786 applied] I'm trying to use namespaces as described here for UW-IMAP compatibility: http://wiki.dovecot.org/Namespaces But I'm getting a problem with the hidden namespaces showing up in the LIST output. Here is a simplified transcript.

Re: [Dovecot] Virtual Domains and Master Users

2008-10-16 Thread Roderick A. Anderson
Timo Sirainen wrote: On Thu, 2008-10-16 at 06:28 -0700, Roderick A. Anderson wrote: Does the IMAP specification call for Master Users (I don't remember seeing it?) No. Or is this an implementation specific (Dovecot, et al.) _feature_? Yes. How difficult would it be to make per-domain ma

Re: [Dovecot] Multiple maildirs

2008-10-16 Thread Charles Marcus
On 10/16/2008 10:12 AM, Vassilis Vatikiotis wrote: > Unfortunately no, and this is a Postfix limitation. Postfix has a > hardcoded upper limit for mbox sizes, which is 2GB on 32bit machines, I really don't think that is correct - it is more a filesystem limitation. I don't think Postfix cares how

Re: [Dovecot] Multiple maildirs

2008-10-16 Thread Vassilis Vatikiotis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo Sirainen wrote: > On Oct 16, 2008, at 5:12 PM, Vassilis Vatikiotis wrote: > >>> Can they be different mailboxes then? So /var/spool/mail/%u is INBOX and >>> the other mailboxes are in ~/Maildir? That'd be easy: >>> >>> mail_location = maildir:~

Re: [Dovecot] Multiple maildirs

2008-10-16 Thread Timo Sirainen
On Oct 16, 2008, at 5:12 PM, Vassilis Vatikiotis wrote: Can they be different mailboxes then? So /var/spool/mail/%u is INBOX and the other mailboxes are in ~/Maildir? That'd be easy: mail_location = maildir:~/Maildir:INBOX=/var/spool/mail/%u Unfortunately no, and this is a Postfix limitatio

Re: [Dovecot] Multiple maildirs

2008-10-16 Thread Vassilis Vatikiotis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo Sirainen wrote: > On Thu, 2008-10-16 at 15:18 +0300, Vassilis Vatikiotis wrote: What I want to achieve is receive mail in /var/spool/mail, which is going to contain 1 Maildir per user, and have /home/%u/Maildir/ to store (move) me

[Dovecot] quota-warning.sh mail from

2008-10-16 Thread Proskurin Kirill
Hello all How Dovecot 1.1.3 quota script understand to who send a mail? In try to do this: In conf: quota_warning = storage=80%% /usr/local/bin/quota-warning.sh 80 [EMAIL PROTECTED] In logs: IQuota warning: bytes=168611020 (80%) messages=0 (0%) command=/usr/local/bin/quota-warning.sh 80 dump

Re: [Dovecot] And another crash (imap, 1.1.4)

2008-10-16 Thread Ralf Hildebrandt
* Timo Sirainen <[EMAIL PROTECTED]>: > On Thu, 2008-10-16 at 15:28 +0200, Ralf Hildebrandt wrote: > > #6 0x080b9eac in mail_index_view_sync_begin (view=0x8d8af88, > > Could you do also: > > p my_client.command_queue > p my_client.command_queue.next > p my_client.command_queue.next.next (..as ma

Re: [Dovecot] Virtual Domains and Master Users

2008-10-16 Thread Timo Sirainen
On Thu, 2008-10-16 at 06:28 -0700, Roderick A. Anderson wrote: > Does the IMAP specification call for Master Users (I don't remember > seeing it?) No. > Or is this an implementation specific (Dovecot, et al.) > _feature_? Yes. > How difficult would it be to make per-domain master user(s) a

Re: [Dovecot] And another crash (imap, 1.1.4)

2008-10-16 Thread Timo Sirainen
On Thu, 2008-10-16 at 15:28 +0200, Ralf Hildebrandt wrote: > #6 0x080b9eac in mail_index_view_sync_begin (view=0x8d8af88, Could you do also: p my_client.command_queue p my_client.command_queue.next p my_client.command_queue.next.next (..as many as there are..) signature.asc Description: This

Re: [Dovecot] Virtual Domains and Master Users

2008-10-16 Thread Roderick A. Anderson
Timo Sirainen wrote: On Oct 15, 2008, at 11:19 PM, Roderick A. Anderson wrote: Can I have a master users list for each virtual domain? I'm not sure from what I read on the page: Not really. There are two possibilities that I can think of: a) Use passdb checkpassword and verify that the mast

[Dovecot] And another crash (imap, 1.1.4)

2008-10-16 Thread Ralf Hildebrandt
GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show

Re: [Dovecot] imap crash (1.1.4)

2008-10-16 Thread Ralf Hildebrandt
* Ralf Hildebrandt <[EMAIL PROTECTED]>: > GNU gdb 6.8-debian The log entry: Oct 16 15:20:54 postamt dovecot: Panic: IMAP(grunert): file mail-index-view-sync.c: line 276 (mail_index_view_sync_begin): assertion failed: (view->transactions == 0) Oct 16 15:20:54 postamt dovecot: IMAP(grunert): Raw bac

[Dovecot] imap crash (1.1.4)

2008-10-16 Thread Ralf Hildebrandt
GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show

Re: [Dovecot] imap segfaults in dovecot 1.2 on logout

2008-10-16 Thread Sascha Wilde
Timo Sirainen <[EMAIL PROTECTED]> writes: > On Thu, 2008-10-16 at 13:49 +0200, Sascha Wilde wrote: >> Timo Sirainen <[EMAIL PROTECTED]> writes: >> > On Oct 15, 2008, at 5:57 PM, Sascha Wilde wrote: >> > >> >> #1 0x0806ab6c in command_unregister (name=0x815b9ab "LOGOUT") at >> >> commands.c:83 >> >

Re: [Dovecot] dovecot 1.2: dict no longer really support DICT_ITERATE_FLAG_RECURSE

2008-10-16 Thread Timo Sirainen
On Mon, 2008-10-13 at 18:25 +0200, Bernhard Herzog wrote: > On 12.10.2008, Timo Sirainen wrote: > > I did several fixes to dict iteration. Now it should work as I intended > > (which is also hopefully how you want to use it): > > http://hg.dovecot.org/dovecot-1.2/rev/72b7277aefb3 > > Thanks. The

Re: [Dovecot] Panic 1.1.4

2008-10-16 Thread Timo Sirainen
On Wed, 2008-10-15 at 08:35 +0200, Andre Hübner wrote: > Hi, > > > oops, sorry, I meant actually: > > > fr 6 > > p *stream.parent > > p *stream.parent.real_stream > > No, problem. i have enough cores ;) So it happens regularly? Can you reproduce it? I can't really see how it's crashing. Could y

Re: [Dovecot] Multiple maildirs

2008-10-16 Thread Timo Sirainen
On Thu, 2008-10-16 at 15:18 +0300, Vassilis Vatikiotis wrote: > >> What I want to achieve is receive mail in /var/spool/mail, which is > >> going to contain 1 Maildir per user, and have /home/%u/Maildir/ to store > >> (move) messages from spool location. > > > > So Dovecot should automatically mov

Re: [Dovecot] dovecot 1.1.4 maildir imap segfault in message_parse_header_next

2008-10-16 Thread Timo Sirainen
On Thu, 2008-10-16 at 12:07 +0200, Diego Liziero wrote: > On Thu, Oct 16, 2008 at 11:39 AM, Timo Sirainen <[EMAIL PROTECTED]> wrote: > > On Oct 16, 2008, at 11:33 AM, Diego Liziero wrote: > > > >> Today a user got this imap segfault with vanilla 1.1.4 (I don't know > > > > Hmm. And Maildir as topic

Re: [Dovecot] Multiple maildirs

2008-10-16 Thread Vassilis Vatikiotis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo Sirainen wrote: > On Oct 14, 2008, at 6:56 PM, Vassilis Vatikiotis wrote: > >> What I want to achieve is receive mail in /var/spool/mail, which is >> going to contain 1 Maildir per user, and have /home/%u/Maildir/ to store >> (move) messages fr

Re: [Dovecot] imap segfaults in dovecot 1.2 on logout

2008-10-16 Thread Timo Sirainen
On Thu, 2008-10-16 at 13:49 +0200, Sascha Wilde wrote: > Timo Sirainen <[EMAIL PROTECTED]> writes: > > On Oct 15, 2008, at 5:57 PM, Sascha Wilde wrote: > > > >> #1 0x0806ab6c in command_unregister (name=0x815b9ab "LOGOUT") at > >> commands.c:83 > >> 83 if (strcasecmp(cmd[i].na

Re: [Dovecot] imap-quota not working

2008-10-16 Thread Timo Sirainen
On Sun, 2008-10-05 at 17:55 +0300, arvids wrote: > On Sunday 05 October 2008 17:15:45 Timo Sirainen wrote: > > That's the point of using prefetch userdb. Either don't use it, or copy > > all the quota_* fields to password_query as well (with userdb_ prefix). > > Thank you very much for pointing it

Re: [Dovecot] imap segfaults in dovecot 1.2 on logout

2008-10-16 Thread Sascha Wilde
Timo Sirainen <[EMAIL PROTECTED]> writes: > On Oct 15, 2008, at 5:57 PM, Sascha Wilde wrote: > >> #1 0x0806ab6c in command_unregister (name=0x815b9ab "LOGOUT") at >> commands.c:83 >> 83 if (strcasecmp(cmd[i].name, name) == 0) { >> (gdb) p cmd[i] >> $1 = {name = 0xb7e65ce7 , fu

Re: [Dovecot] deliver does not work with new shared namespaces in dovecot 1.2

2008-10-16 Thread Sascha Wilde
Timo Sirainen <[EMAIL PROTECTED]> writes: > On Oct 15, 2008, at 5:04 PM, Sascha Wilde wrote: > >> Oct 15 14:37:43 burlywood3 deliver([EMAIL PROTECTED])[24502]: >> Namespace 'users/': shared: Shared namespace prefix contains unknown >> variables > > Fixed: http://hg.dovecot.org/dovecot-1.2/rev/0a8

Re: [Dovecot] regarding dovecot.index.cache

2008-10-16 Thread Timo Sirainen
On Oct 16, 2008, at 2:17 PM, Dhaval Thakar wrote: This is regarding updating dovecot.index.cache. I have few backup ids configured. these are used only when old mail needs to be retrieved. usually these mailboxes contains more then 9,000 mails. while login to webmail, imap consumption is hig

[Dovecot] regarding dovecot.index.cache

2008-10-16 Thread Dhaval Thakar
Hi, This is regarding updating dovecot.index.cache. I have few backup ids configured. these are used only when old mail needs to be retrieved. usually these mailboxes contains more then 9,000 mails. while login to webmail, imap consumption is high, which creates performance related issues for

Re: [Dovecot] Multiple "mail" field in one LDAP account

2008-10-16 Thread Proskurin Kirill
Timo Sirainen wrote: On Oct 16, 2008, at 12:09 PM, Proskurin Kirill wrote: pass_attrs = mail=user,userPassword=password You could remove the mail=user here and instead set auth_username_format=%Lu to make sure the username is lowercased. Thanks Timo - seems this work! But now im don`t real

Re: [Dovecot] dovecot 1.1.4 maildir imap segfault in message_parse_header_next

2008-10-16 Thread Diego Liziero
On Thu, Oct 16, 2008 at 11:39 AM, Timo Sirainen <[EMAIL PROTECTED]> wrote: > On Oct 16, 2008, at 11:33 AM, Diego Liziero wrote: > >> Today a user got this imap segfault with vanilla 1.1.4 (I don't know > > Hmm. And Maildir as topic says? No, sorry, wrong subject, mbox >> #0 0x080c8d41 in message

Re: [Dovecot] Multiple users in password like file

2008-10-16 Thread Timo Sirainen
On Oct 14, 2008, at 5:54 PM, Rajiv Gore wrote: Can I provide login in name and password of multiple users in password like file and will dovecot allow multiple users to login from different ip address? Sure. http://wiki.dovecot.org/AuthDatabase/PasswdFile I have set up 2 users. Both are sy

Re: [Dovecot] Multiple maildirs

2008-10-16 Thread Timo Sirainen
On Oct 14, 2008, at 6:56 PM, Vassilis Vatikiotis wrote: What I want to achieve is receive mail in /var/spool/mail, which is going to contain 1 Maildir per user, and have /home/%u/Maildir/ to store (move) messages from spool location. So Dovecot should automatically move messages from one ma

Re: [Dovecot] deliver does not work with new shared namespaces in dovecot 1.2

2008-10-16 Thread Timo Sirainen
On Oct 15, 2008, at 5:04 PM, Sascha Wilde wrote: Oct 15 14:37:43 burlywood3 deliver([EMAIL PROTECTED])[24502]: Namespace 'users/': shared: Shared namespace prefix contains unknown variables Fixed: http://hg.dovecot.org/dovecot-1.2/rev/0a8320a714b5 PGP.sig Description: This is a digitall

Re: [Dovecot] dovecot 1.1.4 maildir imap segfault in message_parse_header_next

2008-10-16 Thread Timo Sirainen
On Oct 16, 2008, at 11:33 AM, Diego Liziero wrote: Today a user got this imap segfault with vanilla 1.1.4 (I don't know Hmm. And Maildir as topic says? #0 0x080c8d41 in message_parse_header_next (ctx=0x8774fa0, hdr_r=0xbfa438e0) at message-header-parser.c:114 p *ctx.input p *ctx.input.rea

Re: [Dovecot] Virtual Domains and Master Users

2008-10-16 Thread Timo Sirainen
On Oct 15, 2008, at 11:19 PM, Roderick A. Anderson wrote: Can I have a master users list for each virtual domain? I'm not sure from what I read on the page: Not really. There are two possibilities that I can think of: a) Use passdb checkpassword and verify that the master user ($MASTER_US

Re: [Dovecot] Multiple "mail" field in one LDAP account

2008-10-16 Thread Timo Sirainen
On Oct 16, 2008, at 12:09 PM, Proskurin Kirill wrote: pass_attrs = mail=user,userPassword=password You could remove the mail=user here and instead set auth_username_format=%Lu to make sure the username is lowercased. Info: auth(default): auth([EMAIL PROTECTED],172.16.1.19): username chan

[Dovecot] Multiple "mail" field in one LDAP account

2008-10-16 Thread Proskurin Kirill
Hello all! #pkg_info | grep dovecot dovecot-1.1.3_1 dovecot-managesieve-0.10.3 dovecot-sieve-1.1.5_1 Im trying to do this: Im have a LDAP account with multiple "mail" field like this(many strings cuted): dn: uid=k.proskurin,ou=Users,dc=Moscow,dc=CAS uid: k.proskurin userPassword: {CRYPT}$1$ET

Re: [Dovecot] assertion failure in current hg, file istream.c: line 303 (i_stream_read_data): assertion failed: (stream->stream_errno != 0) (1.1.3 was working fine)

2008-10-16 Thread Diego Liziero
On Sun, Oct 5, 2008 at 5:44 PM, Timo Sirainen <[EMAIL PROTECTED]> wrote: > On Sun, 2008-10-05 at 17:23 +0200, Diego Liziero wrote: >> >> Not the asset in the subject, but "file index-mail.c: line 1091 >> (index_mail_close): assertion failed: (!mail->data.destroying_stream)" >> means "Dovecot ran ou

[Dovecot] dovecot 1.1.4 maildir imap segfault in message_parse_header_next

2008-10-16 Thread Diego Liziero
I've tried to stress test dovecot 1.1.4 with imaptest for days without any assertion failure or crash. Just some "got too little data" messages. So far it's the most stable 1.1.x version. Today a user got this imap segfault with vanilla 1.1.4 (I don't know if it's something you have already fixed