Community Discussions and Support
RoundCube

Deagol,

I've now done exactly the same installation on a Windows 2003 server, and everything works. My issues must be specific to IIS 5.

Thanks for your help.

Richard

 

<p>Deagol,</p><p>I've now done exactly the same installation on a Windows 2003 server, and everything works. My issues must be specific to IIS 5.</p><p>Thanks for your help.</p><p>Richard </p><p> </p>

Has anyone here got RoundCube webmail working with Mercury?

I have it partially working. I seem to be able to send & receive mail through it, but the first of several problems is that mail folders don't show up.

I'm using

Mercury 4.72, IIS 5 on Windows 2000 Server, php 5.2.10, roundcube 0.2.2 and postgresql

 

Richard

<p>Has anyone here got RoundCube webmail working with Mercury?</p><p>I have it partially working. I seem to be able to send & receive mail through it, but the first of several problems is that mail folders don't show up. </p><p>I'm using</p><p>Mercury 4.72, IIS 5 on Windows 2000 Server, php 5.2.10, roundcube 0.2.2 and postgresql </p><p> </p><p>Richard </p>

I have Rouncube and Mercury working in the following setup: Mercury 4.72 on Windows 2003 (IIS 6), php 5.2.10, Roundcube 0.2.2, MySQL 5.

 I do not encounter the problems you described. Perhaps you have some php/roundcube/mercury configuration issues, we need some more information in order to be able to determine the problem (php.ini/roundcube config files, mercury.ini).

 

 

<P>I have Rouncube and Mercury working in the following setup: Mercury 4.72 on Windows 2003 (IIS 6), php 5.2.10, Roundcube 0.2.2, MySQL 5.</P> <P> I do not encounter the problems you described. Perhaps you have some php/roundcube/mercury configuration issues, we need some more information in order to be able to determine the problem (php.ini/roundcube config files, mercury.ini). </P> <P mce_keep="true"> </P> <P mce_keep="true"> </P>

Hi Deagol,

[quote user="Deagol"]

we need some more information in order to be able to determine the problem (php.ini/roundcube config files, mercury.ini).

 [/quote]

Here is my Roundcube  main.inc.php file. I'll could post other config files as well if that would help. I think my Mercury installation is ok as when using Pegasus to connect to it, folders are visible. Also, looking at the IMAP session log when Roundcube connects to Mercury, although I don't understand the IMAP protocol, it does look as though Mercury is sending Roundcube a list of folders. I've pasted such an IMAP session below the php file. Also, the various folders are visible in the in the Roundcube/Personal Settings/Folders, so somehow Roundcube has learnt of their existance. However if I try and check the  Roundcube/Personal Settings/Folders/subscribed

checkbox I get an 'Unknown Server Error!' message, which also occurs if

I try and create a new folder. In the 'message view' of RC, folders are

not visible at all.

Thanks for your help,

Richard


Roundcube  main.inc.php


<?php

/*


 +-----------------------------------------------------------------------+
 | Main configuration file                                               |
 |                                                                       |
 | This file is part of the RoundCube Webmail client                     |
 | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland                 |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 +-----------------------------------------------------------------------+

*/

$rcmail_config = array();


// system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
$rcmail_config['debug_level'] = 1;

// log driver:  'syslog' or 'file'.
$rcmail_config['log_driver'] = 'file';

// Syslog ident string to use, if using the 'syslog' log driver.
$rcmail_config['syslog_id'] = 'roundcube';

// Syslog facility to use, if using the 'syslog' log driver.
// For possible values see installer or http://php.net/manual/en/function.openlog.php
$rcmail_config['syslog_facility'] = LOG_USER;

// use this folder to store log files (must be writeable for apache user)
// This is used by the 'file' log driver.
$rcmail_config['log_dir'] = 'logs/';

// use this folder to store temp files (must be writeable for apache user)
$rcmail_config['temp_dir'] = 'temp/';

// enable caching of messages and mailbox data in the local database.
// this is recommended if the IMAP server does not run on the same machine
$rcmail_config['enable_caching'] = TRUE;

// lifetime of message cache
// possible units: s, m, h, d, w
$rcmail_config['message_cache_lifetime'] = '1m';

// automatically create a new RoundCube user when log-in the first time.
// a new user will be created once the IMAP login succeeds.
// set to false if only registered users can use this service
$rcmail_config['auto_create_user'] = TRUE;

// the mail host chosen to perform the log-in
// leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
$rcmail_config['default_host'] = '10.2.1.100';

// TCP port used for IMAP connections
$rcmail_config['default_port'] = 143;

// IMAP auth type. Can be "auth" (CRAM-MD5), "plain" (PLAIN) or "check" to auto detect.
// Optional, defaults to "check"
$rcmail_config['imap_auth_type'] = '';

// If you know your imap's root directory and its folder delimiter,
// you can specify them here. Otherwise they will be determined automatically.
$rcmail_config['imap_root'] = null;
$rcmail_config['imap_delimiter'] = null;

// Automatically add this domain to user names for login
// Only for IMAP servers that require full e-mail addresses for login
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['username_domain'] = '';

// This domain will be used to form e-mail addresses of new users
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['mail_domain'] = 'softnode.net';

// Path to a virtuser table file to resolve user names and e-mail addresses
$rcmail_config['virtuser_file'] = '';

// Query to resolve user names and e-mail addresses from the database
// %u will be replaced with the current username for login.
// The query should select the user's e-mail address as first col
$rcmail_config['virtuser_query'] = '';

// use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = '';

// SMTP port (default is 25; 465 for SSL)
$rcmail_config['smtp_port'] = 25;

// SMTP username (if required) if you use %u as the username RoundCube
// will use the current username for login
$rcmail_config['smtp_user'] = '';

// SMTP password (if required) if you use %p as the password RoundCube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = '';

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = '';

// SMTP HELO host
// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
// Leave this blank and you will get the server variable 'server_name' or
// localhost if that isn't defined.
$rcmail_config['smtp_helo_host'] = 'roundcube';

// Log sent messages
$rcmail_config['smtp_log'] = false;

// How many seconds must pass between emails sent by a user
$rcmail_config['sendmail_delay'] = 0;

// These cols are shown in the message list. Available cols are:
// subject, from, to, cc, replyto, date, size, flag, attachment
$rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size', 'flag', 'attachment');

// Includes should be interpreted as PHP files
$rcmail_config['skin_include_php'] = FALSE;

// Session lifetime in minutes
// must be greater than 'keep_alive'/60
$rcmail_config['session_lifetime'] = 10;

// check client IP in session athorization
$rcmail_config['ip_check'] = false;

// Use an additional frequently changing cookie to athenticate user sessions.
// There have been problems reported with this feature.
$rcmail_config['double_auth'] = false;

