Solved

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

Posted on 2014-04-28
3
442 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
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

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…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

860 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