253 lines
10 KiB
Plaintext
253 lines
10 KiB
Plaintext
// ----------------------------------
|
|
// SYSTEM
|
|
// ----------------------------------
|
|
|
|
// 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!
|
|
$config['enable_installer'] = false;
|
|
|
|
// don't allow these settings to be overriden by the user
|
|
$config['dont_override'] = array();
|
|
|
|
// define which settings should be listed under the 'advanced' block
|
|
// which is hidden by default
|
|
$config['advanced_prefs'] = array();
|
|
|
|
// provide an URL where a user can get support for this Roundcube installation
|
|
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
|
|
$config['support_url'] = '';
|
|
|
|
// replace Roundcube logo with this image
|
|
// specify an URL relative to the document root of this Roundcube installation
|
|
// an array can be used to specify different logos for specific template files, '*' for default logo
|
|
// for example array("*" => "/images/roundcube_logo.png", "messageprint" => "/images/roundcube_logo_print.png")
|
|
$config['skin_logo'] = null;
|
|
|
|
// 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
|
|
$config['auto_create_user'] = true;
|
|
|
|
// Enables possibility to log in using email address from user identities
|
|
$config['user_aliases'] = false;
|
|
|
|
// use this folder to store log files (must be writeable for apache user)
|
|
// This is used by the 'file' log driver.
|
|
$config['log_dir'] = '/var/log/roundcubemail/';
|
|
|
|
// use this folder to store temp files (must be writeable for apache user)
|
|
$config['temp_dir'] = '/var/lib/roundcubemail/';
|
|
|
|
// expire files in temp_dir after 48 hours
|
|
// possible units: s, m, h, d, w
|
|
$config['temp_dir_ttl'] = '48h';
|
|
|
|
// enforce connections over https
|
|
// with this option enabled, all non-secure connections will be redirected.
|
|
// set the port for the ssl connection as value of this option if it differs from the default 443
|
|
$config['force_https'] = false;
|
|
|
|
// tell PHP that it should work as under secure connection
|
|
// even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set)
|
|
// e.g. when you're running Roundcube behind a https proxy
|
|
// this option is mutually exclusive to 'force_https' and only either one of them should be set to true.
|
|
$config['use_https'] = false;
|
|
|
|
// Allow browser-autocompletion on login form.
|
|
// 0 - disabled, 1 - username and host only, 2 - username, host, password
|
|
$config['login_autocomplete'] = 2;
|
|
|
|
// Forces conversion of logins to lower case.
|
|
// 0 - disabled, 1 - only domain part, 2 - domain and local part.
|
|
// If users authentication is case-insensitive this must be enabled.
|
|
// Note: After enabling it all user records need to be updated, e.g. with query:
|
|
// UPDATE users SET username = LOWER(username);
|
|
$config['login_lc'] = 2;
|
|
|
|
// Includes should be interpreted as PHP files
|
|
$config['skin_include_php'] = false;
|
|
|
|
// display software version on login screen
|
|
$config['display_version'] = false;
|
|
|
|
// Session lifetime in minutes
|
|
$config['session_lifetime'] = 10;
|
|
|
|
// Session domain: .example.org
|
|
$config['session_domain'] = '';
|
|
|
|
// Session name. Default: 'roundcube_sessid'
|
|
$config['session_name'] = null;
|
|
|
|
// Session authentication cookie name. Default: 'roundcube_sessauth'
|
|
$config['session_auth_name'] = null;
|
|
|
|
// Session path. Defaults to PHP session.cookie_path setting.
|
|
$config['session_path'] = null;
|
|
|
|
// Backend to use for session storage. Can either be 'db' (default), 'memcache' or 'php'
|
|
// If set to 'memcache', a list of servers need to be specified in 'memcache_hosts'
|
|
// Make sure the Memcache extension (http://pecl.php.net/package/memcache) version >= 2.0.0 is installed
|
|
// Setting this value to 'php' will use the default session save handler configured in PHP
|
|
$config['session_storage'] = 'db';
|
|
|
|
// Use these hosts for accessing memcached
|
|
// Define any number of hosts in the form of hostname:port or unix:///path/to/socket.file
|
|
$config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock' );
|
|
|
|
// check client IP in session authorization
|
|
$config['ip_check'] = false;
|
|
|
|
// List of trusted proxies
|
|
// X_FORWARDED_* and X_REAL_IP headers are only accepted from these IPs
|
|
$config['proxy_whitelist'] = array();
|
|
|
|
// check referer of incoming requests
|
|
$config['referer_check'] = false;
|
|
|
|
// X-Frame-Options HTTP header value sent to prevent from Clickjacking.
|
|
// Possible values: sameorigin|deny. Set to false in order to disable sending them
|
|
$config['x_frame_options'] = 'sameorigin';
|
|
|
|
// 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.
|
|
{
|
|
use MIME::Base64 qw(encode_base64);
|
|
open( RANDOM, "/dev/urandom" );
|
|
my $buf;
|
|
read( RANDOM, $buf, 17);
|
|
my $pwd = encode_base64($buf);
|
|
chomp $pwd;
|
|
close RANDOM;
|
|
$OUT .= "\$config['des_key'] = \'$pwd\' ;\n";
|
|
}
|
|
|
|
// 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
|
|
// Supported replacement variables:
|
|
// %h - user's IMAP hostname
|
|
// %n - hostname ($_SERVER['SERVER_NAME'])
|
|
// %t - hostname without the first part
|
|
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
|
|
// %z - IMAP domain (IMAP hostname without the first part)
|
|
// For example %n = mail.domain.tld, %t = domain.tld
|
|
$config['username_domain'] = '';
|
|
|
|
// Force domain configured in username_domain to be used for login.
|
|
// Any domain in username will be replaced by username_domain.
|
|
$config['username_domain_forced'] = false;
|
|
|
|
// This domain will be used to form e-mail addresses of new users
|
|
// Specify an array with 'host' => 'domain' values to support multiple hosts
|
|
// Supported replacement variables:
|
|
// %h - user's IMAP hostname
|
|
// %n - http hostname ($_SERVER['SERVER_NAME'])
|
|
// %d - domain (http hostname without the first part)
|
|
// %z - IMAP domain (IMAP hostname without the first part)
|
|
// For example %n = mail.domain.tld, %t = domain.tld
|
|
$config['mail_domain'] = '';
|
|
|
|
// Password charset.
|
|
// Use it if your authentication backend doesn't support UTF-8.
|
|
// Defaults to ISO-8859-1 for backward compatibility
|
|
$config['password_charset'] = 'ISO-8859-1';
|
|
|
|
// How many seconds must pass between emails sent by a user
|
|
$config['sendmail_delay'] = 0;
|
|
|
|
// Maximum number of recipients per message. Default: 0 (no limit)
|
|
$config['max_recipients'] = 0;
|
|
|
|
// Maximum allowednumber of members of an address group. Default: 0 (no limit)
|
|
// If 'max_recipients' is set this value should be less or equal
|
|
$config['max_group_members'] = 0;
|
|
|
|
// Name your service. This is displayed on the login screen and in the window title
|
|
$config['product_name'] = 'Roundcube Webmail';
|
|
|
|
// Add this user-agent to message headers when sending
|
|
$config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;
|
|
|
|
// try to load host-specific configuration
|
|
// see http://trac.roundcube.net/wiki/Howto_Config for more details
|
|
$config['include_host_config'] = false;
|
|
|
|
// path to a text file which will be added to each sent message
|
|
// paths are relative to the Roundcube root folder
|
|
$config['generic_message_footer'] = '';
|
|
|
|
// path to a text file which will be added to each sent HTML message
|
|
// paths are relative to the Roundcube root folder
|
|
$config['generic_message_footer_html'] = '';
|
|
|
|
// add a received header to outgoing mails containing the creators IP and hostname
|
|
$config['http_received_header'] = false;
|
|
|
|
// Whether or not to encrypt the IP address and the host name
|
|
// these could, in some circles, be considered as sensitive information;
|
|
// however, for the administrator, these could be invaluable help
|
|
// when tracking down issues.
|
|
$config['http_received_header_encrypt'] = false;
|
|
|
|
// This string is used as a delimiter for message headers when sending
|
|
// a message via mail() function. Leave empty for auto-detection
|
|
$config['mail_header_delimiter'] = NULL;
|
|
|
|
// number of chars allowed for line when wrapping text.
|
|
// text wrapping is done when composing/sending messages
|
|
$config['line_length'] = 72;
|
|
|
|
// send plaintext messages as format=flowed
|
|
$config['send_format_flowed'] = true;
|
|
|
|
// According to RFC2298, return receipt envelope sender address must be empty.
|
|
// If this option is true, Roundcube will use user's identity as envelope sender for MDN responses.
|
|
$config['mdn_use_from'] = false;
|
|
|
|
// 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
|
|
// 4 - one identity with possibility to edit only signature
|
|
$config['identities_level'] = 0;
|
|
|
|
// Mimetypes supported by the browser.
|
|
// attachments of these types will open in a preview window
|
|
// either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf'
|
|
$config['client_mimetypes'] = null; # null == default
|
|
|
|
// Path to a local mime magic database file for PHPs finfo extension.
|
|
// Set to null if the default path should be used.
|
|
$config['mime_magic'] = null;
|
|
|
|
// Absolute path to a local mime.types mapping table file.
|
|
// This is used to derive mime-types from the filename extension or vice versa.
|
|
// Such a file is usually part of the apache webserver. If you don't find a file named mime.types on your system,
|
|
// download it from http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
|
|
$config['mime_types'] = '/etc/mime.types';
|
|
|
|
// path to imagemagick identify binary
|
|
$config['im_identify_path'] = null;
|
|
|
|
// path to imagemagick convert binary
|
|
$config['im_convert_path'] = null;
|
|
|
|
// Size of thumbnails from image attachments displayed below the message content.
|
|
// Note: whether images are displayed at all depends on the 'inline_images' option.
|
|
// Set to 0 to display images in full size.
|
|
$config['image_thumbnail_size'] = 240;
|
|
|
|
// maximum size of uploaded contact photos in pixel
|
|
$config['contact_photo_size'] = 160;
|
|
|
|
// Enable DNS checking for e-mail address validation
|
|
$config['email_dns_check'] = false;
|
|
|
|
// Disables saving sent messages in Sent folder (like gmail) (Default: false)
|
|
// Note: useful when SMTP server stores sent mail in user mailbox
|
|
$config['no_save_sent_messages'] = false;
|
|
|