← Back
Editing: config.inc.php
<?php /* +-----------------------------------------------------------------------+ | Local configuration for the Roundcube Webmail installation. | | | | This is a sample configuration file only containing the minimum | | setup required for a functional installation. Copy more options | | from defaults.inc.php to this file to override the defaults. | | | | This file is part of the Roundcube Webmail client | | Copyright (C) The Roundcube Dev Team | | | | Licensed under the GNU General Public License version 3 or | | any later version with exceptions for skins & plugins. | | See the README file for a full license statement. | +-----------------------------------------------------------------------+ */ $config = []; // Database connection string (DSN) for read+write operations // Format (compatible with PEAR MDB2): db_provider://user:password@host/database // Currently supported db_providers: mysql, pgsql, sqlite, mssql, sqlsrv, oracle // For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php // NOTE: for SQLite use absolute path (Linux): 'sqlite:////full/path/to/sqlite.db?mode=0646' // or (Windows): 'sqlite:///C:/full/path/to/sqlite.db' $config['db_dsnw'] = 'mysql://roundcube:dnMWZ]5LxrJrcEpz@localhost/roundcubemail'; // IMAP host chosen to perform the log-in. // See defaults.inc.php for the option description. $config['imap_host'] = 'localhost:143'; // SMTP server host (for sending mails). // See defaults.inc.php for the option description. $config['smtp_host'] = 'localhost:587'; // SMTP username (if required) if you use %u as the username Roundcube // will use the current username for login $config['smtp_user'] = '%u'; // SMTP password (if required) if you use %p as the password Roundcube // will use the current user's password for login $config['smtp_pass'] = '%p'; // 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'] = ''; // Name your service. This is displayed on the login screen and in the window title $config['product_name'] = 'Roundcube Webmail'; // This key is used to encrypt the users imap password which is stored // in the session record. For the default cipher method it must be // exactly 24 characters long. // YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS $config['des_key'] = 'rcmail-!24ByteDESkey*Str'; // ---------------------------------- // USER INTERFACE // ---------------------------------- // default messages sort column. Use empty value for default server's sorting, // or 'arrival', 'date', 'subject', 'from', 'to', 'fromto', 'size', 'cc' $config['message_sort_col'] = 'date'; // default messages sort order $config['message_sort_order'] = 'DESC'; // These cols are shown in the message list. Available cols are: // subject, from, to, fromto, cc, replyto, date, size, status, flag, attachment, priority $config['list_cols'] = ['status', 'flag', 'attachment', 'from', 'subject', 'date', 'size']; // the default locale setting (leave empty for auto-detection) // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR $config['language'] = null; // use this format for date display (PHP DateTime format) $config['date_format'] = 'Y-m-d'; // give this choice of date formats to the user to select from // Note: do not use ambiguous formats like m/d/Y $config['date_formats'] = ['Y-m-d', 'Y/m/d', 'Y.m.d', 'd-m-Y', 'd/m/Y', 'd.m.Y', 'j.n.Y']; // use this format for time display (PHP DateTime format) $config['time_format'] = 'H:i'; // give this choice of time formats to the user to select from $config['time_formats'] = ['G:i', 'H:i', 'g:i a', 'h:i A']; // use this format for short date display (derived from date_format and time_format) $config['date_short'] = 'D H:i'; // use this format for detailed date/time formatting (derived from date_format and time_format) $config['date_long'] = 'Y-m-d H:i'; // store draft message is this mailbox // leave blank if draft messages should not be stored // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP) $config['drafts_mbox'] = 'Drafts'; // store spam messages in this mailbox // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP) $config['junk_mbox'] = 'Junk'; // store sent message is this mailbox // leave blank if sent messages should not be stored // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP) $config['sent_mbox'] = 'Sent'; // move messages to this folder when deleting them // leave blank if they should be deleted directly // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP) $config['trash_mbox'] = 'Trash'; // automatically create the above listed default folders on user login $config['create_default_folders'] = false; // protect the default folders from renames, deletes, and subscription changes $config['protect_default_folders'] = true; // Minimal value of user's 'refresh_interval' setting (in seconds) $config['min_refresh_interval'] = 60; // Specifies for how many seconds the Undo button will be available // after object delete action. Currently used with supporting address book sources. // Setting it to 0, disables the feature. $config['undo_timeout'] = 20; // ---------------------------------- // USER PREFERENCES // ---------------------------------- // Use this charset as fallback for message decoding $config['default_charset'] = 'UTF-8'; // use this timezone to display date/time // valid timezone identifiers are listed here: php.net/manual/en/timezones.php // 'auto' will use the browser's timezone settings $config['timezone'] = 'auto'; // prefer displaying HTML messages $config['prefer_html'] = true; // Display remote resources (inline images, styles) in HTML messages. Default: 0. // 0 - Never, always ask // 1 - Allow from my contacts (all writeable addressbooks + collected senders and recipients) // 2 - Always allow // 3 - Allow from trusted senders only $config['show_images'] = 2; // show up to X items in messages list view $config['mail_pagesize'] = 100; // compose html formatted messages by default // 0 - never, // 1 - always, // 2 - on reply to HTML message, // 3 - on forward or reply to HTML message // 4 - always, except when replying to plain text message $config['htmleditor'] = 1; // Interface layout. Default: 'widescreen'. // 'widescreen' - three columns // 'desktop' - two columns, preview on bottom // 'list' - two columns, no preview $config['layout'] = 'list'; // Mark as read when viewing a message (delay in seconds) // Set to -1 if messages should not be marked as read $config['mail_read_time'] = 0; // save copies of compose messages in the browser's local storage // for recovery in case of browser crashes and session timeout. $config['compose_save_localstorage'] = true; // save compose message every 300 seconds (5min) $config['draft_autosave'] = 300; // show pretty dates as standard $config['prettydate'] = true; // Clear Trash on logout. Remove all messages or only older than N days. // Supported values: false, true, 30, 60, 90. Default: false. $config['logout_purge'] = false; // Default interval for auto-refresh requests (in seconds) // These are requests for system state updates e.g. checking for new messages, etc. // Setting it to 0 disables the feature. $config['refresh_interval'] = 60; // If true, after message/contact delete/move, the next message/contact will be displayed $config['display_next'] = true; // Default messages listing mode. One of 'threads' or 'list'. $config['default_list_mode'] = 'list'; // Limit skins available for the user. // Note: When not empty, it should include the default skin set in 'skin' option. $config['skins_allowed'] = ['classic', 'larry', 'elastic']; // Skin name: folder from skins/ $config['skin'] = 'larry'; // ---------------------------------- // PLUGINS // ---------------------------------- // List of active plugins (in plugins/ directory) $config['plugins'] = [ 'archive', 'zipdownload', 'acl', 'additional_message_headers', 'attachment_reminder', 'hide_blockquote', 'identity_select', 'jqueryui', 'show_additional_headers', 'subscriptions_option', 'vcard_attachments', 'filesystem_attachments', 'login_lang', # 'managesieve', 'markasjunk', # 'filters', ]; // ---------------------------------- // SYSTEM // ---------------------------------- // X-Frame-Options HTTP header value sent to prevent from Clickjacking. // Possible values: sameorigin|deny|allow-from <uri>. // Set to false in order to disable sending the header. $config['x_frame_options'] = 'false'; // Brute-force attacks prevention. // The value specifies maximum number of failed logon attempts per minute. $config['login_rate_limit'] = 3; // Session lifetime in minutes $config['session_lifetime'] = 60; // Configuration Spam Filters Rule $config['autoAddSpamFilterRule'] = TRUE; // if TRUE a spam filter rule is created for all users which automatically move messages into junk folder if no filters rules $config['spam_subject'] = '[SPAM]'; // How to mark the spam in the subject? To have effect the previous variable must be TRUE. $config['caseInsensitiveSearch'] = TRUE; // if TRUE filters searching in case insensitive mode. $config['decodeBase64Msg'] = TRUE; // if TRUE decode base64 mail messages. $config['spam_headers'] = array('X-Spam-Flag','X-Spam-Status','X-Yandex-Spam'); // Check additional headers or amavisd-new headers like X-Spam-Flag, don't need mark spam in the subject
Save File
Cancel