Linux - Server This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-23-2008, 01:55 AM
|
#1
|
Member
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749
Rep:
|
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.
|
|
|
10-23-2008, 07:01 PM
|
#2
|
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625
Rep: 
|
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.
|
|
|
10-24-2008, 12:20 AM
|
#3
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
You will probably get a way without the mail_location setting, since dovecot is pretty good at finding mail by default.
|
|
|
10-24-2008, 02:10 AM
|
#4
|
Member
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749
Original Poster
Rep:
|
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. 
|
|
|
10-24-2008, 03:03 AM
|
#5
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Quote:
Originally Posted by robertjinx
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
|
|
|
10-24-2008, 03:36 AM
|
#6
|
Member
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749
Original Poster
Rep:
|
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
|
|
|
10-24-2008, 03:52 AM
|
#7
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
I've never had to change dovecot's config.
Last time - what's in ~/Maildir/new?
|
|
|
10-24-2008, 04:02 AM
|
#8
|
Member
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749
Original Poster
Rep:
|
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.
|
|
|
10-24-2008, 04:04 AM
|
#9
|
Member
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749
Original Poster
Rep:
|
Man there is nothing delivered to Maildir, otherwise I would ask why Im not getting new mails, would I?
|
|
|
10-24-2008, 04:18 AM
|
#10
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
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?
|
|
|
10-24-2008, 04:22 AM
|
#11
|
Member
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749
Original Poster
Rep:
|
Im using postfix with Mailscanner. I was thinking of the same idea, just dont know how to fix it 
|
|
|
10-24-2008, 04:33 AM
|
#12
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Code:
home_mailbox = Maildir/
In main.cf. Note the closing "/"
|
|
|
10-24-2008, 05:10 AM
|
#13
|
Member
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749
Original Poster
Rep:
|
Ok cool, thats what Im talking about. This worked, and wanna thank you very very much 
|
|
|
10-24-2008, 02:44 PM
|
#14
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
You're welcome Robert.
|
|
|
All times are GMT -5. The time now is 12:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|