Dovecot doesn't have write permissions?
Feb 10 09:58:35 earth dovecot: lmtp(8060, dylan@clickclickboommobile.com): Error: user dylan@clickclickboommobile.com: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/var/mail/vhosts/clickclickboommobile.com/dylan) failed: Permission denied (euid=1001(<unknown>) egid=1001(<unknown>) missing +w perm: /var/mail/vhosts/clickclickboommobile.com, dir owned by 5000:5000 mode=0755)</unknown></unknown>
I was trying to follow the linode tutorial at
This is the mailprivilegedgroup line in my /etc/dovecot/conf.d/10-mail.conf
mail_privileged_group = vmail
And these are the permissions on /var/mail
drwxrwsr-x 3 vmail vmail 4096 Feb 9 01:04 /var/mail
Has anyone seen this before? Does anyone know what's wrong? I can't figure it out.
5 Replies
mail_privileged_group = mail
then restarting postfix and dovecot. No change.
I then went through and applied chmod 777 to every subdirectory manually, like this:
chmod 777 /var/mail
chmod 777 /var/mail/vhosts
chmod 777 /var/mail/vhosts/DOMAIN.com
chmod 777 /var/mail/vhosts/DOMAIN.com/USER1
chmod 777 /var/mail/vhosts/DOMAIN.com/USER2
chmod 777 /var/mail/vhosts/DOMAIN.com/USER3
And this worked! Why would that be? Shouldn't the permissions from /var/mail cascade down to all the subdirectories? Isn't that what the 's' in the permissions flags means?