// this key is used to encrypt the users imap password which is stored
// in the session record (and the client cookie if remember password is enabled).
// please provide a string of exactly 24 chars.
$rcmail_config['des_key'] = 'kOfahEGx3Nu*aL5T2F40%lXp';

// the default locale setting (leave empty for auto-detection)
// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
$rcmail_config['language'] = null;

// use this format for short date display
$rcmail_config['date_short'] = 'D H:i';

// use this format for detailed date/time formatting
$rcmail_config['date_long'] = 'd.m.Y H:i';

// use this format for today's date display
$rcmail_config['date_today'] = 'H:i';

// add this user-agent to message headers when sending
$rcmail_config['useragent'] = 'RoundCube Webmail/0.2.2';

// use this name to compose page titles
$rcmail_config['product_name'] = 'My Webmail';

// store draft message is this mailbox
// leave blank if draft messages should not be stored
$rcmail_config['drafts_mbox'] = 'Drafts';

// store spam messages in this mailbox
$rcmail_config['junk_mbox'] = 'Junk';

// store sent message is this mailbox
// leave blank if sent messages should not be stored
$rcmail_config['sent_mbox'] = 'Sent';

// move messages to this folder when deleting them
// leave blank if they should be deleted directly
$rcmail_config['trash_mbox'] = 'Trash';

// display these folders separately in the mailbox list.
// these folders will also be displayed with localized names
$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');

// automatically create the above listed default folders on login
$rcmail_config['create_default_folders'] = TRUE;

// protect the default folders from renames, deletes, and subscription changes
$rcmail_config['protect_default_folders'] = TRUE;

// if in your system 0 quota means no limit set this option to TRUE
$rcmail_config['quota_zero_as_unlimited'] = FALSE;

// Behavior if a received message requests a message delivery notification (read receipt)
// 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
$rcmail_config['mdn_requests'] = 0;

// Use this charset as fallback for message decoding
$rcmail_config['default_charset'] = 'ISO-8859-1';

// Make use of the built-in spell checker. It is based on GoogieSpell.
// Since Google only accepts connections over https your PHP installatation
// requires to be compiled with Open SSL support
$rcmail_config['enable_spellcheck'] = TRUE;

// Set the spell checking engine. 'googie' is the default. 'pspell' is also available,
// but requires the Pspell extensions. When using Nox Spell Server, also set 'googie' here.
$rcmail_config['spellcheck_engine'] = 'googie';

// For a locally installed Nox Spell Server, please specify the URI to call it.
// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
// Leave empty to use the Google spell checking service, what means
// that the message content will be sent to Google in order to check spelling
$rcmail_config['spellcheck_uri'] = '';

// These languages can be selected for spell checking.
// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
// Leave empty for default set of Google spell check languages, should be defined
// when using local Pspell extension
$rcmail_config['spellcheck_languages'] = NULL;

// path to a text file which will be added to each sent message
// paths are relative to the RoundCube root folder
$rcmail_config['generic_message_footer'] = '';

// add a received header to outgoing mails containing the creators IP and hostname
$rcmail_config['http_received_header'] = false;

// this string is used as a delimiter for message headers when sending
// leave empty for auto-detection
$rcmail_config['mail_header_delimiter'] = NULL;

// session domain: .example.org
$rcmail_config['session_domain'] = '';

// This indicates which type of address book to use. Possible choises:
// 'sql' (default) and 'ldap'.
// If set to 'ldap' then it will look at using the first writable LDAP
// address book as the primary address book and it will not display the
// SQL address book in the 'Address Book' view.
$rcmail_config['address_book_type'] = 'sql';

// In order to enable public ldap search, configure an array like the Verisign
// example further below. if you would like to test, simply uncomment the example.
$rcmail_config['ldap_public'] = array();

//
// If you are going to use LDAP for individual address books, you will need to
// set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
//
// The recommended directory structure for LDAP is to store all the address book entries
// under the users main entry, e.g.:
//
//  o=root
//   ou=people
//    uid=user@domain
//  mail=contact@contactdomain
//
// So the base_dn would be uid=%fu,ou=people,o=root
// The bind_dn would be the same as based_dn or some super user login.
/*
 * example config for Verisign directory
 *
$rcmail_config['ldap_public']['Verisign'] = array(
  'name'          => 'Verisign.com',
  'hosts'         => array('directory.verisign.com'),
  'port'          => 389,
  'use_tls'        => false,
  'user_specific' => false,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
  // %fu - The full username provided, assumes the username is an email
  //       address, uses the username_domain value if not an email address.
  // %u  - The username prior to the '@'.
  // %d  - The domain name after the '@'.
  'base_dn'       => '',
  'bind_dn'       => '',
  'bind_pass'     => '',
  'writable'      => false,   // Indicates if we can write to the LDAP directory or not.
  // If writable is true then these fields need to be populated:
  // LDAP_Object_Classes, required_fields, LDAP_rdn
  'LDAP_Object_Classes' => array("top", "inetOrgPerson"), // To create a new contact these are the object classes to specify (or any other classes you wish to use).
  'required_fields'     => array("cn", "sn", "mail"),     // The required fields needed to build a new contact as required by the object classes (can include additional fields not required by the object classes).
  'LDAP_rdn'      => 'mail', // The RDN field that is used for new entries, this field needs to be one of the search_fields, the base of base_dn is appended to the RDN to insert into the LDAP directory.
  'ldap_version'  => 3,       // using LDAPv3
  'search_fields' => array('mail', 'cn'),  // fields to search in
  'name_field'    => 'cn',    // this field represents the contact's name
  'email_field'   => 'mail',  // this field represents the contact's e-mail
  'surname_field' => 'sn',    // this field represents the contact's last name
  'firstname_field' => 'gn',  // this field represents the contact's first name
  'sort'          => 'cn',    // The field to sort the listing by.
  'scope'         => 'sub',   // search mode: sub|base|list
  'filter'        => '',      // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
  'fuzzy_search'  => true);   // server allows wildcard search
*/

// An ordered array of the ids of the addressbooks that should be searched
// when populating address autocomplete fields server-side. ex: array('sql','Verisign');
$rcmail_config['autocomplete_addressbooks'] = array('sql');

// don't allow these settings to be overriden by the user
$rcmail_config['dont_override'] = array();

// Set identities access level:
// 0 - many identities with possibility to edit all params
// 1 - many identities with possibility to edit all params but not email address
// 2 - one identity with possibility to edit all params
// 3 - one identity with possibility to edit all params but not email address
$rcmail_config['identities_level'] = 0;

// try to load host-specific configuration
// see http://trac.roundcube.net/wiki/Howto_Config for more details
$rcmail_config['include_host_config'] = false;

// don't let users set pagesize to more than this value if set
$rcmail_config['max_pagesize'] = 200;

