Linode Forum
https://forum.linode.com/

Subfolders with Dovecot/Postfix
https://forum.linode.com/viewtopic.php?f=11&t=3063
Page 1 of 1

Author:  Grant [ Thu Jan 24, 2008 5:34 am ]
Post subject:  Subfolders with Dovecot/Postfix

Hey All,

I have googled this a few times, screwed around with it a bit, but I am not really sure what I am doing.

I've been using a Dovecot/Postfix setup on my Dapper Drake linode for the last 18 months, without the ability to have subfolders.

I can have :

grant@gn.net.au/
- Folder Name
- Folder Name Two

But I can't have:

grant@gn.net.au/
- Folder Name/
-- Subfolder Name/
- Folder Name Two/
-- Subfolder Name/
--- Sub Sub Folder Name/
---- etc./

This is quite a hassle, because I'd like to be able to organise my emails in a much more appropriate way and just folders doesn't quite cut it.

My dovecot configuration file is:

http://www.gn.net.au/r/dovecot.conf

My postfix configuration file is:

http://www.gn.net.au/r/postfix_main.cf

I have tried to follow a few tutorials to configure it, and have googled quite a bit but I can't find anything that lets me know what/how I might be able to configure this.

Thanks for any help in advance!

Grant

Author:  irgeek [ Thu Jan 24, 2008 8:07 am ]
Post subject: 

I've never used dovecot, so this is a complete guess, but I know some IMAP implementations don't allow a folder to contain both message and sub folders. Have you tried creating a subfolder under and empty parent folder?

--James

Author:  Grant [ Thu Jan 24, 2008 9:06 am ]
Post subject: 

irgeek wrote:
Have you tried creating a subfolder under and empty parent folder?


Thanks for your response James, but I am unable to create a subfolder if I try to create one in an empty folder either.

G

Author:  pclissold [ Thu Jan 24, 2008 10:44 am ]
Post subject: 

If I recall correctly, Postfix defaults to mbox delivery (there's nothing in your main.cf to override this) and if you are using the mbox mail storage format, Dovecot won't do subfolders. You need to switch to the maildir storage format (and convert your existing mbox data).

Author:  Stever [ Thu Jan 24, 2008 12:02 pm ]
Post subject: 

I have postfix/dovecot running with .maildir format, and I can confirm that it lets me create subfolders for IMAP accounts. When I look directly in the maildir they are stored in the base directory, but in Thunderbird they look and act just like subfolders.

Code:
 ~/.maildir $ ls -a
.  ..  .Sent  .Trash  .test  .test.testsub  cur ...


HTH

Author:  nabber00 [ Thu Jan 24, 2008 3:10 pm ]
Post subject: 

I think I have the same dovecot/mbox setup as you. How I've created subfolders is by using the shell command mkdir. I don't think you can make subfolder changes like that via IMAP unless you switch to maildir.

Author:  rrregis [ Wed Feb 13, 2008 6:11 pm ]
Post subject: 

Dovecot is strange, but easy as hell to get SMTP auth, which is why I use it. Anyway, if your mail forder is named "mail", then its subfolders must be hidden (dot) files named ".mail.*" . So if mail has a Spam folder and Trash folder, they must reside in the "mail" directory with the names .mail.Spam and .mail.Trash.

Author:  Xan [ Thu Feb 14, 2008 12:48 am ]
Post subject: 

That convention for folder names is not unique to Dovecot; it's a maildir thing. Something like that can't be unique to an MUA because the MTA has to speak it as well.

Author:  rrregis [ Wed Feb 27, 2008 12:17 am ]
Post subject: 

Xan wrote:
That convention for folder names is not unique to Dovecot; it's a maildir thing. Something like that can't be unique to an MUA because the MTA has to speak it as well.


What? I've been using Courier-IMAP for the past 5-6 years, and just converted to Dovecot. Courier and Dovecot don't share this convention you call a "maildir thing".

Author:  Xan [ Wed Feb 27, 2008 1:08 am ]
Post subject: 

Maildir++, a minor extension to Maildir, was first implemented in the Courier MTA in 1998.

So if anything, it's a Courier-specific thing. (But it isn't, it's widely supported, as you are illustrating.)

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/