mailbox structure

Discussion in 'General' started by crypted, Jul 8, 2010.

  1. crypted

    crypted New Member

    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?
     
  2. till

    till Super Moderator

    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.
     
  3. crypted

    crypted New Member

    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?
     
  4. crypted

    crypted New Member

    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.
     
    Last edited: Jul 9, 2010
  5. till

    till Super Moderator

    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

    As I mentioned above, thts related to the imap daemon that you use and not ispconfig.
     
  6. crypted

    crypted New Member

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

    I used the default daemon on both installs.
     
  7. concept21

    concept21 Member

    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.
     
  8. till

    till Super Moderator

    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.
     
  9. concept21

    concept21 Member

Share This Page