I presume you maintained the setuid bit on the sqwebmail binary after changing the ownership?
Yes.
The above error is likely to happen when sqwebmail is setuid to user A, but the database says that the userid is B (or setgid to group X, but the database says the account is gid Y)
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? -- Cheers, Petri
Metis / Petri Riihikallio GSM: +358 400 505 939
