LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-09-2012, 03:59 PM   #1
Bob Fletcher
Member
 
Registered: Nov 2008
Location: Hinckley UK
Distribution: Manjaro Cinnamon
Posts: 140

Rep: Reputation: 1
Dovecot mail location


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.

Thanks Robert...
 
Old 07-10-2012, 03:54 AM   #2
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian, KUbuntu
Posts: 213

Rep: Reputation: 36
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?
 
Old 07-10-2012, 04:13 AM   #3
Bob Fletcher
Member
 
Registered: Nov 2008
Location: Hinckley UK
Distribution: Manjaro Cinnamon
Posts: 140

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by emi_ramo View Post
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.

Thanks

Robert...
 
Old 07-10-2012, 04:29 AM   #4
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian, KUbuntu
Posts: 213

Rep: Reputation: 36
Hi again, Robert:

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/* .

Best regards,
emi
 
Old 07-10-2012, 04:37 AM   #5
leslie_jones
Member
 
Registered: Sep 2011
Posts: 130

Rep: Reputation: Disabled
Hi Bob,

There are a ton of 'how to' docs out there that refer to version 1.x without saying it in so many words.

Take a look at this and see if it helps:

http://wiki2.dovecot.org/MailLocation/

The logs can give you a clue, look for errors relating to file access.
 
Old 07-10-2012, 04:50 AM   #6
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian, KUbuntu
Posts: 213

Rep: Reputation: 36
Hi leslie_jones,
Ubuntu Precise 12.04 has Dovecot 2.x.

See you,
emi
 
Old 07-10-2012, 05:01 AM   #7
leslie_jones
Member
 
Registered: Sep 2011
Posts: 130

Rep: Reputation: Disabled
Quote:
Originally Posted by emi_ramo View Post
Hi leslie_jones,
Ubuntu Precise 12.04 has Dovecot 2.x.

See you,
emi
Thanks, that means the link to version 2.x I posted above, is the correct link for the subject.
 
Old 07-10-2012, 06:56 AM   #8
Bob Fletcher
Member
 
Registered: Nov 2008
Location: Hinckley UK
Distribution: Manjaro Cinnamon
Posts: 140

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by leslie_jones View Post
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.

Thanks
Robert...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can send mail but Not able to receive mail. Postfixadmin, dovecot, postfix setup RajeshThakur Linux - Newbie 9 04-20-2012 08:31 AM
Mail server not sending mail to location defined in MX record modulaaron Linux - Software 3 12-19-2010 07:57 PM
Mail Server with : Postfix,dovecot. (Can send email, but can't receive email from internet mail) cparapat Linux - Server 1 08-16-2010 12:57 AM
LXer: Debian Mail Server Setup with Postfix + Dovecot + SASL + Squirrel Mail LXer Syndicated Linux News 0 03-12-2008 10:50 PM
Dovecot is hiding my mail ? tims Linux - Server 2 08-18-2006 08:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration