[Dovecot] why dovecot try to access the uses's home?

Timo Sirainen tss at iki.fi
Wed Dec 29 16:13:30 EET 2004


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20041229/fb2ba575/attachment-0001.bin>


More information about the dovecot mailing list