LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-23-2008, 02:48 PM   #1
linuxexpress
LQ Newbie
 
Registered: Nov 2008
Posts: 22

Rep: Reputation: 15
Dovecot problem


I have install postfix and dovecot in Fedora 9 and moved all the accounts and their mails from the old
Mandrake server (the mails are under /var/spool/mail/<user> in the old Mandrake server) to this new Fedora 9 server.

When the userxx tries to download mail from the Fedora 9, it failed and the following
message receives from /var/log/maillog:

dovecot: POP3(userxx): mbox: Can't create root mail directory /home/userxx/mail: Permission denied
dovecot: POP3(userxx): MAIL environment missing and autodetection failed (home /home/userxx)

Some users like userxx do not have a home directory. I only use pop3 and all the mailboxes are under /var/spool/mail/<user> in the new server.

I don't want to create a home directory for all the mail users as there are a lot of users do not have home directory. These
users are email users only.

Any help will be appreciated.
 
Old 12-23-2008, 04:17 PM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
you may want to look into the mail_location in dovecot.conf to see if defining this does not help you. You should have documentation regarding this (and others) under /usr/share/doc/dovecot-*/. I recommend starting with /usr/share/doc/dovecot-*/wiki/MailLocation.txt (or similar).
 
Old 12-23-2008, 04:31 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
First thing to do is work out if it's SELinux causing the problem

Temporarily turn it off (setenforce 0) then try to read mail. Turn it back on with setenforce 1

If that's the issue, it will be simple enough to fix.
 
Old 12-23-2008, 05:20 PM   #4
linuxexpress
LQ Newbie
 
Registered: Nov 2008
Posts: 22

Original Poster
Rep: Reputation: 15
It was not the selinux that caused the problem as the selinux was already disabled.

All users with home directory at the Fedora box can download mail from mail server. All accounts without home directory fail to download mail from it. These accounts are pop mail accounts only.

Setting of postfix, /etc/postfix/mail.cf :

# home_mailbox (commented)
mail_spool_directory = /var/spool/mail


Setting of /etc/dovecot.conf:

protocols imap pop3

#mail_location (mail_location parameter is commented)
 
Old 01-05-2009, 03:06 PM   #5
linuxexpress
LQ Newbie
 
Registered: Nov 2008
Posts: 22

Original Poster
Rep: Reputation: 15
How to download the mails of the pop user accounts which do not have a home directory. All the pops user accounts are moved from the old machine to the new machine.

Is it a must to recreate the home directory for these pop mail accounts to the new machine ?
 
Old 01-05-2009, 04:13 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Dovecot doesn't need genuine users - read the section on authentication in dovecot.conf or search dovecot virtual users or similar.

Haven't done it myself, but it's pretty common.
 
Old 01-14-2009, 10:21 AM   #7
linuxexpress
LQ Newbie
 
Registered: Nov 2008
Posts: 22

Original Poster
Rep: Reputation: 15
It works now by setting the mail_location at dovecot.conf as following:

mail_location = mbox:/var/empty:INBOX=/var/spool/mail/%u:INDEX=MEMORY
 
  


Reply


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
problem with dovecot yhabani Linux - Software 2 06-19-2008 07:43 AM
Problem with dovecot Dark_TeToN Linux - Networking 11 05-23-2007 11:07 PM
Problem about dovecot combilli Linux - Software 2 10-30-2006 06:37 AM
Dovecot Problem reply2vinay Linux - Networking 1 12-20-2005 07:32 PM


All times are GMT -5. The time now is 10:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration