Share your knowledge at the LQ Wiki.
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 08-24-2006, 10:12 PM   #1
LQ Newbie
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
Dovecot default_mail_env

Hello all.

I am installing a new Linux mail and file server and am trying to configure dovecot. I have the latest dovecot release from the dovecot website

I have the following in my dovecot.conf:

default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u

straight out of the comments. My postfix is putting mail into /var/mail/<username>

It isn't working, and when I look at the log files, I have something like this:

Aug 24 21:59:47 server dovecot: POP3(username): open(/var/mail/ failed: Permission denied

It should be trying to open /var/mail/username. It appears to be substituting some mail piece id instead of the username for the %u variable.

Any ideas?


Old 08-25-2006, 05:15 PM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I csn't see anything in my docs, but I'd guess that this is some interim step used by dovecot before it appends the message to the mbox file (hence the .temp). Is /var/mail writeable to dovecot?
Old 08-25-2006, 05:21 PM   #3
LQ Newbie
Registered: Aug 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Found my own answer.

According to the dovecot web site, the problem is that I have to have the dovecot process also belong to the mail group. Otherwise it doesn't have the permission to read the spool files at /var/spool/mail/username (or to create the 'dot lock' files that I was noticing in the logs.

You learn something new every day.


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
dovecot problem openbysource Linux - Networking 8 08-09-2010 04:59 AM
Dovecot namit Linux - Software 1 12-08-2005 05:48 AM
Dovecot namit Linux - Software 3 12-06-2005 06:46 PM
dovecot fc4 Ammad Linux - Networking 2 11-05-2005 10:27 PM
Postfix and Dovecot umbraeOtheisles Linux - Software 3 11-23-2004 08:36 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:51 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