Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Feb 10, 2014 11:03 am 
Offline
Senior Newbie

Joined: Thu Feb 06, 2014 12:58 pm
Posts: 14
None of my email is being accepted, and I keep getting this error in my /var/log/mail.log:

Code:
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)


I was trying to follow the linode tutorial at https://library.linode.com/email/postfix/postfix2.9.6-dovecot2.0.19-mysql#sph_postfix.

This is the mail_privileged_group line in my /etc/dovecot/conf.d/10-mail.conf
Code:
mail_privileged_group = vmail


And these are the permissions on /var/mail
Code:
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.


Top
   
PostPosted: Mon Feb 10, 2014 11:07 am 
Offline
Senior Newbie

Joined: Thu Feb 06, 2014 12:58 pm
Posts: 14
I tried changing the line in dovecot to this:
Code:
mail_privileged_group = mail


then restarting postfix and dovecot. No change.


Top
   
PostPosted: Mon Feb 10, 2014 12:27 pm 
Offline
Senior Member

Joined: Sun May 23, 2010 1:57 pm
Posts: 315
Website: http://www.jebblue.net
Do you have a user called vmail and does it have a directory /home/vmail? I had to have that.


Top
   
PostPosted: Mon Feb 10, 2014 12:38 pm 
Offline
Senior Newbie

Joined: Thu Feb 06, 2014 12:58 pm
Posts: 14
I don't, but I tried chmod 777 /var/mail and there was still no change.
I then went through and applied chmod 777 to every subdirectory manually, like this:

Code:
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?


Top
   
PostPosted: Mon Feb 10, 2014 2:17 pm 
Offline
Senior Member

Joined: Sun May 23, 2010 1:57 pm
Posts: 315
Website: http://www.jebblue.net
I'm using MySQL for user auth and virtual domains so I don't want to tell you wrong. Perhaps someone on here who has a similar configuration to yours can advise further.


Top
   
PostPosted: Tue Feb 11, 2014 10:39 am 
Offline
Senior Newbie

Joined: Thu Feb 06, 2014 12:58 pm
Posts: 14
It looks like the problem was that all the subdirectories somehow had different permissions than /var/mail despite the s flag in the /var/mail permissions. I was able to fix the problem by going through and setting all their permissions manually.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: mkorsak and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group