[Dovecot] configuration problem: maildir folders and messages not found
Hi
Perhaps I've been going too far OT in my previous thread or perhaps I just didn't explain my problem clear enough so forgive me for trying again.
I have configured fetchmail to fetch my mail from my ISP's POP3-server. I have set up procmail to filter messages and deliver all non-filtered messages to the folder ".IN-catchall/" in "$HOME/Maildir"
After sending some test messages the "Maildir" folder in my home-folder
looks like:
m8ram@medion:~$ tree -a Maildir
Maildir
|-- .IN-catchall
| |-- cur
| |-- new
| | -- 1114356268.8424_0.medion |
-- tmp
|-- .IN-testing
| |-- cur
| |-- new
| | |-- 1114354955.6900_0.medion
| | -- 1114356175.8292_0.medion |
-- tmp
|-- .INBOX
| |-- .IN-testing
| | |-- cur
| | |-- new
| | | |-- 1114354955.6900_0.medion
| | | -- 1114356175.8292_0.medion | |
-- tmp
| |-- .imap.index
| |-- .imap.index.data
| |-- .imap.index.log
| -- .imap.index.tree |-- .customflags |-- IN-catchall |-- cur |-- new
-- tmp
16 directories, 11 files
Because I have been using the mbox format to test dovecot so far I had to modify my dovecot configuration but no matter what I try none of the messages above appear in evolution or thunderbird.
Can anybody tell me what I need to add/remove/change in my config? I'm running: m8ram@medion:~$ /usr/sbin/dovecot --version 0.99.14 on debian testing
/etc/dovecot/dovecot.conf contains the following: protocols = imap login = imap login = pop3 mail_extra_groups = mail default_mail_env = maildir:/%h/Maildir auth = default auth_mechanisms = plain auth_userdb = passwd auth_passdb = pam auth_user = root
When using mbox I used: default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u
I also tried the following for maildir: default_mail_env = maildir:~/Maildir default_mail_env = maildir:/home/%u/Maildir
But neither worked.
TIA
Bram
# Mertens Bram "M8ram" <bram-mertens@linux.be> Linux User #349737 # # debian testing kernel 2.6.8-1-686 i686 512MB RAM # # 13:39:03 up 30 days, 19:52, 13 users, load average: 0.49, 0.50, 0.39 #
On Mon, 2005-04-25 at 13:51 +0200, Bram Mertens wrote:
After sending some test messages the "Maildir" folder in my home-folder looks like: m8ram@medion:~$ tree -a Maildir Maildir |-- .IN-catchall | |-- cur | |-- new | |
-- 1114356268.8424_0.medion |
-- tmp |-- .IN-testing | |-- cur | |-- new | | |-- 1114354955.6900_0.medion | |-- 1114356175.8292_0.medion |
-- tmp
These should show up as "IN-catchall" and "IN-testing" folders.
|-- .INBOX | |-- .IN-testing | | |-- cur | | |-- new | | | |-- 1114354955.6900_0.medion | | |
-- 1114356175.8292_0.medion | |
-- tmp | |-- .imap.index | |-- .imap.index.data | |-- .imap.index.log | `-- .imap.index.tree
Looks like Dovecot sees your INBOX because it has created index files. The IN-testing here isn't seen by Dovecot at all.
|-- .customflags |-- IN-catchall |-- cur |-- new
New mails in INBOX should be placed in this new directory.
Because I have been using the mbox format to test dovecot so far I had to modify my dovecot configuration but no matter what I try none of the messages above appear in evolution or thunderbird.
Are you listing only subscribed folders and haven't subscribed them? Have you set IMAP namespace prefix? It should be empty. Sounds like client problem in any case.
default_mail_env = maildir:/%h/Maildir
This is correct. Except the '/' before %h isn't needed.
I also tried the following for maildir: default_mail_env = maildir:~/Maildir default_mail_env = maildir:/home/%u/Maildir
But neither worked.
They're pretty much all equilevant.
On Mon, 2005-04-25 at 15:36 +0300, Timo Sirainen wrote:
On Mon, 2005-04-25 at 13:51 +0200, Bram Mertens wrote:
After sending some test messages the "Maildir" folder in my home-folder looks like: m8ram@medion:~$ tree -a Maildir Maildir |-- .IN-catchall [...] |-- .IN-testing [...] These should show up as "IN-catchall" and "IN-testing" folders.
They do now, see below
|-- .INBOX | |-- .IN-testing [...] Looks like Dovecot sees your INBOX because it has created index files. The IN-testing here isn't seen by Dovecot at all.
So there shouldn't be subfolders of ~/Maildir/.INBOX ?
[...]
Because I have been using the mbox format to test dovecot so far I had to modify my dovecot configuration but no matter what I try none of the messages above appear in evolution or thunderbird.
Are you listing only subscribed folders and haven't subscribed them? Have you set IMAP namespace prefix? It should be empty. Sounds like client problem in any case.
Aha thanks that was it, like I said I'm migrating form mbox to maildir so I've never had to subscribe to folders before!
default_mail_env = maildir:/%h/Maildir
This is correct. Except the '/' before %h isn't needed.
Should I remove it or is it simply redundant?
I also tried the following for maildir: default_mail_env = maildir:~/Maildir default_mail_env = maildir:/home/%u/Maildir
But neither worked.
They're pretty much all equilevant.
Thanks again
Bram
# Mertens Bram "M8ram" <bram-mertens@linux.be> Linux User #349737 # # debian testing kernel 2.6.8-1-686 i686 512MB RAM # # 15:20:05 up 30 days, 21:33, 13 users, load average: 0.33, 0.51, 0.64 #
On Mon, 2005-04-25 at 15:23 +0200, Bram Mertens wrote:
|-- .INBOX | |-- .IN-testing [...] Looks like Dovecot sees your INBOX because it has created index files. The IN-testing here isn't seen by Dovecot at all.
So there shouldn't be subfolders of ~/Maildir/.INBOX ?
Maildir++ layout creates subfolders by separating them with "." in the directory name. So if you wanted to create INBOX/IN-testing, you'd have to name it .INBOX.IN-testing.
The .INBOX directory itself is used only for Dovecot's indexes in 0.99.x. 1.0-stables/tests don't use .INBOX at all anymore.
Are you listing only subscribed folders and haven't subscribed them? Have you set IMAP namespace prefix? It should be empty. Sounds like client problem in any case.
Aha thanks that was it, like I said I'm migrating form mbox to maildir so I've never had to subscribe to folders before!
The subscription thing is IMAP-specific and is just as required to mbox as it is for maildir. Maybe before you hadn't set "show only subscribed folders" checkbox in client's configuration.
default_mail_env = maildir:/%h/Maildir
This is correct. Except the '/' before %h isn't needed.
Should I remove it or is it simply redundant?
As long as filesystems don't try to access //home/... in some special way, it doesn't matter. Cleaner anyway without the extra / :)
On Tue, 2005-04-26 at 12:51 +0300, Timo Sirainen wrote:
On Mon, 2005-04-25 at 15:23 +0200, Bram Mertens wrote:
|-- .INBOX | |-- .IN-testing [...] So there shouldn't be subfolders of ~/Maildir/.INBOX ?
Maildir++ layout creates subfolders by separating them with "." in the directory name. So if you wanted to create INBOX/IN-testing, you'd have to name it .INBOX.IN-testing.
The .INBOX directory itself is used only for Dovecot's indexes in 0.99.x. 1.0-stables/tests don't use .INBOX at all anymore.
Thanks for the explanation, my procmail rules are working as expected now!
Are you listing only subscribed folders and haven't subscribed them? Have you set IMAP namespace prefix? It should be empty. Sounds like client problem in any case.
Aha thanks that was it, like I said I'm migrating form mbox to maildir so I've never had to subscribe to folders before!
The subscription thing is IMAP-specific and is just as required to mbox as it is for maildir. Maybe before you hadn't set "show only subscribed folders" checkbox in client's configuration.
I assume you mean't isn't IMAP-specific? Anyway, I can't find an option like this in my "old" account settings... I do notice from time to time that new folders don't show up in evolution regardless of the fact whether the "show only subscribed folders" option is set or not. When it is set and I subscribe to a new folder it doesn't appear all the time either. But that's an evolution problem, I'll bug the evo-list about that later.
default_mail_env = maildir:/%h/Maildir
This is correct. Except the '/' before %h isn't needed.
Should I remove it or is it simply redundant?
As long as filesystems don't try to access //home/... in some special way, it doesn't matter. Cleaner anyway without the extra / :)
Ok, I'll remove it then to be on the safe side.
Thanks for all the feedback! Dovecot is working wonderful, I'll do some more testing but I'm quite confident I'll be able to migrate my main accounts soon!
Regards
Bram
# Mertens Bram "M8ram" <bram-mertens@linux.be> Linux User #349737 # # debian testing kernel 2.6.8-1-686 i686 512MB RAM # # 13:55:16 up 31 days, 20:09, 15 users, load average: 0.20, 0.25, 0.17 #
participants (2)
-
Bram Mertens
-
Timo Sirainen