LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-27-2010, 03:40 PM   #1
NaCo
Member
 
Registered: Jun 2002
Location: L.A.
Distribution: Fedora
Posts: 46

Rep: Reputation: 15
Dovecot cannot access Maildir (log error posted)


I am having the following error on my logs.

log error:
Quote:
Dec 27 13:16:51 developing dovecot: pop3(webmaster@developing.paylesstosell.com): Error: user webmaster@developing.paylesstosell.com: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir( /webserver/programs/mail/developing.paylesstosell.com/webmaster) in directory /usr/local/var/run/dovecot failed: Permission denied (euid=500(developer) egid=500(developer), euid is not dir owner)
This does not make sense to me. /webserver and everything inside is owned by developer (uid=500).

I used mail_uid and mail_gid in dovecot.conf to set the permissions, I'm not using local system accounts, instead accounts specified in MySQL.

I can dump all the output of doveconf if requested.

Any suggestions ?
 
Old 12-27-2010, 09:36 PM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Quote:
mkdir ... in directory /usr/local/var/run/dovecot failed: Permission denied (euid=500(developer) egid=500(developer), euid is not dir owner)
You do have a permissions problem. I am not certain exactly what the cause is, but I notice that it is trying to create the maildir in a strange location. Specifically, /usr/local/var/run, which I have never heard of /var being off of /usr/local. Instead /var is a root level directory that holds variable information and /var/run holds pid (process ID) files for running applications. Consequently, this isn't a place you want to put your mail.

It may be that you are running into a groups or ownership permission for the dovecot application, but I suspect that you have something mis-configured. Did you compile the applications yourself or did you install from a repository?
 
Old 12-27-2010, 09:41 PM   #3
NaCo
Member
 
Registered: Jun 2002
Location: L.A.
Distribution: Fedora
Posts: 46

Original Poster
Rep: Reputation: 15
Solved !

It turns out I had:
Quote:
mail_location = maildir: /webserver/programs/mail/%d/%n
...when I should have:
Quote:
mail_location = maildir:/webserver/programs/mail/%d/%n
See the space after maildir:
that was the result of copy and paste.
 
  


Reply



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
Dovecot maildir question on structure wadesmart Linux - Server 1 01-30-2010 09:13 PM
Maildir in dovecot-IMAP!!! subhankar Linux - Networking 1 05-29-2006 02:43 PM
IMAP (Dovecot) & MySQL - Maildir path error ronkymac Linux - Software 0 03-24-2006 03:10 PM
postfix dovecot Maildir Danny Regan Debian 3 11-15-2005 04:08 PM
Configuring Maildir with Postfix and Dovecot umbraeOtheisles Linux - Software 0 04-16-2004 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:43 PM.

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