// mime magic database
$rcmail_config['mime_magic'] = '/usr/share/misc/magic';

// default sort col
$rcmail_config['message_sort_col'] = 'date';

// default sort order
$rcmail_config['message_sort_order'] = 'DESC';

// THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
// ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
$rcmail_config['enable_installer'] = true;

// Log successful logins
$rcmail_config['log_logins'] = false;

/**
 * 'Delete always'
 * This setting reflects if mail should be always marked as deleted,
 * even if moving to "Trash" fails. This is necessary in some setups
 * because a) people may not have a Trash folder or b) they are over
 * quota (and Trash is included in the quota).
 *
 * This is a failover setting for iil_C_Move when a message is moved
 * to the Trash.
 */
$rcmail_config['delete_always'] = false;

// Minimal value of user's 'keep_alive' setting (in seconds)
// Must be less than 'session_lifetime'
$rcmail_config['min_keep_alive'] = 60;

/***** these settings can be overwritten by user's preferences *****/

// skin name: folder from skins/
$rcmail_config['skin'] = 'default';

// show up to X items in list view
$rcmail_config['pagesize'] = 40;

// use this timezone to display date/time
$rcmail_config['timezone'] = 'auto';

// is daylight saving On?
$rcmail_config['dst_active'] = (bool)date('I');

// prefer displaying HTML messages
$rcmail_config['prefer_html'] = TRUE;

// display remote inline images
// 0 - Never, always ask
// 1 - Ask if sender is not in address book
// 2 - Always show inline images
$rcmail_config['show_images'] = 0;

// compose html formatted messages by default
$rcmail_config['htmleditor'] = FALSE;

// show pretty dates as standard
$rcmail_config['prettydate'] = TRUE;

// save compose message every 300 seconds (5min)
$rcmail_config['draft_autosave'] = 300;

// default setting if preview pane is enabled
$rcmail_config['preview_pane'] = FALSE;

// focus new window if new message arrives
$rcmail_config['focus_on_new_message'] = true;

// Clear Trash on logout
$rcmail_config['logout_purge'] = FALSE;

// Compact INBOX on logout
$rcmail_config['logout_expunge'] = FALSE;

// Display attached images below the message body
$rcmail_config['inline_images'] = TRUE;

// Encoding of long/non-ascii attachment names:
// 0 - Full RFC 2231 compatible
// 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default)
// 2 - Full 2047 compatible
$rcmail_config['mime_param_folding'] = 0;

// Set TRUE if deleted messages should not be displayed
// This will make the application run slower
$rcmail_config['skip_deleted'] = FALSE;

// Set true to Mark deleted messages as read as well as deleted
// False means that a message's read status is not affected by marking it as deleted
$rcmail_config['read_when_deleted'] = TRUE;

// When a Trash folder is not present and a message is deleted, flag
// the message for deletion rather than deleting it immediately.  Setting this to
// false causes deleted messages to be permanantly removed if there is no Trash folder
$rcmail_config['flag_for_deletion'] = FALSE;

// Default interval for keep-alive/check-recent requests (in seconds)
// Must be greater than or equal to 'min_keep_alive' and less than 'session_lifetime'
$rcmail_config['keep_alive'] = 60;

// If true all folders will be checked for recent messages
$rcmail_config['check_all_folders'] = FALSE;

// end of config file
?>

 


IMAP session where I can see Mercury telling Roundcube of my folders called Personal & Work:


 

17:45:46.703: Connection from 10.1.100.7, Mon Aug 17 17:45:46 2009<lf>
17:45:46.703: << * OK softnode.net IMAP4rev1 Mercury/32 v4.72 server ready.<cr><lf>
17:45:46.750: >> cp01 CAPABILITY<cr><lf>
17:45:46.750: << * CAPABILITY IMAP4rev1 AUTH=PLAIN X-MERCURY-1<cr><lf>
17:45:46.750: << cp01 OK CAPABILITY complete.<cr><lf>
17:45:46.796: >> a001 LOGIN "richard" "xxxxxxx"<cr><lf>
17:45:46.796: << a001 OK LOGIN completed.<cr><lf>
17:45:46.859: >> lmb LIST "" "*"<cr><lf>
17:45:46.859: << * LIST (\NoInferiors) "/" INBOX<cr><lf>
17:45:46.875: << * LIST (\NoInferiors) "/" Personal<cr><lf>
17:45:46.875: << * LIST (\NoInferiors) "/" Work<cr><lf>
17:45:46.875: << lmb OK LIST completed.<cr><lf>
17:45:46.906: >> lsb LSUB "" "*"<cr><lf>
17:45:46.921: << * LSUB (\NoInferiors) "/" INBOX<cr><lf>
17:45:46.921: << lsb OK LSUB completed.<cr><lf>
17:45:46.968: >> I LOGOUT<cr><lf>
17:45:46.968: << * BYE IMAP4rev1 server terminating connection.<cr><lf>
17:45:46.968: << I OK LOGOUT completed.<cr><lf>
17:45:46.984: --- Connection closed normally at Mon Aug 17 17:45:46 2009. ---
17:45:46.984:
 

