Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2008-05-04 Thread Timo Sirainen
On Sat, 2007-11-17 at 12:14 -0500, Adam McDougall wrote: > Lately I have been getting: > > Nov 17 08:24:36 hill dovecot: IMAP(mcdouga9): > open(/egr/mail/shared/decs/temp.hill.80542.6d06d40810d76654) failed: > Permission denied > Nov 17 08:24:36 hill dovecot: IMAP(mcdouga9): > safe_mkstemp(/egr

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-11-17 Thread Adam McDougall
On Sat, Nov 17, 2007 at 12:14:37PM -0500, Adam McDougall wrote: On Mon, Oct 29, 2007 at 05:10:44PM -0400, Adam McDougall wrote: On Mon, Oct 29, 2007 at 10:49:34PM +0200, Timo Sirainen wrote: On Sun, 2007-10-28 at 15:37 -0400, Adam McDougall wrote: > Oct 28 11:01:40 grib

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-11-17 Thread Adam McDougall
On Mon, Oct 29, 2007 at 05:10:44PM -0400, Adam McDougall wrote: On Mon, Oct 29, 2007 at 10:49:34PM +0200, Timo Sirainen wrote: On Sun, 2007-10-28 at 15:37 -0400, Adam McDougall wrote: > Oct 28 11:01:40 gribble dovecot: IMAP(mcdouga9): fchown(/egr/mail/shared/decs/temp.gribble.97159

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-29 Thread Adam McDougall
On Mon, Oct 29, 2007 at 10:49:34PM +0200, Timo Sirainen wrote: On Sun, 2007-10-28 at 15:37 -0400, Adam McDougall wrote: > Oct 28 11:01:40 gribble dovecot: IMAP(mcdouga9): fchown(/egr/mail/shared/decs/temp.gribble.97159.dc6633e16f47011d) > failed: Operation not permitted > > >F

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-29 Thread Timo Sirainen
On Sun, 2007-10-28 at 15:37 -0400, Adam McDougall wrote: > Oct 28 11:01:40 gribble dovecot: IMAP(mcdouga9): > fchown(/egr/mail/shared/decs/temp.gribble.97159.dc6633e16f47011d) > failed: Operation not permitted > > >From the name, I can't even tell what its for, what dovecot-shared might

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-28 Thread Adam McDougall
On Sun, Oct 28, 2007 at 11:06:01AM -0400, Adam McDougall wrote: On Sun, Oct 28, 2007 at 04:54:12PM +0200, Timo Sirainen wrote: On Sun, 2007-10-28 at 10:08 -0400, Adam McDougall wrote: > On Sat, Oct 27, 2007 at 03:52:28PM -0400, Adam McDougall wrote: > > >> Right now in my p

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-28 Thread Adam McDougall
On Sun, Oct 28, 2007 at 04:54:12PM +0200, Timo Sirainen wrote: On Sun, 2007-10-28 at 10:08 -0400, Adam McDougall wrote: > On Sat, Oct 27, 2007 at 03:52:28PM -0400, Adam McDougall wrote: > > >> Right now in my public folder permission scheme, the only thing I need > >> dovecot-shared

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-28 Thread Timo Sirainen
On Sun, 2007-10-28 at 10:08 -0400, Adam McDougall wrote: > On Sat, Oct 27, 2007 at 03:52:28PM -0400, Adam McDougall wrote: > > >> Right now in my public folder permission scheme, the only thing I need > >> dovecot-shared for (I think) is making client-added emails > world-readable > >> at

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-28 Thread Adam McDougall
On Sun, Oct 28, 2007 at 03:57:22PM +0200, Timo Sirainen wrote: On Sun, 2007-10-28 at 09:25 -0400, Adam McDougall wrote: > > userdb passwd { > > args = system_user= > > } This works only with v1.1. v1.0 just ignores it. Hmm. I might be able to get by without this.

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-28 Thread Adam McDougall
On Sat, Oct 27, 2007 at 03:52:28PM -0400, Adam McDougall wrote: >> Right now in my public folder permission scheme, the only thing I need >> dovecot-shared for (I think) is making client-added emails world-readable >> at least >> (currently actually mode 666). As long as the indexes are

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-28 Thread Timo Sirainen
On Sun, 2007-10-28 at 09:25 -0400, Adam McDougall wrote: > > userdb passwd { > > args = system_user= > > } This works only with v1.1. v1.0 just ignores it. > Looks like it overrides the system_user with empty value and Dovecot > ends up calling initgroups(""). I'm not sure

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-28 Thread Adam McDougall
On Sun, Oct 28, 2007 at 02:06:49AM +0300, Timo Sirainen wrote: On Sat, 2007-10-27 at 17:42 -0400, Adam McDougall wrote: > If you don't need the other groups in Dovecot you can get rid of them and > just have the process use the user's primary group and mail_extra_groups. I > thi

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-27 Thread Timo Sirainen
On Sat, 2007-10-27 at 17:42 -0400, Adam McDougall wrote: > If you don't need the other groups in Dovecot you can get rid of them and > just have the process use the user's primary group and mail_extra_groups. > I > think this should work: > > userdb passwd { > args = syste

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-27 Thread Adam McDougall
If you don't need the other groups in Dovecot you can get rid of them and just have the process use the user's primary group and mail_extra_groups. I think this should work: userdb passwd { args = system_user= } Actually, yes I like this alot and put this chan

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-27 Thread Adam McDougall
On Sat, Oct 27, 2007 at 10:13:46PM +0300, Timo Sirainen wrote: On 27.10.2007, at 21.51, Adam McDougall wrote: >> But the real problem is that dovecot-shared file is owned by a group >> that your imap process doesn't belong to. You probably want to add it to >> mail_extra_groups. >> >>

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-27 Thread Timo Sirainen
On 27.10.2007, at 21.51, Adam McDougall wrote: But the real problem is that dovecot-shared file is owned by a group that your imap process doesn't belong to. You probably want to add it to mail_extra_groups. I want to avoid adding a group to any user that logs in because some of them

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-27 Thread Adam McDougall
On Sat, Oct 27, 2007 at 08:21:54PM +0300, Timo Sirainen wrote: On Sat, 2007-10-27 at 13:02 -0400, Adam McDougall wrote: > I was trying to debug this with gdb, but I'm not sure how to make > env MAIL=maildir:~/Maildir MAIL_PLUGINS=acl ACL=vfile gdb /tmp/imap > understand the #shared/decs n

Re: [Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-27 Thread Timo Sirainen
On Sat, 2007-10-27 at 13:02 -0400, Adam McDougall wrote: > I was trying to debug this with gdb, but I'm not sure how to make > env MAIL=maildir:~/Maildir MAIL_PLUGINS=acl ACL=vfile gdb /tmp/imap > understand the #shared/decs namespace from below so I can SELECT it. Easiest way to figure these kin

[Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

2007-10-27 Thread Adam McDougall
I was trying to debug this with gdb, but I'm not sure how to make env MAIL=maildir:~/Maildir MAIL_PLUGINS=acl ACL=vfile gdb /tmp/imap understand the #shared/decs namespace from below so I can SELECT it. I have a number of maildirs under #ahared/decs, I tried opening at least 2 of them but dovecot