Advertisement
SipriusPT

Defaults.inc.php_imap_smtp

Nov 23rd, 2016
870
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.29 KB | None | 0 0
  1. // ----------------------------------
  2. // IMAP
  3. // ----------------------------------
  4.  
  5. // The mail host chosen to perform the log-in.
  6. // Leave blank to show a textbox at login, give a list of hosts
  7. // to display a pulldown menu or set one host as string.
  8. // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
  9. // Supported replacement variables:
  10. // %n - hostname ($_SERVER['SERVER_NAME'])
  11. // %t - hostname without the first part
  12. // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
  13. // %s - domain name after the '@' from e-mail address provided at login screen
  14. // For example %n = mail.domain.tld, %t = domain.tld
  15. // WARNING: After hostname change update of mail_host column in users table is
  16. // required to match old user data records with the new host.
  17. $config['default_host'] = 'localhost';
  18.  
  19. // TCP port used for IMAP connections
  20. $config['default_port'] = 587;
  21.  
  22. // IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or null to use
  23. // best server supported one)
  24. $config['imap_auth_type'] = 'CRAM-MD5';
  25.  
  26. // IMAP socket context options
  27. // See http://php.net/manual/en/context.ssl.php
  28. // The example below enables server certificate validation
  29. //$config['imap_conn_options'] = array(
  30. // 'ssl' => array(
  31. // 'verify_peer' => true,
  32. // 'verify_depth' => 3,
  33. // 'cafile' => '/etc/openssl/certs/ca.crt',
  34. // ),
  35. // );
  36. $config['imap_conn_options'] = null;
  37.  
  38. // IMAP connection timeout, in seconds. Default: 0 (use default_socket_timeout)
  39. $config['imap_timeout'] = 0;
  40.  
  41. // Optional IMAP authentication identifier to be used as authorization proxy
  42. $config['imap_auth_cid'] = null;
  43.  
  44. // Optional IMAP authentication password to be used for imap_auth_cid
  45. $config['imap_auth_pw'] = null;
  46.  
  47. // If you know your imap's folder delimiter, you can specify it here.
  48. // Otherwise it will be determined automatically
  49. $config['imap_delimiter'] = null;
  50.  
  51. // If you know your imap's folder vendor, you can specify it here.
  52. // Otherwise it will be determined automatically. Use lower-case
  53. // identifiers, e.g. 'dovecot', 'cyrus', 'gmail', 'hmail', 'uw-imap'.
  54. $config['imap_vendor'] = null;
  55.  
  56. // If IMAP server doesn't support NAMESPACE extension, but you're
  57. // using shared folders or personal root folder is non-empty, you'll need to
  58. // set these options. All can be strings or arrays of strings.
  59. // Folders need to be ended with directory separator, e.g. "INBOX."
  60. // (special directory "~" is an exception to this rule)
  61. // These can be used also to overwrite server's namespaces
  62. $config['imap_ns_personal'] = null;
  63. $config['imap_ns_other'] = null;
  64. $config['imap_ns_shared'] = null;
  65.  
  66. // By default IMAP capabilities are readed after connection to IMAP server
  67. // In some cases, e.g. when using IMAP proxy, there's a need to refresh the list
  68. // after login. Set to True if you've got this case.
  69. $config['imap_force_caps'] = false;
  70.  
  71. // By default list of subscribed folders is determined using LIST-EXTENDED
  72. // extension if available. Some servers (dovecot 1.x) returns wrong results
  73. // for shared namespaces in this case. http://trac.roundcube.net/ticket/1486225
  74. // Enable this option to force LSUB command usage instead.
  75. // Deprecated: Use imap_disabled_caps = array('LIST-EXTENDED')
  76. $config['imap_force_lsub'] = false;
  77.  
  78. // Some server configurations (e.g. Courier) doesn't list folders in all namespaces
  79. // Enable this option to force listing of folders in all namespaces
  80. $config['imap_force_ns'] = false;
  81.  
  82. // Some servers return hidden folders (name starting witha dot)
  83. // from user home directory. IMAP RFC does not forbid that.
  84. // Enable this option to hide them and disable possibility to create such.
  85. $config['imap_skip_hidden_folders'] = false;
  86.  
  87. // List of disabled imap extensions.
  88. // Use if your IMAP server has broken implementation of some feature
  89. // and you can't remove it from CAPABILITY string on server-side.
  90. // For example UW-IMAP server has broken ESEARCH.
  91. // Note: Because the list is cached, re-login is required after change.
  92. $config['imap_disabled_caps'] = array();
  93.  
  94. // Log IMAP session identifers after each IMAP login.
  95. // This is used to relate IMAP session with Roundcube user sessions
  96. $config['imap_log_session'] = false;
  97.  
  98. // Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'.
  99. $config['imap_cache'] = null;
  100.  
  101. // Enables messages cache. Only 'db' cache is supported.
  102. // This requires an IMAP server that supports QRESYNC and CONDSTORE
  103. // extensions (RFC7162). See synchronize() in program/lib/Roundcube/rcube_imap_cache.php
  104. // for further info, or if you experience syncing problems.
  105. $config['messages_cache'] = false;
  106.  
  107. // Lifetime of IMAP indexes cache. Possible units: s, m, h, d, w
  108. $config['imap_cache_ttl'] = '10d';
  109.  
  110. // Lifetime of messages cache. Possible units: s, m, h, d, w
  111. $config['messages_cache_ttl'] = '10d';
  112.  
  113. // Maximum cached message size in kilobytes.
  114. // Note: On MySQL this should be less than (max_allowed_packet - 30%)
  115. $config['messages_cache_threshold'] = 50;
  116.  
  117.  
  118. // ----------------------------------
  119. // SMTP
  120. // ----------------------------------
  121.  
  122. // SMTP server host (for sending mails).
  123. // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
  124. // If left blank, the PHP mail() function is used
  125. // Supported replacement variables:
  126. // %h - user's IMAP hostname
  127. // %n - hostname ($_SERVER['SERVER_NAME'])
  128. // %t - hostname without the first part
  129. // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
  130. // %z - IMAP domain (IMAP hostname without the first part)
  131. // For example %n = mail.domain.tld, %t = domain.tld
  132. $config['smtp_server'] = '%h';
  133.  
  134. // SMTP port (default is 25; use 587 for STARTTLS or 465 for the
  135. // deprecated SSL over SMTP (aka SMTPS))
  136. $config['smtp_port'] = 587;
  137.  
  138. // SMTP username (if required) if you use %u as the username Roundcube
  139. // will use the current username for login
  140. $config['smtp_user'] = '';
  141.  
  142. // SMTP password (if required) if you use %p as the password Roundcube
  143. // will use the current user's password for login
  144. $config['smtp_pass'] = '';
  145.  
  146. // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
  147. // best server supported one)
  148. $config['smtp_auth_type'] = 'CRAM-MD5';
  149.  
  150. // Optional SMTP authentication identifier to be used as authorization proxy
  151. $config['smtp_auth_cid'] = null;
  152.  
  153. // Optional SMTP authentication password to be used for smtp_auth_cid
  154. $config['smtp_auth_pw'] = null;
  155.  
  156. // SMTP HELO host
  157. // Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
  158. // Leave this blank and you will get the server variable 'server_name' or
  159. // localhost if that isn't defined.
  160. $config['smtp_helo_host'] = '';
  161.  
  162. // SMTP connection timeout, in seconds. Default: 0 (use default_socket_timeout)
  163. // Note: There's a known issue where using ssl connection with
  164. // timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511)
  165. $config['smtp_timeout'] = 0;
  166.  
  167. // SMTP socket context options
  168. // See http://php.net/manual/en/context.ssl.php
  169. // The example below enables server certificate validation, and
  170. // requires 'smtp_timeout' to be non zero.
  171. // $config['smtp_conn_options'] = array(
  172. // 'ssl' => array(
  173. // 'verify_peer' => true,
  174. // 'verify_depth' => 3,
  175. // 'cafile' => '/etc/openssl/certs/ca.crt',
  176. // ),
  177. // );
  178. $config['smtp_conn_options'] = null;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement