Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Subfolders with Dovecot/Postfix

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Email/SMTP Related Forum
Author Message
Grant



Joined: 24 Jan 2008
Posts: 2

Posted: Thu Jan 24, 2008 4: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
Back to top  
irgeek



Joined: 21 Jun 2003
Posts: 104
Location: Denver, CO

Posted: Thu Jan 24, 2008 7: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
Back to top  
Grant



Joined: 24 Jan 2008
Posts: 2

Posted: Thu Jan 24, 2008 8: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
Back to top  
pclissold



Joined: 24 Oct 2003
Posts: 472
Location: Netherlands

Posted: Thu Jan 24, 2008 9: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).
Back to top  
Stever



Joined: 07 Dec 2007
Posts: 41
Location: NC, USA

Posted: Thu Jan 24, 2008 11:02 am    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
Back to top  
nabber00



Joined: 02 Dec 2007
Posts: 25

Posted: Thu Jan 24, 2008 2: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.
Back to top  
rrregis



Joined: 13 Feb 2008
Posts: 2

Posted: Wed Feb 13, 2008 5: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.
Back to top  
Xan



Joined: 08 Feb 2004
Posts: 311
Location: Austin

Posted: Wed Feb 13, 2008 11:48 pm    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.
Back to top  
rrregis



Joined: 13 Feb 2008
Posts: 2

Posted: Tue Feb 26, 2008 11:17 pm    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".
Back to top  
Xan



Joined: 08 Feb 2004
Posts: 311
Location: Austin

Posted: Wed Feb 27, 2008 12: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.)
Back to top  
 
       Linode.com Forum Forum Index -> Email/SMTP Related Forum
Page 1 of 1