OK, next check for HAVE_INITGROUPS in numlib/config.h
This fields are the same for users that work and users that do not. The
difference between the two is that the non-working users' Maildirs are in
a different group than their login. This configuration worked fine before
I'm assuming launching imapd in a FreeBSD shell passes info the same way
since I see the problem there, but I'm just guessing.
Could you explain that last bit? How exactly are you running imapd? The
group-changing code will only be invoked if imapd is running initially as
root, and is changing the account to settings returned by courier-authlib
If you invoke imapd directly at the shell, this won't happen. I think you'd
have to invoke pop3login instead.