Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-02-2012, 11:39 AM   #1
Registered: Sep 2008
Posts: 474

Rep: Reputation: 34
newbie: dovecot 2.0 error

on centos 6.2 server install
trying to set up dovecot but I get the following error in my maillog:
dovecot: pop3(username): Error: user username: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/home/username/mail) failed: Permission denied (euid=500(username) egid=500(username) missing +w perm: /home/username, euid is not dir owner)
I can see the location /home/username needs write permissions but nothing works in resolving this error. The username in question can receive mail no problem but picking it up with dovecot is where I'm stuck. I don't know what euid and guid means. Can anyone tell me what command I need to run to give this folder the correct permissions? And who should be the group owner of this folder? I've been on this for days and google only has stuff on obsolete dovecot versions. Thanks for any help.
Old 04-02-2012, 03:39 PM   #2
Registered: Sep 2008
Posts: 474

Original Poster
Rep: Reputation: 34
typical...I work on something all week and then an hour after posting here for help I manage to solve it. I did it by creating the directory tree myself ie:
this is the directory tree dovecot wanted.
Old 04-03-2012, 11:28 AM   #3
LQ Newbie
Registered: Aug 2007
Posts: 11

Rep: Reputation: 0
You may still have an underlying issue: the user may not own and cannot write to their own directory: "500" means the owner has read (4) + execute (1) permissions, but no write.
Check by typing:
ls -ld /home/username

To fix, type (as root):
chmod u+w /home/username

If the owner is not "username":
chown username /home/username

FYI euid is the effective uid (user number) and egid the effective gid (group number).
Old 04-05-2012, 12:59 PM   #4
Registered: Sep 2008
Posts: 474

Original Poster
Rep: Reputation: 34
thanks for your response griswald, you were right and I did still have an underlying issue: I found the source of the whole problem, which was selinux. I changed /etc/selinux/config from 'enforcing' to 'permissive' and now the whole thing works perfectly.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[NEWBIE] Question regarding postfix / dovecot regarding usernames MarkoSan Linux - Server 1 11-02-2011 09:15 AM
Dovecot conf error Sovetryne Linux - Server 4 07-24-2009 06:25 PM
Error installing dovecot pink_life Linux - Software 1 09-15-2008 02:35 AM
dovecot error cope Linux - Server 1 04-21-2007 03:51 AM
dovecot authentication error snurckle Linux - Newbie 4 08-13-2004 06:32 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration