[Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4
Adam McDougall
mcdouga9 at egr.msu.edu
Sat Oct 27 21:51:52 EEST 2007
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 namespace from below so I can SELECT it.
Easiest way to figure these kind of things is to set
mail_executable=/tmp/dump.sh which contains:
#!/bin/sh
set > /tmp/dovecot.env
And run dovecot --exec-mail imap. Then either use that information or
just run ". /tmp/dovecot.env" before gdb imap.
Thanks, I'll use it next time
> If dovecot-shared exists in the folder I try to open, dovecot says:
> Oct 27 12:57:38 gribble dovecot: IMAP(mcdouga9): fchown() failed with file
> /home/mcdouga9/Maildir/dovecot11testing/public/indexes/decs/.unixadmin/dovecot.index.log: Operation not
> permitted
> Oct 27 12:57:38 gribble dovecot: child 55470 (imap) killed with signal 11
Fixed the crash: http://hg.dovecot.org/dovecot/rev/7373240c3d1d
Agreed
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
are in many groups already and it might push them over the limit that FreeBSD
allows, then they cannot login at all. With some recent permission changes I've
done (affects dovecot 1.0 as well), I get a good amount of these fchown errors
and I was thinking of muting them so they do not fill my log, since they are harmless
in my setup. 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 accessible by the user,
I don't care what mode or group they are.
More information about the dovecot
mailing list