&lt;p&gt;Hi Deagol, &lt;/p&gt; &lt;p&gt;[quote user=&quot;Deagol&quot;]&lt;/p&gt; &lt;p&gt;we need some more information in order to&amp;nbsp;be able to determine the problem (php.ini/roundcube config files, mercury.ini). &lt;/p&gt; &lt;p mce_keep=&quot;true&quot;&gt;&amp;nbsp;[/quote]&lt;/p&gt; &lt;p mce_keep=&quot;true&quot;&gt;Here is my Roundcube&amp;nbsp; main.inc.php file. I&#039;ll could post other config files as well if that would help. I think my Mercury installation is ok as when using Pegasus to connect to it, folders are visible. Also, looking at the IMAP session log when Roundcube connects to Mercury, although I don&#039;t understand the IMAP protocol, it does look as though Mercury is sending Roundcube a list of folders. I&#039;ve pasted such an IMAP session below the php file. Also, the various folders are visible in the in the Roundcube/Personal Settings/Folders, so somehow Roundcube has learnt of their existance. However if I try and check the&amp;nbsp; Roundcube/Personal Settings/Folders/subscribed checkbox I get an &#039;Unknown Server Error!&#039; message, which also occurs if I try and create a new folder. In the &#039;message view&#039; of RC, folders are not visible at all.&lt;/p&gt; &lt;p mce_keep=&quot;true&quot;&gt;Thanks for your help,&lt;/p&gt; &lt;p mce_keep=&quot;true&quot;&gt;Richard &lt;/p&gt; &lt;hr&gt; Roundcube&amp;nbsp; main.inc.php &lt;hr&gt; &lt;p mce_keep=&quot;true&quot;&gt;&amp;lt;?php /* &lt;/p&gt; &amp;nbsp;+-----------------------------------------------------------------------+ &amp;nbsp;| Main configuration file&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;| This file is part of the RoundCube Webmail client&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;| Copyright (C) 2005-2009, RoundCube Dev. - Switzerland&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;| Licensed under the GNU GPL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;+-----------------------------------------------------------------------+ */ $rcmail_config = array(); // system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace $rcmail_config[&#039;debug_level&#039;] = 1; // log driver:&amp;nbsp; &#039;syslog&#039; or &#039;file&#039;. $rcmail_config[&#039;log_driver&#039;] = &#039;file&#039;; // Syslog ident string to use, if using the &#039;syslog&#039; log driver. $rcmail_config[&#039;syslog_id&#039;] = &#039;roundcube&#039;; // Syslog facility to use, if using the &#039;syslog&#039; log driver. // For possible values see installer or http://php.net/manual/en/function.openlog.php $rcmail_config[&#039;syslog_facility&#039;] = LOG_USER; // use this folder to store log files (must be writeable for apache user) // This is used by the &#039;file&#039; log driver. $rcmail_config[&#039;log_dir&#039;] = &#039;logs/&#039;; // use this folder to store temp files (must be writeable for apache user) $rcmail_config[&#039;temp_dir&#039;] = &#039;temp/&#039;; // enable caching of messages and mailbox data in the local database. // this is recommended if the IMAP server does not run on the same machine $rcmail_config[&#039;enable_caching&#039;] = TRUE; // lifetime of message cache // possible units: s, m, h, d, w $rcmail_config[&#039;message_cache_lifetime&#039;] = &#039;1m&#039;; // automatically create a new RoundCube user when log-in the first time. // a new user will be created once the IMAP login succeeds. // set to false if only registered users can use this service $rcmail_config[&#039;auto_create_user&#039;] = TRUE; // the mail host chosen to perform the log-in // leave blank to show a textbox at login, give a list of hosts // to display a pulldown menu or set one host as string. // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// $rcmail_config[&#039;default_host&#039;] = &#039;10.2.1.100&#039;; // TCP port used for IMAP connections $rcmail_config[&#039;default_port&#039;] = 143; // IMAP auth type. Can be &quot;auth&quot; (CRAM-MD5), &quot;plain&quot; (PLAIN) or &quot;check&quot; to auto detect. // Optional, defaults to &quot;check&quot; $rcmail_config[&#039;imap_auth_type&#039;] = &#039;&#039;; // If you know your imap&#039;s root directory and its folder delimiter, // you can specify them here. Otherwise they will be determined automatically. $rcmail_config[&#039;imap_root&#039;] = null; $rcmail_config[&#039;imap_delimiter&#039;] = null; // Automatically add this domain to user names for login // Only for IMAP servers that require full e-mail addresses for login // Specify an array with &#039;host&#039; =&amp;gt; &#039;domain&#039; values to support multiple hosts $rcmail_config[&#039;username_domain&#039;] = &#039;&#039;; // This domain will be used to form e-mail addresses of new users // Specify an array with &#039;host&#039; =&amp;gt; &#039;domain&#039; values to support multiple hosts $rcmail_config[&#039;mail_domain&#039;] = &#039;softnode.net&#039;; // Path to a virtuser table file to resolve user names and e-mail addresses $rcmail_config[&#039;virtuser_file&#039;] = &#039;&#039;; // Query to resolve user names and e-mail addresses from the database // %u will be replaced with the current username for login. // The query should select the user&#039;s e-mail address as first col $rcmail_config[&#039;virtuser_query&#039;] = &#039;&#039;; // use this host for sending mails. // to use SSL connection, set ssl://smtp.host.com // if left blank, the PHP mail() function is used $rcmail_config[&#039;smtp_server&#039;] = &#039;&#039;; // SMTP port (default is 25; 465 for SSL) $rcmail_config[&#039;smtp_port&#039;] = 25; // SMTP username (if required) if you use %u as the username RoundCube // will use the current username for login $rcmail_config[&#039;smtp_user&#039;] = &#039;&#039;; // SMTP password (if required) if you use %p as the password RoundCube // will use the current user&#039;s password for login $rcmail_config[&#039;smtp_pass&#039;] = &#039;&#039;; // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use // best server supported one) $rcmail_config[&#039;smtp_auth_type&#039;] = &#039;&#039;; // SMTP HELO host // Hostname to give to the remote server for SMTP &#039;HELO&#039; or &#039;EHLO&#039; messages // Leave this blank and you will get the server variable &#039;server_name&#039; or // localhost if that isn&#039;t defined. $rcmail_config[&#039;smtp_helo_host&#039;] = &#039;roundcube&#039;; // Log sent messages $rcmail_config[&#039;smtp_log&#039;] = false; // How many seconds must pass between emails sent by a user $rcmail_config[&#039;sendmail_delay&#039;] = 0; // These cols are shown in the message list. Available cols are: // subject, from, to, cc, replyto, date, size, flag, attachment $rcmail_config[&#039;list_cols&#039;] = array(&#039;subject&#039;, &#039;from&#039;, &#039;date&#039;, &#039;size&#039;, &#039;flag&#039;, &#039;attachment&#039;); // Includes should be interpreted as PHP files $rcmail_config[&#039;skin_include_php&#039;] = FALSE; // Session lifetime in minutes // must be greater than &#039;keep_alive&#039;/60 $rcmail_config[&#039;session_lifetime&#039;] = 10; // check client IP in session athorization $rcmail_config[&#039;ip_check&#039;] = false; // Use an additional frequently changing cookie to athenticate user sessions. // There have been problems reported with this feature. $rcmail_config[&#039;double_auth&#039;] = false; // this key is used to encrypt the users imap password which is stored // in the session record (and the client cookie if remember password is enabled). // please provide a string of exactly 24 chars. $rcmail_config[&#039;des_key&#039;] = &#039;kOfahEGx3Nu*aL5T2F40%lXp&#039;; // the default locale setting (leave empty for auto-detection) // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR $rcmail_config[&#039;language&#039;] = null; // use this format for short date display $rcmail_config[&#039;date_short&#039;] = &#039;D H:i&#039;; // use this format for detailed date/time formatting $rcmail_config[&#039;date_long&#039;] = &#039;d.m.Y H:i&#039;; // use this format for today&#039;s date display $rcmail_config[&#039;date_today&#039;] = &#039;H:i&#039;; // add this user-agent to message headers when sending $rcmail_config[&#039;useragent&#039;] = &#039;RoundCube Webmail/0.2.2&#039;; // use this name to compose page titles $rcmail_config[&#039;product_name&#039;] = &#039;My Webmail&#039;; // store draft message is this mailbox // leave blank if draft messages should not be stored $rcmail_config[&#039;drafts_mbox&#039;] = &#039;Drafts&#039;; // store spam messages in this mailbox $rcmail_config[&#039;junk_mbox&#039;] = &#039;Junk&#039;; // store sent message is this mailbox // leave blank if sent messages should not be stored $rcmail_config[&#039;sent_mbox&#039;] = &#039;Sent&#039;; // move messages to this folder when deleting them // leave blank if they should be deleted directly $rcmail_config[&#039;trash_mbox&#039;] = &#039;Trash&#039;; // display these folders separately in the mailbox list. // these folders will also be displayed with localized names $rcmail_config[&#039;default_imap_folders&#039;] = array(&#039;INBOX&#039;, &#039;Drafts&#039;, &#039;Sent&#039;, &#039;Junk&#039;, &#039;Trash&#039;); // automatically create the above listed default folders on login $rcmail_config[&#039;create_default_folders&#039;] = TRUE; // protect the default folders from renames, deletes, and subscription changes $rcmail_config[&#039;protect_default_folders&#039;] = TRUE; // if in your system 0 quota means no limit set this option to TRUE $rcmail_config[&#039;quota_zero_as_unlimited&#039;] = FALSE; // Behavior if a received message requests a message delivery notification (read receipt) // 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask) $rcmail_config[&#039;mdn_requests&#039;] = 0; // Use this charset as fallback for message decoding $rcmail_config[&#039;default_charset&#039;] = &#039;ISO-8859-1&#039;; // Make use of the built-in spell checker. It is based on GoogieSpell. // Since Google only accepts connections over https your PHP installatation // requires to be compiled with Open SSL support $rcmail_config[&#039;enable_spellcheck&#039;] = TRUE; // Set the spell checking engine. &#039;googie&#039; is the default. &#039;pspell&#039; is also available, // but requires the Pspell extensions. When using Nox Spell Server, also set &#039;googie&#039; here. $rcmail_config[&#039;spellcheck_engine&#039;] = &#039;googie&#039;; // For a locally installed Nox Spell Server, please specify the URI to call it. // Get Nox Spell Server from http://orangoo.com/labs/?page_id=72 // Leave empty to use the Google spell checking service, what means // that the message content will be sent to Google in order to check spelling $rcmail_config[&#039;spellcheck_uri&#039;] = &#039;&#039;; // These languages can be selected for spell checking. // Configure as a PHP style hash array: array(&#039;en&#039;=&amp;gt;&#039;English&#039;, &#039;de&#039;=&amp;gt;&#039;Deutsch&#039;); // Leave empty for default set of Google spell check languages, should be defined // when using local Pspell extension $rcmail_config[&#039;spellcheck_languages&#039;] = NULL; // path to a text file which will be added to each sent message // paths are relative to the RoundCube root folder $rcmail_config[&#039;generic_message_footer&#039;] = &#039;&#039;; // add a received header to outgoing mails containing the creators IP and hostname $rcmail_config[&#039;http_received_header&#039;] = false; // this string is used as a delimiter for message headers when sending // leave empty for auto-detection $rcmail_config[&#039;mail_header_delimiter&#039;] = NULL; // session domain: .example.org $rcmail_config[&#039;session_domain&#039;] = &#039;&#039;; // This indicates which type of address book to use. Possible choises: // &#039;sql&#039; (default) and &#039;ldap&#039;. // If set to &#039;ldap&#039; then it will look at using the first writable LDAP // address book as the primary address book and it will not display the // SQL address book in the &#039;Address Book&#039; view. $rcmail_config[&#039;address_book_type&#039;] = &#039;sql&#039;; // In order to enable public ldap search, configure an array like the Verisign // example further below. if you would like to test, simply uncomment the example. $rcmail_config[&#039;ldap_public&#039;] = array(); // // If you are going to use LDAP for individual address books, you will need to // set &#039;user_specific&#039; to true and use the variables to generate the appropriate DNs to access it. // // The recommended directory structure for LDAP is to store all the address book entries // under the users main entry, e.g.: // //&amp;nbsp; o=root //&amp;nbsp;&amp;nbsp; ou=people //&amp;nbsp;&amp;nbsp;&amp;nbsp; uid=user@domain //&amp;nbsp; mail=contact@contactdomain // // So the base_dn would be uid=%fu,ou=people,o=root // The bind_dn would be the same as based_dn or some super user login. /* &amp;nbsp;* example config for Verisign directory &amp;nbsp;* $rcmail_config[&#039;ldap_public&#039;][&#039;Verisign&#039;] = array( &amp;nbsp; &#039;name&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#039;Verisign.com&#039;, &amp;nbsp; &#039;hosts&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; array(&#039;directory.verisign.com&#039;), &amp;nbsp; &#039;port&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; 389, &amp;nbsp; &#039;use_tls&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; false, &amp;nbsp; &#039;user_specific&#039; =&amp;gt; false,&amp;nbsp;&amp;nbsp; // If true the base_dn, bind_dn and bind_pass default to the user&#039;s IMAP login. &amp;nbsp; // %fu - The full username provided, assumes the username is an email &amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; address, uses the username_domain value if not an email address. &amp;nbsp; // %u&amp;nbsp; - The username prior to the &#039;@&#039;. &amp;nbsp; // %d&amp;nbsp; - The domain name after the &#039;@&#039;. &amp;nbsp; &#039;base_dn&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#039;&#039;, &amp;nbsp; &#039;bind_dn&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#039;&#039;, &amp;nbsp; &#039;bind_pass&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#039;&#039;, &amp;nbsp; &#039;writable&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; false,&amp;nbsp;&amp;nbsp; // Indicates if we can write to the LDAP directory or not. &amp;nbsp; // If writable is true then these fields need to be populated: &amp;nbsp; // LDAP_Object_Classes, required_fields, LDAP_rdn &amp;nbsp; &#039;LDAP_Object_Classes&#039; =&amp;gt; array(&quot;top&quot;, &quot;inetOrgPerson&quot;), // To create a new contact these are the object classes to specify (or any other classes you wish to use). &amp;nbsp; &#039;required_fields&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; array(&quot;cn&quot;, &quot;sn&quot;, &quot;mail&quot;),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // The required fields needed to build a new contact as required by the object classes (can include additional fields not required by the object classes). &amp;nbsp; &#039;LDAP_rdn&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#039;mail&#039;, // The RDN field that is used for new entries, this field needs to be one of the search_fields, the base of base_dn is appended to the RDN to insert into the LDAP directory. &amp;nbsp; &#039;ldap_version&#039;&amp;nbsp; =&amp;gt; 3,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // using LDAPv3 &amp;nbsp; &#039;search_fields&#039; =&amp;gt; array(&#039;mail&#039;, &#039;cn&#039;),&amp;nbsp; // fields to search in &amp;nbsp; &#039;name_field&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#039;cn&#039;,&amp;nbsp;&amp;nbsp;&amp;nbsp; // this field represents the contact&#039;s name &amp;nbsp; &#039;email_field&#039;&amp;nbsp;&amp;nbsp; =&amp;gt; &#039;mail&#039;,&amp;nbsp; // this field represents the contact&#039;s e-mail &amp;nbsp; &#039;surname_field&#039; =&amp;gt; &#039;sn&#039;,&amp;nbsp;&amp;nbsp;&amp;nbsp; // this field represents the contact&#039;s last name &amp;nbsp; &#039;firstname_field&#039; =&amp;gt; &#039;gn&#039;,&amp;nbsp; // this field represents the contact&#039;s first name &amp;nbsp; &#039;sort&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#039;cn&#039;,&amp;nbsp;&amp;nbsp;&amp;nbsp; // The field to sort the listing by. &amp;nbsp; &#039;scope&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#039;sub&#039;,&amp;nbsp;&amp;nbsp; // search mode: sub|base|list &amp;nbsp; &#039;filter&#039;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#039;&#039;,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // used for basic listing (if not empty) and will be &amp;amp;&#039;d with search queries. example: status=act &amp;nbsp; &#039;fuzzy_search&#039;&amp;nbsp; =&amp;gt; true);&amp;nbsp;&amp;nbsp; // server allows wildcard search */ // An ordered array of the ids of the addressbooks that should be searched // when populating address autocomplete fields server-side. ex: array(&#039;sql&#039;,&#039;Verisign&#039;); $rcmail_config[&#039;autocomplete_addressbooks&#039;] = array(&#039;sql&#039;); // don&#039;t allow these settings to be overriden by the user $rcmail_config[&#039;dont_override&#039;] = array(); // Set identities access level: // 0 - many identities with possibility to edit all params // 1 - many identities with possibility to edit all params but not email address // 2 - one identity with possibility to edit all params // 3 - one identity with possibility to edit all params but not email address $rcmail_config[&#039;identities_level&#039;] = 0; // try to load host-specific configuration // see http://trac.roundcube.net/wiki/Howto_Config for more details $rcmail_config[&#039;include_host_config&#039;] = false; // don&#039;t let users set pagesize to more than this value if set $rcmail_config[&#039;max_pagesize&#039;] = 200; // mime magic database $rcmail_config[&#039;mime_magic&#039;] = &#039;/usr/share/misc/magic&#039;; // default sort col $rcmail_config[&#039;message_sort_col&#039;] = &#039;date&#039;; // default sort order $rcmail_config[&#039;message_sort_order&#039;] = &#039;DESC&#039;; // THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA. // ONLY ENABLE IT IF YOU&#039;RE REALLY SURE WHAT YOU&#039;RE DOING! $rcmail_config[&#039;enable_installer&#039;] = true; // Log successful logins $rcmail_config[&#039;log_logins&#039;] = false; /** &amp;nbsp;* &#039;Delete always&#039; &amp;nbsp;* This setting reflects if mail should be always marked as deleted, &amp;nbsp;* even if moving to &quot;Trash&quot; fails. This is necessary in some setups &amp;nbsp;* because a) people may not have a Trash folder or b) they are over &amp;nbsp;* quota (and Trash is included in the quota). &amp;nbsp;* &amp;nbsp;* This is a failover setting for iil_C_Move when a message is moved &amp;nbsp;* to the Trash. &amp;nbsp;*/ $rcmail_config[&#039;delete_always&#039;] = false; // Minimal value of user&#039;s &#039;keep_alive&#039; setting (in seconds) // Must be less than &#039;session_lifetime&#039; $rcmail_config[&#039;min_keep_alive&#039;] = 60; /***** these settings can be overwritten by user&#039;s preferences *****/ // skin name: folder from skins/ $rcmail_config[&#039;skin&#039;] = &#039;default&#039;; // show up to X items in list view $rcmail_config[&#039;pagesize&#039;] = 40; // use this timezone to display date/time $rcmail_config[&#039;timezone&#039;] = &#039;auto&#039;; // is daylight saving On? $rcmail_config[&#039;dst_active&#039;] = (bool)date(&#039;I&#039;); // prefer displaying HTML messages $rcmail_config[&#039;prefer_html&#039;] = TRUE; // display remote inline images // 0 - Never, always ask // 1 - Ask if sender is not in address book // 2 - Always show inline images $rcmail_config[&#039;show_images&#039;] = 0; // compose html formatted messages by default $rcmail_config[&#039;htmleditor&#039;] = FALSE; // show pretty dates as standard $rcmail_config[&#039;prettydate&#039;] = TRUE; // save compose message every 300 seconds (5min) $rcmail_config[&#039;draft_autosave&#039;] = 300; // default setting if preview pane is enabled $rcmail_config[&#039;preview_pane&#039;] = FALSE; // focus new window if new message arrives $rcmail_config[&#039;focus_on_new_message&#039;] = true; // Clear Trash on logout $rcmail_config[&#039;logout_purge&#039;] = FALSE; // Compact INBOX on logout $rcmail_config[&#039;logout_expunge&#039;] = FALSE; // Display attached images below the message body $rcmail_config[&#039;inline_images&#039;] = TRUE; // Encoding of long/non-ascii attachment names: // 0 - Full RFC 2231 compatible // 1 - RFC 2047 for &#039;name&#039; and RFC 2231 for &#039;filename&#039; parameter (Thunderbird&#039;s default) // 2 - Full 2047 compatible $rcmail_config[&#039;mime_param_folding&#039;] = 0; // Set TRUE if deleted messages should not be displayed // This will make the application run slower $rcmail_config[&#039;skip_deleted&#039;] = FALSE; // Set true to Mark deleted messages as read as well as deleted // False means that a message&#039;s read status is not affected by marking it as deleted $rcmail_config[&#039;read_when_deleted&#039;] = TRUE; // When a Trash folder is not present and a message is deleted, flag // the message for deletion rather than deleting it immediately.&amp;nbsp; Setting this to // false causes deleted messages to be permanantly removed if there is no Trash folder $rcmail_config[&#039;flag_for_deletion&#039;] = FALSE; // Default interval for keep-alive/check-recent requests (in seconds) // Must be greater than or equal to &#039;min_keep_alive&#039; and less than &#039;session_lifetime&#039; $rcmail_config[&#039;keep_alive&#039;] = 60; // If true all folders will be checked for recent messages $rcmail_config[&#039;check_all_folders&#039;] = FALSE; // end of config file ?&amp;gt; &lt;p mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;hr&gt; IMAP session where I can see Mercury telling Roundcube of my folders called Personal &amp;amp; Work: &lt;p&gt;&lt;/p&gt;&lt;hr&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;17:45:46.703: Connection from 10.1.100.7, Mon Aug 17 17:45:46 2009&amp;lt;lf&amp;gt; 17:45:46.703: &amp;lt;&amp;lt; * OK softnode.net IMAP4rev1 Mercury/32 v4.72 server ready.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.750: &amp;gt;&amp;gt; cp01 CAPABILITY&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.750: &amp;lt;&amp;lt; * CAPABILITY IMAP4rev1 AUTH=PLAIN X-MERCURY-1&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.750: &amp;lt;&amp;lt; cp01 OK CAPABILITY complete.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.796: &amp;gt;&amp;gt; a001 LOGIN &quot;richard&quot; &quot;xxxxxxx&quot;&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.796: &amp;lt;&amp;lt; a001 OK LOGIN completed.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.859: &amp;gt;&amp;gt; lmb LIST &quot;&quot; &quot;*&quot;&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.859: &amp;lt;&amp;lt; * LIST (\NoInferiors) &quot;/&quot; INBOX&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.875: &amp;lt;&amp;lt; * LIST (\NoInferiors) &quot;/&quot; Personal&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.875: &amp;lt;&amp;lt; * LIST (\NoInferiors) &quot;/&quot; Work&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.875: &amp;lt;&amp;lt; lmb OK LIST completed.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.906: &amp;gt;&amp;gt; lsb LSUB &quot;&quot; &quot;*&quot;&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.921: &amp;lt;&amp;lt; * LSUB (\NoInferiors) &quot;/&quot; INBOX&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.921: &amp;lt;&amp;lt; lsb OK LSUB completed.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.968: &amp;gt;&amp;gt; I LOGOUT&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.968: &amp;lt;&amp;lt; * BYE IMAP4rev1 server terminating connection.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.968: &amp;lt;&amp;lt; I OK LOGOUT completed.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 17:45:46.984: --- Connection closed normally at Mon Aug 17 17:45:46 2009. --- 17:45:46.984: &amp;nbsp;&lt;/p&gt;

