websafe wrote:
Hi :)
I hope this short example shows what problem I have:
# returns users homedir from /etc/passwd
grep user1 /etc/passwd | cut -d':' -f6
# result:
/home/group-subdir/user1
And the logfile...
#maillog imap-login: Login: user1 [192.168.0.253] imap(user1): mkdir(/home/user1/Maildir/.Trash) failed: No such file or directory
Why Dovecot tries to create /home/user1/Maildir/.Trash and NOT /home/group-subdir/user1/Maildir/.Trash as in /etc/passwd ???
Is there any solution? I'm running 0.99.14 # cat /etc/dovecot.conf ssl_disable = yes disable_plaintext_auth = no login = imap verbose_proctitle = yes default_mail_env = maildir:/home/%u/Maildir auth = default auth_mechanisms = plain auth_userdb = passwd /etc/passwd auth_passdb = shadow /etc/shadow auth_user = root
Thanks in advance,
Take a look at your default_mail_env setting....right there you are telling it to use /home/user1/Maildir. I'm not sure if there is a %var for group; I didn't see on in my dovecot.conf, but it's 0.99.10...and I know I should upgrade it, but it currently works for the one(!) user (me) that gets mail on my test server....
RAC