HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   mailbox structure (http://www.howtoforge.com/forums/showthread.php?t=47118)

crypted 8th July 2010 03:41

mailbox structure
 
Originally, using the IMAP feature in ISPCONFIG 2 allowed me to use multiple folders at the root layout of the mail box.

Upon moving to ISPCONFIG 3 and copying the mailbox data over, all folders are subdirectories of the Inbox and look quite ugly.

How can I rebuild the mailbox tree so that all folders are at the root instead of subdirectories of Inbox?

till 8th July 2010 10:28

The mailbox structure is the same in ispconfig 2 and 3 is the same as long as you used the same pop3 / imap daemon as this structure has nothing to do with ispconfig, it is created and managed by the imap daemon. If the mailbox looks differently in your imap client, you might have moved the folders to a wrong directory.

crypted 8th July 2010 15:32

Currently, my directory structure looks like:

Index
| - Forum Posts
| - Orders
| - Hosting Details
| - Sent
| - Trash

The structure is the same whether I'm using SquirrelMail or Outlook IMAP.

Prior to moving to ISPCONFIG 3, it was:

Index
Forum Posts
Orders
Hosting Details
Sent
Trash

How would I move everything to obtain that old structure?

crypted 9th July 2010 05:51

My email directory is the following:

Code:

my:/var/vmail/derdggdn.com/derek# ls -lah
total 1.1M
drwx------ 27 vmail vmail 4.0K 2010-07-08 23:09 .
drwx------  8 vmail vmail 4.0K 2010-05-25 10:15 ..
-rwx------  1 vmail vmail  103 2010-04-13 00:50 .antivirus.rc
-rwx------  1 vmail vmail  938 2010-04-13 00:50 .autoresponder.rc
drwx------  2 vmail vmail 4.0K 2010-04-15 00:08 courierimaphieracl
drwx------  2 vmail vmail 4.0K 2010-07-07 14:15 courierimapkeywords
-rwx------  1 vmail vmail  196 2010-04-15 00:08 courierimapsubscribed
-rw-r--r--  1 vmail vmail  37K 2010-07-08 23:09 courierimapuiddb
drwx------  2 vmail vmail 108K 2010-07-08 23:15 cur
drwx------  6 vmail vmail 4.0K 2010-07-08 20:46 .Deleted Items
-rwx------  1 vmail vmail 8.4K 2010-04-14 23:36 dovecot.index
-rwx------  1 vmail vmail 398K 2010-04-14 23:36 dovecot.index.cache
-rwx------  1 vmail vmail  74K 2010-04-14 23:45 dovecot.index.log
-rwx------  1 vmail vmail 129K 2010-04-09 10:04 dovecot.index.log.2
-rwx------  1 vmail vmail  13 2009-06-30 15:34 dovecot-keywords
-rwx------  1 vmail vmail  25K 2010-04-14 23:36 dovecot-uidlist
drwx------  6 vmail vmail 4.0K 2010-04-28 11:38 .Drafts
drwx------  6 vmail vmail 4.0K 2010-07-07 15:41 .Forum Posts
-rwx------  1 vmail vmail  68K 2010-04-13 00:50 .html-trap.rc
-rw-rw----  1 vmail vmail  435 2010-07-08 23:03 ispconfig_mailsize
drwx------  6 vmail vmail 4.0K 2010-07-08 22:24 .Junk
drwx------  5 vmail vmail 4.0K 2010-04-15 00:08 .Junk E-mail
-rwx------  1 vmail vmail 3.8K 2010-04-13 00:50 .local-rules.rc
drwx------ 20 vmail vmail 4.0K 2010-04-14 23:45 Maildir
-rw-r--r--  1 vmail vmail 3.5K 2010-07-08 23:15 maildirsize
-rwx------  1 vmail vmail  204 2010-04-13 00:50 .mailsize.rc
drwx------  2 vmail vmail 4.0K 2010-07-08 23:04 new
-rwx------  1 vmail vmail  656 2010-04-13 00:50 .quota.rc
drwx------  6 vmail vmail 4.0K 2010-06-22 13:12 .Registrations
\drwx------  6 vmail vmail 4.0K 2010-07-08 23:15 .Sent
drwx------  6 vmail vmail 4.0K 2010-06-10 22:10 .Sent Items
drwx------  2 vmail vmail 4.0K 2009-05-11 14:25 .spamassassin
-rwx------  1 vmail vmail 1.2K 2010-04-13 00:50 .spamassassin.rc
drwx------  6 vmail vmail 4.0K 2010-04-15 00:16 .Spam Issue
-rwx------  1 vmail vmail  148 2010-04-04 21:07 subscriptions
drwx------  6 vmail vmail 4.0K 2010-04-15 00:16 .Tax Data
drwx------  2 vmail vmail 4.0K 2010-07-08 23:49 tmp
drwx------  6 vmail vmail 4.0K 2010-07-08 23:09 .Trash
drwx------  6 vmail vmail 4.0K 2010-05-08 22:53 .Travel Documents
-rwx------  1 vmail vmail 2.2K 2010-04-13 00:50 .user_prefs
-rwx------  1 vmail vmail  32 2010-04-13 00:50 .vacation.msg
drwx------  2 vmail vmail 4.0K 2009-05-11 14:25 web

This has something to do with NAMESPACES where the configuration from Perfect Setup seems to have all folders aside from INBOX as being private subfolders for INBOX.

I have no clue where NAMESPACE information is stored for ISPCONFIG3.

I'm using Courier and Maildrop according to the ISPCONFIG panel.

till 9th July 2010 08:16

Quote:

This has something to do with NAMESPACES where the configuration from Perfect Setup seems to have all folders aside from INBOX as being private subfolders for INBOX.
As mentioned in my post above, it looks as if you switched to another imap daemon. Which imap daemon have you used in ispconfig 2?

For example, courier uses INBOX. as namesapce while dovecot does not use namespaces. So if you copied the imape folders from a dovecot system to courier, the layout may change.

See also:

http://wiki.dovecot.org/Migration/Courier

Quote:

I have no clue where NAMESPACE information is stored for ISPCONFIG3
As I mentioned above, thts related to the imap daemon that you use and not ispconfig.

crypted 9th July 2010 16:19

I believe dovecot on ISPCONFIG 2 and then it's courier on ISPCONFIG 3.

I used the default daemon on both installs.

concept21 25th July 2012 18:33

Yes, when receiving mail (I use Thunderbird v14 or Squirrelmail 1.4), the mailbox structure of ISPconfig 3 with courier is incorrect but functioning correctly. Every other folders become subfolders of INBOX. The structure is:
+Inbox
| - Drafts
| - Sent
| - Archives
| - Junk
| - Trash



The correct normal structure should be:

Inbox
Drafts
Sent
Archives
Junk
Trash

Please correct it in the next release.

till 25th July 2012 21:31

This is not related to ISPConfig at all, so nothing we could correct. Courier always has the folders inside inbox, thats courier specific, take a look at the courier docs and I explained that already. You can set inbox as prefix in your imap client if you want to get them displayed as dovecot is doing it or use dovecot.

And take a look at the perfects etup guide, it is explained there how o set the prefix in squirrelmail.

concept21 26th July 2012 20:22

Yes, I know how to make the mailbox prettier:

Courier IMAP Client Configuration:
http://www.karmak.org/2003/courier-i...underbird-1.5/


All times are GMT +2. The time now is 01:12.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.