At first glance it looks like the IMAP connection is ok, maybe we should focus on the Roundcube config.

I noticed a few things:

1) Temp and log directories

$rcmail_config['log_dir'] = 'logs/';

$rcmail_config['temp_dir'] = 'temp/';

 Does this work in your setting? Did you create these directories specifically and did you assign the correct NTSF permissions (i.e. modify) to the IUSER_<computername> user and IIS_WPG group? I used a complete path to directories out of the roundcube root (redirected to C:/RC/Logs/ and C:/RC/Temp/) to get this working

 

2) session_domain

$rcmail_config['session_domain'] = '';

 This setting ensures that cookies are set in that domain as opposed to the FQDN of the web server itself. See point 3 also

$rcmail_config['session_domain'] = '.softnode.net';   Notice the dot '.' before the name 'softnode.net'

 

3) 3rd party cookies in Internet Explorer

There is an issue with Internet Explorer and 3rd party cookies in combination with Roundcube, IE does not accept these cookies by default. This means that when you connect to the Roundcube environment using another name/ip # in your browser than the name defined in the session_domain variable (point 2) you could be in trouble. This would usually show up in IE throwing an error about your machine not accepting cookies at all. but I've also seen the problems you described. Solution would be to set the session_domain variable and use your browser to connect to "<roundcubeserver>.softnode.net"

 

