29 Dec
2004
29 Dec
'04
4:13 p.m.
On Wed, 2004-12-29 at 14:51 +0100, Farkas Levente wrote:
default_mail_env = maildir:/home/mail/%d/%n auth_userdb = static uid=499 gid=499 home=/home/users/%d/%n auth_passdb = ldap /etc/dovecot-ldap.conf
but after this i've got the error in imap.log:
dovecot: Dec 29 14:39:14 Fatal: chdir(/home/users/<username>) failed with uid 499: Permission denied
i see the reason since each user has it's own uid and uid 499 can't access to the users home which has 0700 access right. but why dovecot would like to access the user's home? does it nessesary? since in this case one static uid can be usable or this uid has to be read (write?) access to all user's home. is there any usage of static uid in this case?
Since you keep all the mail data in /home/mail/ instead of /home/users/, you might as well use /home/mail/%d/%n as user's home directory.
Currently home dir is used for nothing else than chdir()ing in there so core dumps can be written. In future it may optionally look some .dovecotrc file from there.