LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 10-23-2008, 01:55 AM   #1
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 546

Rep: Reputation: 58
Problems receiving mail after switching from "mbox" to Maildir in dovecot.


Hello,
I've beening using Dovecot with:
mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u

Now i wanna switch to Maildir, because it supports more stuff, like quotas and so on. I have setup Dovecot like this: mail_location = maildir:~/Maildir, also I have converted the old mails to Maildir type of mails and worked perfectly, but no new mails. I know something is missing, but I have never setup Dovecot with Maildir, so please if you know, help me out with this.
 
Old 10-23-2008, 07:01 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,614

Rep: Reputation: 164Reputation: 164
Perhaps you forgot to tell whatever program delivers your mail about your new mailbox format and location? If this is the case, it would keep delivering new mail to the old location.

Last edited by Berhanie; 10-23-2008 at 07:06 PM.
 
Old 10-24-2008, 12:20 AM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
You will probably get a way without the mail_location setting, since dovecot is pretty good at finding mail by default.
 
Old 10-24-2008, 02:10 AM   #4
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 546

Original Poster
Rep: Reputation: 58
I think if I dont set the mail_location it wont work, or it will automatically set it to "mbox".

There has to be proper settings for dovecot, just dont know them myself.
 
Old 10-24-2008, 03:03 AM   #5
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
Quote:
Originally Posted by robertjinx View Post
I think if I dont set the mail_location it wont work, or it will automatically set it to "mbox".

There has to be proper settings for dovecot, just dont know them myself.
As I said, you shouldn't need to set it.

Is there any mail being delivered in maildir? Look in ~/Maildir/new
 
Old 10-24-2008, 03:36 AM   #6
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 546

Original Poster
Rep: Reputation: 58
I have tried to disable mail_location, and again it works, sees the mails like in Maildir format, but dont receive new mails.

Dovecot has to be set how to read the new incoming mails, but dont know how to really set this.

It should be I think something like this:

maildir:~/Maildir::INBOX=/var/spool/mail/%u
 
Old 10-24-2008, 03:52 AM   #7
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
I've never had to change dovecot's config.

Last time - what's in ~/Maildir/new?
 
Old 10-24-2008, 04:02 AM   #8
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 546

Original Poster
Rep: Reputation: 58
In ~Maildir/ is what normally is in ~mail/. There are the mails, mail folders and so on. New mails normally would go to /var/spool/mail/username, then depending on what the user does, goes into mail/ in folder "INBOX" or depending on the user, goes into some other folder.

But all of this works in form of "mbox" style, meaning the mails that are deposited in mail/ folder. The to switch from "mbox" style to "Maildir" first you would need to convert the old mails from mail/ folder to Maildir/, which I have done and it works. All the mails are there, everything works, just getting new mails doesnt work.
 
Old 10-24-2008, 04:04 AM   #9
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 546

Original Poster
Rep: Reputation: 58
Man there is nothing delivered to Maildir, otherwise I would ask why Im not getting new mails, would I?
 
Old 10-24-2008, 04:18 AM   #10
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
If nothing is being delivered to the Maildir, it's nothing to do with dovecot - it only serves up what's delivered by your delivery agent.

What is you mail setup - what MTA do you use, etc?
 
Old 10-24-2008, 04:22 AM   #11
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 546

Original Poster
Rep: Reputation: 58
Im using postfix with Mailscanner. I was thinking of the same idea, just dont know how to fix it
 
Old 10-24-2008, 04:33 AM   #12
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
Code:
home_mailbox = Maildir/
In main.cf. Note the closing "/"
 
Old 10-24-2008, 05:10 AM   #13
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 546

Original Poster
Rep: Reputation: 58
Ok cool, thats what Im talking about. This worked, and wanna thank you very very much
 
Old 10-24-2008, 02:44 PM   #14
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
You're welcome 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to swhich from mbox to Maildir in dovecot 1.1.x and postfix robertjinx Linux - Server 6 10-16-2008 06:17 AM
Switching "nv" to "nvidia" = screen shifted to the left? mpriddy Linux - General 5 02-28-2007 10:38 PM
postfid/dovecot .maildir problem (loooots of "new" messages) alienDog Linux - Software 1 12-08-2006 08:22 PM
Dovecot not receiving mail latino Linux - Software 0 02-25-2005 09:52 PM
Mozilla "page" And receiving mail kustomkid54 Linux - Newbie 3 12-19-2003 06:40 PM


All times are GMT -5. The time now is 10:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration