20 Oct
2004
20 Oct
'04
4:25 p.m.
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@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'