Solved

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

Posted on 2014-04-28
3
434 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
  • 3
3 Comments
 
LVL 2

Author Comment

by:rrbecker
Comment Utility
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
Comment Utility
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
Comment Utility
No other experts were involved in this solution...
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

How can MDaemon MRK files and MSG files work together? We can also say that, how worldclient and Outlook connecter works, using both application collectively you can view your mails, contacts, calendar, task, notes. In this article you can unders…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now