[Dovecot] why dovecot try to access the uses's home?
Farkas Levente
lfarkas at bppiac.hu
Thu Dec 30 17:35:16 EET 2004
Timo Sirainen wrote:
> 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.
since i'd like to separate the user's real home and it's mail directory
(home may be accessed by some way, but i would like to "hide" maildir
directory). this means the home directory is equal with mail directory?
or it only has meaning in case of mbox?
> 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.
this means i have to share this file someway to the users to be able to
edit this file? wouldn't it be better to place this file into his real
home directory not under the maildir?
yours.
--
Levente "Si vis pacem para bellum!"
More information about the dovecot
mailing list