Anyway, some suggestions for improvement, or at least for testing. Let me know if it works for you

&lt;P&gt;At first glance it looks like the IMAP connection is ok, maybe we should focus on the Roundcube config.&lt;/P&gt; &lt;P&gt;I noticed a few things:&lt;/P&gt; &lt;P&gt;1) Temp and log directories&lt;/P&gt; &lt;P&gt;$rcmail_config[&#039;log_dir&#039;] = &#039;logs/&#039;;&lt;/P&gt; &lt;P&gt;$rcmail_config[&#039;temp_dir&#039;] = &#039;temp/&#039;;&lt;/P&gt; &lt;P&gt;&amp;nbsp;Does this work in your setting? Did you create these directories specifically and did you assign the correct NTSF permissions (i.e. modify)&amp;nbsp;to the IUSER_&amp;lt;computername&amp;gt; user and IIS_WPG group? I used a complete path to directories out of the roundcube root (redirected to C:/RC/Logs/ and C:/RC/Temp/) to get this working &lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;2) session_domain&lt;/P&gt; &lt;P&gt;$rcmail_config[&#039;session_domain&#039;] = &#039;&#039;;&lt;/P&gt; &lt;P&gt;&amp;nbsp;This setting ensures that cookies are set in that domain as opposed to the FQDN of the web server itself. See point 3 also&lt;/P&gt; &lt;P&gt;$rcmail_config[&#039;session_domain&#039;] = &#039;.softnode.net&#039;;&amp;nbsp;&amp;nbsp; Notice the dot &#039;.&#039; before the name&amp;nbsp;&#039;softnode.net&#039; &lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;3) 3rd party cookies in Internet Explorer&lt;/P&gt; &lt;P&gt;There is an issue with Internet Explorer and 3rd party cookies in combination with Roundcube, IE does not accept these cookies by default. This means that when you connect to the Roundcube environment using another name/ip # in your browser than the name&amp;nbsp;defined in the session_domain variable (point 2) you could be in trouble. This would usually show up in IE throwing an error about your machine not accepting cookies at all. but I&#039;ve also seen the problems you described. Solution would be to set the session_domain variable and use&amp;nbsp;your&amp;nbsp;browser to&amp;nbsp;connect to &quot;&amp;lt;roundcubeserver&amp;gt;.softnode.net&quot;&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;Anyway, some suggestions for improvement, or at least&amp;nbsp;for testing. Let me know if it works for you&lt;/P&gt;

Thanks for your help Deagol.

[quote user="Deagol"]

1) Temp and log directories

