Changes between Version 2 and Version 3 of Howto_Config


Ignore:
Timestamp:
Sep 18, 2006 6:40:55 PM (7 years ago)
Author:
philodox
Comment:

Experience from Debian/Courier?-IMAP/Postfix/MySQL5/php5 setup.

Legend:

Unmodified
Added
Removed
Modified
  • Howto_Config

    v2 v3  
    88 
    99$rcmail_config['default_host'] = array('mail.example.com', 'webmail.example.com', 'ssl://mail.example.com:993'); 
     10 
     11'''Configuring For Courier-IMAP Support''' 
     12 
     13Courier-IMAP strictly adheres to the IMAP4 standards.  Therefore, it follows the IMAP namespacing guidelines.  Under the standards, the namespace of "INBOX." is used to contain all private user created and user specific folders.  The namespace of "shared." is used to store all public folders.  Courier-IMAP uses this by default, and it is up to the Mail User Agent (MUA), such as RoundCube, Thunderbird, Outlook, etc., to properly reference the namespace while creating/modifying/storing in folders. 
     14 
     15The default RC configuration files do not have this built in, or at least did not support my experience of Courier-IMAP/Postfix under Debian.   
     16 
     17The common side effect of this is when a user tries to send a message; the message reaches the SMTP server and is sent to the recipient, however a "Sending Message" notification comes up and results in a time out after 2 minutes.  (You can reference logs and see that it is occurring in a php file readin function).  This is because the Sent folder is configured outside of the INBOX. namespace and RC does not have the ability to write the sent message to that folder. In addition, a user will not be able to move files from the Inbox folder to any of the Drafts, Junk, Trash, and Sent folders.   
     18 
     19Configure main.inc.php and prepend a "INBOX." to any folder references in order to have RC correctly reference the IMAP namespace for private user folders.   
     20 
     21The resulting lines will look like this: 
     22$rcmail_config['drafts_mbox'] = 'INBOX.Drafts'; 
     23$rcmail_config['junk_mbox'] = 'INBOX.Junk'; 
     24 
     25... [ apply same format to rest of lines ] ...  
     26 
     27$rcmail_config['default_imap_folders'] = array('INBOX.', 'INBOX.Drafts', 'INBOX.Sent', 'INBOX.Junk', 'INBOX.Trash'); 
     28 
     29If this is correctly done, upon refresh of the main RC page you will see the Drafts, Sent, Junk, and Trash folders as subfolders of the Inbox. 
     30 
     31If you have residual top level folders of Drafts, Sent, Junk, Trash, you can delete them by going to Personal Settings -> Folders.  If the top level folders do not show up (they will not have INBOX. in the name) you must change the following line in main.inc.php to FALSE: 
     32 
     33$rcmail_config['protect_default_folders'] = FALSE; 
     34 
     35This will allow you to delete top level folders.  Change back to TRUE when you are done in order to prevent users from accidentally deleting the default folders.