[Dovecot] dovecot imap permission denied
Daminto Lie
dlie76 at yahoo.com.au
Wed Aug 31 09:47:46 EEST 2011
Thanks a lot Timo,
Creating directories for new users is not an issue. It's the permission that makes me headache. I tried the following
sudo chmod o-r /home/$USER
sudo chmod g+rw /home/$USER
It did not work until I did chmod 777 /home.
Is it safe to make home directory with permission 777?
Thanks
________________________________
From: Timo Sirainen <tss at iki.fi>
To: Daminto Lie <dlie76 at yahoo.com.au>
Cc: "dovecot at dovecot.org" <dovecot at dovecot.org>
Sent: Wednesday, 31 August 2011 3:02 PM
Subject: Re: [Dovecot] dovecot imap permission denied
On Tue, 2011-08-30 at 21:09 -0700, Daminto Lie wrote:
> Aug 31 13:50:57 server1 dovecot: IMAP(mike_lee): mkdir(/home/mike_lee/Maildir/.INBOX.Sent/cur) failed: Permission denied (euid=1004 egid=1003(companyusergroup) missing +w perm: /home)
>
> What I have tried to do is changing the permission for /home by typing "sudo chmod 755 /home" and this does not work. What does it mean by missing +w perm: /home? and wonder how to get around it?
It means that Dovecot tries to deliver mails to mike_lee's Maildir,
but /home/mike_lee/ directory itself doesn't exist, so Dovecot tries to
create it, but it fails because the process doesn't have write
permissions to /home.
The best way to fix this would be to simply create the user home dirs
with proper permissions before Dovecot ever tries to deliver mails to
the user.
More information about the dovecot
mailing list