$rcmail_config['log_dir'] = 'logs/';

$rcmail_config['temp_dir'] = 'temp/';

 Does this work in your setting? Did you create these directories specifically and did you assign the correct NTSF permissions (i.e. modify) to the IUSER_<computername> user and IIS_WPG group? I used a complete path to directories out of the roundcube root (redirected to C:/RC/Logs/ and C:/RC/Temp/) to get this working

 [/quote]

This gave an immediate improvement. The Draft, Sent, Junk & Trash folders suddenly appeared, though still no sign of my user created folders.

[quote user="Deagol"]

2) session_domain

$rcmail_config['session_domain'] = '';

 This setting ensures that cookies are set in that domain as opposed to the FQDN of the web server itself. See point 3 also

$rcmail_config['session_domain'] = '.softnode.net';   Notice the dot '.' before the name 'softnode.net'

 [/quote]

 This ammendment stopped it from working altogether! For testing, I'm accessing the web server over a private network, like this:

http://10.1.100.7/mail

but I'll return to (2) when I make it publically visible and users access it over the Internet.

[quote user="Deagol"] 

3) 3rd party cookies in Internet Explorer

There is an issue with Internet Explorer and 3rd party cookies in combination with Roundcube, IE does not accept these cookies by default. This means that when you connect to the Roundcube environment using another name/ip # in your browser than the name defined in the session_domain variable (point 2) you could be in trouble. This would usually show up in IE throwing an error about your machine not accepting cookies at all. but I've also seen the problems you described. Solution would be to set the session_domain variable and use your browser to connect to "<roundcubeserver>.softnode.net"

 [/quote]

