On Thu, Jul 26, 2007 at 03:02:14PM +0100, Julian Grunnell wrote:
Jul 26 14:45:41 wm01 authdaemond: SQL query: SELECT username, "", password,
8, 12, home, "", "", "", "" FROM mailboxes WHERE username = "foolsgold-rob"
Jul 26 14:45:41 wm01 authdaemond: authmysql: sysusername=<null>,
sysuserid=8, sysgroupid=12, homedir=/fs/home/37/f/o/foolsgold/users/rob,
address=foolsgold-rob, fullname=<null>, maildir=<null>, quota=<null>,
options=<null>
OK, so you've chosen uid 8, gid 12. So now you have normal Unix permissions
to sort out.
You could try this:
chown -R 8:12 /fs/home/37/f/o/foolsgold/users/rob
chmod 700 /fs/home/37/f/o/foolsgold/users/rob
The enclosing directories could be owned by root:root mode 755 (which allows
everyone to wander down them), or could be owned by mail mode 700 (which
keeps out other users, but allows courier to create directories higher up in
the tree if mysql had wrong data in it).
Setting up a suitable permissions model is something you need to design, and
it's part of normal Unix administration, not specific to courier.
Regards,
Brian.