[Dovecot] Manually creating folders from terminal
I'm trying to use a script to create a mailbox structure. I'm aware that the structure should look like: ~/.maildir/.INBOX/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder1/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder2/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder2.Subsubfolder1/{cur,tmp,new} ...
I have tried manually making those directories and using the "maildirmake.dovecot" command that my system has. I feel that in the past, folders I have made this way worked. However, now none are showing up in my clients.
In Thunderbird, they aren't even listed on the "Subscribe" window for me to enable. Using Squirrelmail doesn't show them either.
Essentially what I am doing is taking my current IMAP dir structure, and making a copy in a subfolder called ".INBOX.Archive.<year>" to archive my old mail. Thus, .INBOX.Subfolder1.Subfolder2 becomes .INBOX.Archive.2009.Subfolder1.Subfolder2.
My system: Ubuntu 8.04
# 1.0.10: /etc/dovecot/dovecot.conf log_timestamp: %Y-%m-%d %H:%M:%S ssl_listen: * disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login mail_privileged_group: mail mail_access_groups: mail default_mail_env: ~/.maildir mail_location: ~/.maildir auth default: mechanisms: plain login passdb: driver: pam userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix
A. J. Giurato wrote:
I'm trying to use a script to create a mailbox structure. I'm aware that the structure should look like: ~/.maildir/.INBOX/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder1/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder2/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder2.Subsubfolder1/{cur,tmp,new} ...
I have tried manually making those directories and using the "maildirmake.dovecot" command that my system has. I feel that in the past, folders I have made this way worked. However, now none are showing up in my clients.
In Thunderbird, they aren't even listed on the "Subscribe" window for me to enable. Using Squirrelmail doesn't show them either.
Essentially what I am doing is taking my current IMAP dir structure, and making a copy in a subfolder called ".INBOX.Archive.<year>" to archive my old mail. Thus, .INBOX.Subfolder1.Subfolder2 becomes .INBOX.Archive.2009.Subfolder1.Subfolder2.
My system: Ubuntu 8.04
# 1.0.10: /etc/dovecot/dovecot.conf log_timestamp: %Y-%m-%d %H:%M:%S ssl_listen: * disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login mail_privileged_group: mail mail_access_groups: mail default_mail_env: ~/.maildir mail_location: ~/.maildir
I am not a Dovecot expert, but I would wonder if it makes a difference if "mail_location" has not specified the mailbox type, e.g.
mail_location = maildir:~/.maildir
Also worth noting that the de-facto standard location for Maildirs is "~/Maildir", which would be indicated with
mail_location = maildir:~/Maildir
Bill
A. J. Giurato wrote:
I'm trying to use a script to create a mailbox structure. I'm aware that the structure should look like: ~/.maildir/.INBOX/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder1/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder2/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder2.Subsubfolder1/{cur,tmp,new} ...
I have tried manually making those directories and using the "maildirmake.dovecot" command that my system has. I feel that in the past, folders I have made this way worked. However, now none are showing up in my clients.
In Thunderbird, they aren't even listed on the "Subscribe" window for me to enable. Using Squirrelmail doesn't show them either.
Essentially what I am doing is taking my current IMAP dir structure, and making a copy in a subfolder called ".INBOX.Archive.<year>" to archive my old mail. Thus, .INBOX.Subfolder1.Subfolder2 becomes .INBOX.Archive.2009.Subfolder1.Subfolder2.
Since you have gotten as far as asking on the mailing list, it may be worth just sanity checking that your folders are being created under the correct user and group IDs.
Bill
Thanks for the suggestions.
The user, group, and permissions on all folders (including the cur, new, and tmp) are "aj aj 700". Also, I added "mail_location = maildir:~/.maildir" (and removed "default_mail_env"). Neither has worked.
Also, my IMAP folders all work fine except for the new ones I want to create manually from the CLI.
On 7/7/2010 11:31 AM, William Blunn wrote:
A. J. Giurato wrote:
I'm trying to use a script to create a mailbox structure. I'm aware that the structure should look like: ~/.maildir/.INBOX/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder1/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder2/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder2.Subsubfolder1/{cur,tmp,new} ...
I have tried manually making those directories and using the "maildirmake.dovecot" command that my system has. I feel that in the past, folders I have made this way worked. However, now none are showing up in my clients.
In Thunderbird, they aren't even listed on the "Subscribe" window for me to enable. Using Squirrelmail doesn't show them either.
Essentially what I am doing is taking my current IMAP dir structure, and making a copy in a subfolder called ".INBOX.Archive.<year>" to archive my old mail. Thus, .INBOX.Subfolder1.Subfolder2 becomes .INBOX.Archive.2009.Subfolder1.Subfolder2.
Since you have gotten as far as asking on the mailing list, it may be worth just sanity checking that your folders are being created under the correct user and group IDs.
Bill
On Wed, 2010-07-07 at 11:40 -0400, A. J. Giurato wrote:
Also, my IMAP folders all work fine except for the new ones I want to create manually from the CLI.
Make sure it's not a client problem (shouldn't be if you tested also with squirrelmail, but who knows): http://wiki.dovecot.org/TestInstallation
Especially see if the 'c list "" *' command shows your mailboxes.
OK, Dovecot is showing those folders correctly from telnet.
However, I can't subscribe to them in Thunderbird 3.0.5 (they don't even appear) and I don't even know that squirrelmail 1.4.13 has a subscribe feature.
Are there any other recommended clients I try this with?
On 7/7/2010 11:44 AM, Timo Sirainen wrote:
On Wed, 2010-07-07 at 11:40 -0400, A. J. Giurato wrote:
Also, my IMAP folders all work fine except for the new ones I want to create manually from the CLI.
Make sure it's not a client problem (shouldn't be if you tested also with squirrelmail, but who knows): http://wiki.dovecot.org/TestInstallation
Especially see if the 'c list "" *' command shows your mailboxes.
On 07/07/2010 09:15 AM, A. J. Giurato wrote:
OK, Dovecot is showing those folders correctly from telnet.
However, I can't subscribe to them in Thunderbird 3.0.5 (they don't even appear) and I don't even know that squirrelmail 1.4.13 has a subscribe feature.
You did "refresh" the Folder list ... right? This has bitten me several times. :-)
\\||/ Rod
Are there any other recommended clients I try this with?
On 7/7/2010 11:44 AM, Timo Sirainen wrote:
On Wed, 2010-07-07 at 11:40 -0400, A. J. Giurato wrote:
Also, my IMAP folders all work fine except for the new ones I want to create manually from the CLI.
Make sure it's not a client problem (shouldn't be if you tested also with squirrelmail, but who knows): http://wiki.dovecot.org/TestInstallation
Especially see if the 'c list "" *' command shows your mailboxes.
I've completely closed and reopened Thunderbird many times, and I've hit refresh too. Dovecot has been restarted multiple times. Squirrelmail has been logged out and back in. Apache server serving squirrelmail has been rebooted.
+--------------------+
| A. J. Giurato |
| aj@pastalovers.net |
| (678) 516-3710 |
+--------------------+
On 7/7/2010 12:20 PM, Roderick A. Anderson wrote:
On 07/07/2010 09:15 AM, A. J. Giurato wrote:
OK, Dovecot is showing those folders correctly from telnet.
However, I can't subscribe to them in Thunderbird 3.0.5 (they don't even appear) and I don't even know that squirrelmail 1.4.13 has a subscribe feature.
You did "refresh" the Folder list ... right? This has bitten me several times. :-)
\\||/ Rod
I think there was a Thunderbird bug related to showing subfolders. It was talked about here just a few (3-7?) days ago..
On Wed, 2010-07-07 at 12:28 -0400, A. J. Giurato wrote:
I've completely closed and reopened Thunderbird many times, and I've hit refresh too. Dovecot has been restarted multiple times. Squirrelmail has been logged out and back in. Apache server serving squirrelmail has been rebooted.
+--------------------+ | A. J. Giurato | | aj@pastalovers.net | | (678) 516-3710 | +--------------------+
On 7/7/2010 12:20 PM, Roderick A. Anderson wrote:
On 07/07/2010 09:15 AM, A. J. Giurato wrote:
OK, Dovecot is showing those folders correctly from telnet.
However, I can't subscribe to them in Thunderbird 3.0.5 (they don't even appear) and I don't even know that squirrelmail 1.4.13 has a subscribe feature.
You did "refresh" the Folder list ... right? This has bitten me several times. :-)
\\||/ Rod
A. J. Giurato wrote:
I'm trying to use a script to create a mailbox structure. I'm aware that the structure should look like: ~/.maildir/.INBOX/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder1/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder2/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder2.Subsubfolder1/{cur,tmp,new}
I am a bit dubious about your directory names. In my experience, INBOX is always at
~/Maildir/{cur,tmp,new}
which in your setup would become
~/.maildir/{cur,tmp,new}
Similarly, folders are at
~/Maildir/.folder/{cur,tmp,new} ~/Maildir/.folder.subfolder/{cur,tmp,new} ~/Maildir/.folder.subfolder.subsubfolder/{cur,tmp,new}
which in your setup would become
~/.maildir/.Subfolder1/{cur,tmp,new} ~/.maildir/.Subfolder2/{cur,tmp,new} ~/.maildir/.Subfolder2.Subsubfolder1/{cur,tmp,new}
Bill
This is true. Sorry. That is how I have it. The .INBOX's directories are in the root .maildir/{cur,tmp,new}
The subscriptions file did it. As recommended by Rod, I added the mailbox directories I was creating to .maildir/subscriptions. Now Thunderbird and SquirrelMail see them.
Thanks to all.
- A. J.
On 7/7/2010 2:31 PM, William Blunn wrote:
A. J. Giurato wrote:
I'm trying to use a script to create a mailbox structure. I'm aware that the structure should look like: ~/.maildir/.INBOX/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder1/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder2/{cur,tmp,new} ~/.maildir/.INBOX.Subfolder2.Subsubfolder1/{cur,tmp,new}
I am a bit dubious about your directory names. In my experience, INBOX is always at
~/Maildir/{cur,tmp,new}
which in your setup would become
~/.maildir/{cur,tmp,new}
Similarly, folders are at
~/Maildir/.folder/{cur,tmp,new} ~/Maildir/.folder.subfolder/{cur,tmp,new} ~/Maildir/.folder.subfolder.subsubfolder/{cur,tmp,new}
which in your setup would become
~/.maildir/.Subfolder1/{cur,tmp,new} ~/.maildir/.Subfolder2/{cur,tmp,new} ~/.maildir/.Subfolder2.Subsubfolder1/{cur,tmp,new}
Bill
participants (4)
-
A. J. Giurato
-
Roderick A. Anderson
-
Timo Sirainen
-
William Blunn