I'm testing with Firefox, which is set to accept cookies from site 10.1.100.7. Not sure if that covers the issue you are alerting me to.

I thought I'd try the same configuration installed on a Win 2003 IIS 6 server. There were several points where I had to change the php code to make Roundcube work on IIS 5. Any reference to  action="./" had to be replaced with action=",/index.php". Maybe there is another alteration needed for IIS 5 that I'm unaware of.

Any other suggestions to track down what's at fault would be gratefully received.

 

Regards,

Richard

&lt;p&gt;Thanks for your help Deagol. &lt;/p&gt;&lt;p&gt;[quote user=&quot;Deagol&quot;]&lt;/p&gt;&lt;p&gt;1) Temp and log directories&lt;/p&gt; &lt;p&gt;$rcmail_config[&#039;log_dir&#039;] = &#039;logs/&#039;;&lt;/p&gt; &lt;p&gt;$rcmail_config[&#039;temp_dir&#039;] = &#039;temp/&#039;;&lt;/p&gt; &lt;p&gt;&amp;nbsp;Does this work in your setting? Did you create these directories specifically and did you assign the correct NTSF permissions (i.e. modify)&amp;nbsp;to the IUSER_&amp;lt;computername&amp;gt; user and IIS_WPG group? I used a complete path to directories out of the roundcube root (redirected to C:/RC/Logs/ and C:/RC/Temp/) to get this working &lt;/p&gt; &lt;p mce_keep=&quot;true&quot;&gt;&amp;nbsp;[/quote]&lt;/p&gt;&lt;p mce_keep=&quot;true&quot;&gt;This gave an immediate improvement. The Draft, Sent, Junk &amp;amp; Trash folders suddenly appeared, though still no sign of my user created folders. &lt;/p&gt; &lt;p&gt;[quote user=&quot;Deagol&quot;] &lt;/p&gt;&lt;p&gt;2) session_domain&lt;/p&gt; &lt;p&gt;$rcmail_config[&#039;session_domain&#039;] = &#039;&#039;;&lt;/p&gt; &lt;p&gt;&amp;nbsp;This setting ensures that cookies are set in that domain as opposed to the FQDN of the web server itself. See point 3 also&lt;/p&gt; &lt;p&gt;$rcmail_config[&#039;session_domain&#039;] = &#039;.softnode.net&#039;;&amp;nbsp;&amp;nbsp; Notice the dot &#039;.&#039; before the name&amp;nbsp;&#039;softnode.net&#039; &lt;/p&gt; &lt;p mce_keep=&quot;true&quot;&gt;&amp;nbsp;[/quote]&lt;/p&gt;&lt;p mce_keep=&quot;true&quot;&gt;&amp;nbsp;This ammendment stopped it from working altogether! For testing, I&#039;m accessing the web server over a private network, like this:&lt;/p&gt;&lt;p mce_keep=&quot;true&quot;&gt;http://10.1.100.7/mail&lt;/p&gt;&lt;p mce_keep=&quot;true&quot;&gt;but I&#039;ll return to (2) when I make it publically visible and users access it over the Internet.&lt;/p&gt;&lt;p mce_keep=&quot;true&quot;&gt;[quote user=&quot;Deagol&quot;]&amp;nbsp; &lt;/p&gt; &lt;p&gt;3) 3rd party cookies in Internet Explorer&lt;/p&gt; &lt;p&gt;There is an issue with Internet Explorer and 3rd party cookies in combination with Roundcube, IE does not accept these cookies by default. This means that when you connect to the Roundcube environment using another name/ip # in your browser than the name&amp;nbsp;defined in the session_domain variable (point 2) you could be in trouble. This would usually show up in IE throwing an error about your machine not accepting cookies at all. but I&#039;ve also seen the problems you described. Solution would be to set the session_domain variable and use&amp;nbsp;your&amp;nbsp;browser to&amp;nbsp;connect to &quot;&amp;lt;roundcubeserver&amp;gt;.softnode.net&quot;&lt;/p&gt; &lt;p mce_keep=&quot;true&quot;&gt;&amp;nbsp;[/quote]&lt;/p&gt;&lt;p&gt;I&#039;m testing with Firefox, which is set to accept cookies from site 10.1.100.7. Not sure if that covers the issue you are alerting me to.&lt;/p&gt;&lt;p&gt;I thought I&#039;d try the same configuration installed on a Win 2003 IIS 6 server. There were several points where I had to change the php code to make Roundcube work on IIS 5. Any reference to&amp;nbsp; action=&quot;./&quot; had to be replaced with action=&quot;,/index.php&quot;. Maybe there is another alteration needed for IIS 5 that I&#039;m unaware of. &lt;/p&gt;&lt;p&gt;Any other suggestions to track down what&#039;s at fault would be gratefully received.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Richard &lt;/p&gt;

This has probably become an off-topic issue, since Mercury does not seem to be the problem here. I'll take my chances though, until someone objects..   ;-)

Glad to see you saw some folders appear. Did you subscribe to the folders you created? If not, they won't show up in your list! You can subscribe to the folders by selecting them in your personal settings.

The other thing is a name resolving issue. For testing purposes you could temporarily add the server to your hosts file with the internal ip number.

 

Good luck!

D.

&lt;P&gt;This has probably become an off-topic issue, since Mercury does not seem to be the problem here. I&#039;ll take my chances though, until someone objects..&amp;nbsp;&amp;nbsp; ;-)&lt;/P&gt; &lt;P&gt;Glad to see you saw some folders appear. Did you subscribe to the folders you created? If not, they won&#039;t show up in your list! You can subscribe to the folders by selecting them in your personal settings. &lt;/P&gt; &lt;P&gt;The other thing is a name resolving issue. For testing purposes you could temporarily add the server to your hosts file with the internal ip number. &lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;Good luck!&lt;/P&gt; &lt;P&gt;D.&lt;/P&gt;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft