Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_roundcube_config.inc.j2 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?php
  2. /*
  3. +-----------------------------------------------------------------------+
  4. | Local configuration for the Roundcube Webmail installation. |
  5. | |
  6. | This is a sample configuration file only containing the minimum |
  7. | setup required for a functional installation. Copy more options |
  8. | from defaults.inc.php to this file to override the defaults. |
  9. | |
  10. | This file is part of the Roundcube Webmail client |
  11. | Copyright (C) 2005-2013, The Roundcube Dev Team |
  12. | |
  13. | Licensed under the GNU General Public License version 3 or |
  14. | any later version with exceptions for skins & plugins. |
  15. | See the README file for a full license statement. |
  16. +-----------------------------------------------------------------------+
  17. */
  18. $config = array();
  19. /* Do not set db_dsnw here, use dpkg-reconfigure roundcube-core to configure database ! */
  20. include_once("/etc/roundcube/debian-db-roundcube.php");
  21. // The mail host chosen to perform the log-in.
  22. // Leave blank to show a textbox at login, give a list of hosts
  23. // to display a pulldown menu or set one host as string.
  24. // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
  25. // Supported replacement variables:
  26. // %n - hostname ($_SERVER['SERVER_NAME'])
  27. // %t - hostname without the first part
  28. // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
  29. // %s - domain name after the '@' from e-mail address provided at login screen
  30. // For example %n = mail.domain.tld, %t = domain.tld
  31. $config['default_host'] = array("ssl://{{ webmail_domain }}:993");
  32. // SMTP server host (for sending mails).
  33. // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
  34. // If left blank, the PHP mail() function is used
  35. // Supported replacement variables:
  36. // %h - user's IMAP hostname
  37. // %n - hostname ($_SERVER['SERVER_NAME'])
  38. // %t - hostname without the first part
  39. // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
  40. // %z - IMAP domain (IMAP hostname without the first part)
  41. // For example %n = mail.domain.tld, %t = domain.tld
  42. $config['smtp_server'] = 'tls://{{ webmail_domain }}';
  43. // SMTP port (default is 25; use 587 for STARTTLS or 465 for the
  44. // deprecated SSL over SMTP (aka SMTPS))
  45. $config['smtp_port'] = 587;
  46. // SMTP username (if required) if you use %u as the username Roundcube
  47. // will use the current username for login
  48. $config['smtp_user'] = '%u';
  49. // SMTP password (if required) if you use %p as the password Roundcube
  50. // will use the current user's password for login
  51. $config['smtp_pass'] = '%p';
  52. // provide an URL where a user can get support for this Roundcube installation
  53. // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
  54. $config['support_url'] = 'https://www.{{ domain }}';
  55. // Name your service. This is displayed on the login screen and in the window title
  56. $config['product_name'] = 'Webmail {{ domain }}';
  57. // this key is used to encrypt the users imap password which is stored
  58. // in the session record (and the client cookie if remember password is enabled).
  59. // please provide a string of exactly 24 chars.
  60. // YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS
  61. $config['des_key'] = '{{ lookup('password', secret + '/' + 'roundcube_des_key length=24') }}';
  62. // List of active plugins (in plugins/ directory)
  63. // Debian: install roundcube-plugins first to have any
  64. $config['plugins'] = array(
  65. 'zipdownload',
  66. 'managesieve'
  67. );
  68. // skin name: folder from skins/
  69. $config['skin'] = 'larry';
  70. // Disable spellchecking
  71. // Debian: spellshecking needs additional packages to be installed, or calling external APIs
  72. // see defaults.inc.php for additional informations
  73. $config['enable_spellcheck'] = false;