Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member kdarray's Avatar
    Join Date
    Apr 2006
    Location
    Washington
    Posts
    81

    Default Courier IMAP Mail & Directories

    I have the Courier IMAP mail running on a server and have a big issue with the directory structure it creates in Horde mail for example and it shows up in Squirrel too.

    Every individual mail message is stored in it's own separate folder with an add in subject line. The problem is I and my clients want an inbox with 18 messages, not an inbox with 18 file folders containing those 18 messages. When you have several mailboxes and a great deal of incoming email, this whole thing seems ludicrious.

    I have looked everywhere but see no references to this specific directory structure (cur, new, etc) and how to work around or replace it.

    Has anyone experienced this and how are you dealing with it.

  2. #2
    BANNED
    Join Date
    Jul 2005
    Posts
    537

    Default

    Im sorry but i dont see this directory sturcture on our boxes.

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Quote Originally Posted by kdarray
    I have the Courier IMAP mail running on a server and have a big issue with the directory structure it creates in Horde mail for example and it shows up in Squirrel too.

    Every individual mail message is stored in it's own separate folder with an add in subject line. The problem is I and my clients want an inbox with 18 messages, not an inbox with 18 file folders containing those 18 messages. When you have several mailboxes and a great deal of incoming email, this whole thing seems ludicrious.

    I have looked everywhere but see no references to this specific directory structure (cur, new, etc) and how to work around or replace it.

    Has anyone experienced this and how are you dealing with it.
    If you're talking about users' mail being in:

    /home/cpaneluser/mail/example.com/mailuser/cur/
    /home/cpaneluser/mail/example.com/mailuser/new/
    /home/cpaneluser/mail/example.com/mailuser/tmp/

    then you're describing the MailDir format. You should see that each message is stored in it's own file, not it's own directory.

    The other common mailbox format is Mbox where each IMAP folder, and the main inbox, is actually a file and not a directory and all messages are stored within the same text file. This format is less effective as when a given message is accessed the file containing potentially many messages has to be opened and locked so as to prevent changes occurring whilst the file is read or modified. This can cause mailboxes to be inaccessible to POP as once a mail file is locked no other process can access it.

    MailDir is definitely the superior format.

  4. #4
    Member kdarray's Avatar
    Join Date
    Apr 2006
    Location
    Washington
    Posts
    81

    Default yes that's it

    Yes Jackie, for this one server we have the directory structure that webignition describes. I have read up on the new format and realize it is the way of the future. It is just the way messages are laid out now is very inconvenient compared to mbox. Clients are having a hard time getting used to this new structure for maildir. I guess that is just how maildir handles messages and there is nothing I can do to alter that format but go back to mbox.

    I thank both of you for your replies and affirming this new format is here to stay.

  5. #5
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Quote Originally Posted by kdarray
    Clients are having a hard time getting used to this new structure for maildir.
    I don't quite understand why this should be the case. Clients, as in end-users, will be accessing mail via a mail client. The mail client will handle everything for them.

    End-users just see email messages and, potentially, folders with or without messages in them. They don't need to concern themselves with the format in which data is actually stored server-side.

    The mailbox format is only of interest or concern to the POP and IMAP servers!

  6. #6
    Member kdarray's Avatar
    Join Date
    Apr 2006
    Location
    Washington
    Posts
    81

    Default No

    Webignition, many of my clients access their site email directly from cpanel. It is not like they are grabbing their messages in MS Outlook or anything. So they open Horde for example and instead of seeing 18 messages in their in box, they see 18 folders in "cur" and have to open each one to see what is there. That is the major inconvenience and just a stupid way to have to read your email in Cpanel. So i can't see at a glance what is in my inbox, instead I have to open a bunch of folders to see the individual messages. That is the issue I am talking about.

    If everyone just got their email in POP3 it would not be bad at all. But that is not the case.

  7. #7
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Thanks for the explanation. Now I understand.

    That certainly shouldn't be the case. Ever since I switched to the maildir format, both Horde and SquirrelMail display messages as you would expect and not as you describe.

    What OS and version of WHM/cPanel are you running?

  8. #8
    Member kdarray's Avatar
    Join Date
    Apr 2006
    Location
    Washington
    Posts
    81

    Default Here you go

    Running STABLE tree, Fedora Core 4

    WHM 10.8.0 cPanel 10.8.1-S114
    Fedora i686 - WHM X v3.1.0

    Exim is 4.5.2

    Because a cur, tmp, new folder is created for each mailbox in /home/domain/mail I am getting this folders issue instead of mail in Horde or Squirrel. Neomail is no longer available but I'm sure it would be the same way.

    So how do i remove this directory structure so that people accessing their mailboxes via CPanel get a regular old looking mailbox that you would expect: inbox 18 messages, support 14 messages and so on? I have lost all partiality over this

  9. #9
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    The webmail interfaces merely accept data from whatever IMAP server is running, therefore it would be fair to conclude that it is the IMAP server that is at fault. This is assuming that the chances of both Horde and SquirrelMail having an identical fault is rather small.

    Therefore it is possible that the IMAP server you're running isn't the correct one. In other words, and for whatever reason, Courier IMAP isn't actually running and some other IMAP server is running instead and that the one that is running does not understand the maildir format.

    I'd recommend giving /scripts/courierup --force a go. This will ensure that Courier IMAP is installed correctly and that it is running.

    Give the script a go and check carefully for errors. The install should go fine, however if there is another IMAP server running you might spot errors towards the end of the output of /scripts/courierup --force when it tries and fails to start Courier IMAP.

  10. #10
    Member kdarray's Avatar
    Join Date
    Apr 2006
    Location
    Washington
    Posts
    81

    Default did that

    webignition, that is how i installed courier imap /scripts/courierup --force. i just uninstalled it and have spent two days copying the emails that were in individual folders back into one inbox like normal. i hesitate to go there again and get stuck with a bunch of sites who can't really read their mail. i had moved existing sites to this server some with hundreds of emails and thus hundreds of folders.

    i can copy two test sites here. both have mail. should i reinstall courier imap first, move them, then run convert2maildir? of copy them first then reinstall courier imap. either way i'm praying not to get the email folders i described above.

Similar Threads & Tags
Similar threads

  1. courier imap problems
    By onef in forum E-mail Discussions
    Replies: 3
    Last Post: 10-29-2010, 12:18 AM
  2. Courier imap timeout
    By linuxdude in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 09-26-2006, 04:12 PM
  3. convert2maildir did its job, courier-imap (imap & pop) are causing problems
    By hariskhan in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-05-2006, 07:13 AM
  4. I switch back from courier imap and now imap wont start
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-23-2006, 06:58 PM
  5. courier authlib and courier imap taking up resources
    By dennis in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-18-2005, 02:52 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube