On Wed, Oct 08, 2003 at 01:52:33AM +0300, Petri Riihikallio wrote: > >If the binary is running as group X then a call to setgid(X) will succeed, > >but a call to setgid(Y) will fail. > > > >As long as the database says the account belongs to vmail:vmail then it > >should be OK. > > I am using LDAP as the back-end for the authdaemon. In > /usr/local/etc/courier-imap/authldaprc I have lines > > LDAP_GLOB_UID vmail > LDAP_GLOB_GID vmail > > Isn't that what you meant by database?
Certainly. That's exactly what I have (well, the name of the user and group is 'exim' not 'vmail', but otherwise it's identical) and it's working fine for me. I would check: (1) that you don't have two groups called "vmail" in /etc/groups (that one is a real pain to spot!), or less likely, two users called "vmail" in /etc/passwd (2) that you are not explicitly setting the uid or gid for individual mailboxes in LDAP, i.e. you have left LDAP_UID/LDAP_GID commented out. (3) I'm not sure you said what platform you are running under? Regards, Brian.
