[Dovecot] dovecot failing to chdir in home

Timo Sirainen tss at iki.fi
Wed Oct 20 16:25:09 EEST 2004


On 20.10.2004, at 11:08, Stefano Maffulli wrote:

> Oct 20 11:21:35 mail dovecot: chdir(studiosala.net/federico/) failed
> with uid 1001: Permission denied
..
> 682 Query       SELECT 1001 AS uid, 1001 AS gid, '/var/mail/domains/'
> AS mail, maildir AS home FROM mailbox WHERE username =
> 'ale at studiosala.net'

You seem to be confusing mail and home settings. mail setting here 
overrides default_mail_env (see dovecot-example.conf) and you usually 
don't need to do it. home should be a full path, you're now giving it 
as relative path which ends up trying to go under /var/run/dovecot/.

What you probably want is:

select 1001 as uid, 1001 as gid, concat('/var/mail/domains/', maildir) 
as home where username = '%u'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20041020/06a4eca8/attachment-0001.bin>


More information about the dovecot mailing list