Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi
My mail is in /var/mail/ Dovecot is installed on Ubuntu Server 12.04. What is the correct way for Dovecot to point to the mail directory. The various howtos seem to take a much different approach currently I have this in /etc/dovecot/dovecot.conf which is fron the 12.04 manual I downloded
Code:
mail_location = mbox:~/mail:INBOX=/var/mail/%u
But that does not work. If I put mail_location = /var/mail/ Dovecot does not get upset when I logon but then does not find the mail.
Hi Bob Fletcher,
First of all, I recommend you to use Maildir instead of MBox. After that, you need to know if SMTP server (Postfix? Exim?) is configured the same way. Finally, it's possible that you need to tell to MUA (Roundcube? SquirrelMail?) to create default folders if they don't exist (usually first time you login).
Where SMTP is saving mails? Which format does it uses?
Hi Bob Fletcher,
First of all, I recommend you to use Maildir instead of MBox. After that, you need to know if SMTP server (Postfix? Exim?) is configured the same way. Finally, it's possible that you need to tell to MUA (Roundcube? SquirrelMail?) to create default folders if they don't exist (usually first time you login).
Where SMTP is saving mails? Which format does it uses?
Hi, thanks for getting back to me. not using Squirrelmail or Roundcube yet. Mail arrives in /var/mail/ in a file called robert this seems to be in default for Postfix and that side of it is working. I installed Alpine no configuration needed and I can read and send out mail from Alpine.
As you can see I am a newbie to servers. I have had a lot of trouble getting this going this far and I usually stuff things up and reinstall. As everything else is working I would be reluctant to make any other changed. I just want Dovecot to access the mail.
Did you took a look into Dovecot's log file? It's normally at /var/log/dovecot . Also, you need to know that dovecot has segmented configuration for every service: IMAP (mail checking) and LDA (Local Delivery Agent). Check if they both are correct. Also check namespaces. Check both dovecot.conf and conf.d/* .
Thanks, that means the link to version 2.x I posted above, is the correct link for the subject.
Thanks I have found the problem. How I missed it I do not know. In the 12.04 docs it had the mail pointing to /var/spool/mail/ but that is only a symlink but I put it in anyway.
Telnet test again failed but this time I read the log more carefully and it pointed to Dovcot help with this problem.
Code:
Jul 10 12:08:31 pop3(robert): Error: Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2012-07-10 12:08:31]
That one error generated 7 entries in the log. I still don't understand them all. It said to change the permissions of the mail directory to 0600 and now it works.
Thank you all for your time. It is nearly 3 weeks and still more to sort out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.