Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Google created temp account I can't delete 11 134
AD LDAP LDS 3 67
number in printf 13 27
linux - yum package installation issue 2 13
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
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 …

809 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