Solved

How do I tell Dovecot and Sendmail to use the Same Directory for User Email

Posted on 2014-04-28
3
443 Views
Last Modified: 2014-04-28
Greetings All,

Well this is the third question in a series of questions about POP3 and Email retrieval on CentOS.


The First 2 have been answered and I now have Password Authentication working as well as the ability to send mail to the server for individual users. Thanks Ian and Sandy..

My problem now is How do I get Sendmail and Dovecot to use the same 'Folder/directory' for email. Sendmail wants to put it in /var/mail<username> where <username> is an actual file and Dovecot want to look for email in the users /home directory... not a file.

Oh... and leaving mail_location blank did not work either. If you can tell me how to make that work I would use that..


I have tied to modify /etc/login.defs and /etc/dovecot/conf.d/10-mail.conf but I have not yet found a 'combination' that works.


As always thanks in advance for any help you can give me..  BTW please provide and example as I read and tried different combinations until I am blue in the face... :)

Rick
0
Comment
Question by:rrbecker
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 2

Author Comment

by:rrbecker
ID: 40027270
Hi All...

here is part of an error message that is reported in /var/log/maillog.

-----------------------------------------------------------------------------------------------
Apr 28 07:36:01 ip-50-62-164-110 dovecot: pop3(rrb): Error: chown(/home/rrb/mail/.imap/INBOX, -1, 12(mail)) failed: Operation not permitted (egid=502(rrb), group based on /var/mail/rrb)
Apr 28 07:36:01 ip-50-62-164-110 dovecot: pop3(rrb): Error: mkdir(/home/rrb/mail/.imap/INBOX) failed: Operation not permitted
----------------------------------------------------------------------------------------------------

As you can see it is complaining Goup level permissions and Group ID. How do I resolve this issue.. I think this will take care of my needs..

Is there a setting that I need to set which allows Chroot??

Rick
0
 
LVL 2

Accepted Solution

by:
rrbecker earned 0 total points
ID: 40027743
OK.. this was the final step that got things working...

namespace {
  separator = /
  prefix = "#mbox/"
  location = mbox:~/mail:INBOX=/var/mail/%u
  inbox = yes
  hidden = yes
  list = no
}
namespace {
  separator = /
  prefix =
  location = maildir:~/Maildir
}
0
 
LVL 2

Author Closing Comment

by:rrbecker
ID: 40027745
No other experts were involved in this solution...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Explore the encryption capabilities built into Google Apps and how these features can help you meet privacy policy and regulatory compliance, but are not a full solution. Understand and compare the most popular email encryption services for Google A…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question