#116 Roundcube autocreate

This commit is contained in:
croax 2022-10-19 14:03:33 +02:00 committed by croax
parent df2f6fc836
commit b7ed7ea17d
1 changed files with 52 additions and 49 deletions

View File

@ -2,6 +2,25 @@
/* Local configuration for Roundcube Webmail */ /* Local configuration for Roundcube Webmail */
// ----------------------------------
// IMAP
// ----------------------------------
// The IMAP host (and optionally port number) 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.
// Enter hostname with prefix ssl:// to use Implicit TLS, or use
// prefix tls:// to use STARTTLS.
// If port number is omitted it will be set to 993 (for ssl://) or 143 otherwise.
// Supported replacement variables:
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %t = domain.tld
// WARNING: After hostname change update of mail_host column in users table is
// required to match old user data records with the new host.
$config['imap_host'] = 'ssl://%n';
// ---------------------------------- // ----------------------------------
// SQL DATABASE // SQL DATABASE
// ---------------------------------- // ----------------------------------
@ -27,45 +46,12 @@ $config['log_driver'] = 'syslog';
// For possible values see installer or http://php.net/manual/en/function.openlog.php // For possible values see installer or http://php.net/manual/en/function.openlog.php
$config['syslog_facility'] = LOG_MAIL; $config['syslog_facility'] = LOG_MAIL;
// ---------------------------------- // Log sent messages to <log_dir>/sendmail.log or to syslog
// IMAP $config['smtp_log'] = false;
// ----------------------------------
// The IMAP 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.
// Enter hostname with prefix ssl:// to use Implicit TLS, or use
// prefix tls:// to use STARTTLS.
// Supported replacement variables:
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %t = domain.tld
// WARNING: After hostname change update of mail_host column in users table is
// required to match old user data records with the new host.
$config['default_host'] = 'ssl://mail.a-lec.org';
// TCP port used for IMAP connections
$config['default_port'] = 993;
// ----------------------------------
// SMTP
// ----------------------------------
// SMTP server host (for sending mails).
// Enter hostname with prefix ssl:// to use Implicit TLS, or use
// prefix tls:// to use STARTTLS.
// 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['smtp_server'] = 'tls://mail.a-lec.org';
// provide an URL where a user can get support for this Roundcube installation // provide an URL where a user can get support for this Roundcube installation
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE! // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
$config['support_url'] = ''; $config['support_url'] = 'mailto:cominfra+roundcube@a-lec.org?subject=Roundcube%20:%20Demande%20aide%20connexion';
// Logo image replacement. Specifies location of the image as: // Logo image replacement. Specifies location of the image as:
// - URL relative to the document root of this Roundcube installation // - URL relative to the document root of this Roundcube installation
@ -97,38 +83,48 @@ $config['support_url'] = '';
// show the image /images/logo_print.png for all print type logos in all skins // show the image /images/logo_print.png for all print type logos in all skins
"[print]" => "/images/logo_print.png", "[print]" => "/images/logo_print.png",
); );
*/$config['skin_logo'] = './logo_a-lec.svg'; */
$config['skin_logo'] = './logo_a-lec.svg';
// check client IP in session authorization // Automatically register user in Roundcube database on successful (IMAP) logon.
$config['ip_check'] = true; // Set to false if only registered users should be allowed to the webmail.
// Note: If disabled you have to create records in Roundcube users table by yourself.
// Note: Roundcube does not manage/create users on a mail server.
$config['auto_create_user'] = true;
// This key is used for encrypting purposes, like storing of imap password // This key is used for encrypting purposes, like storing of imap password
// in the session. For historical reasons it's called DES_key, but it's used // in the session. For historical reasons it's called DES_key, but it's used
// with any configured cipher_method (see below). // with any configured cipher_method (see below).
// For the default cipher_method a required key length is 24 characters. // For the default cipher_method a required key length is 24 characters.
#$config['des_key'] = '';
$config['des_key'] = '<REDACTED>'; $config['des_key'] = '<REDACTED>';
// 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'] = '%d';
// Name your service. This is displayed on the login screen and in the window title // Name your service. This is displayed on the login screen and in the window title
$config['product_name'] = 'Webmail des membres de Libre en Communs'; $config['product_name'] = 'Webmail des membres de Libre en Communs';
// 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;
// ---------------------------------- // ----------------------------------
// PLUGINS // PLUGINS
// ---------------------------------- // ----------------------------------
// List of active plugins (in plugins/ directory) // List of active plugins (in plugins/ directory)
$config['plugins'] = array('acl', 'additional_message_headers', 'archive', 'attachment_reminder', 'autologon', 'database_attachments', 'emoticons', 'enigma', 'help', 'identicon', 'identity_select', 'jqueryui', 'new_user_dialog', 'newmail_notifier', 'password', 'show_additional_headers', 'subscriptions_option', 'userinfo', 'vcard_attachments', 'zipdownload', 'managesieve'); $config['plugins'] = ['acl', 'additional_message_headers', 'archive', 'attachment_reminder', 'autologon', 'database_attachments', 'emoticons', 'enigma', 'help', 'identicon', 'identity_select', 'jqueryui', 'new_user_dialog', 'newmail_notifier', 'password', 'show_additional_headers', 'subscriptions_option', 'userinfo', 'vcard_attachments', 'zipdownload', 'managesieve'];
// the default locale setting (leave empty for auto-detection) // the default locale setting (leave empty for auto-detection)
// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
$config['language'] = 'fr_FR'; $config['language'] = 'fr_FR';
// prefer displaying HTML messages
$config['prefer_html'] = false;
// compose html formatted messages by default // compose html formatted messages by default
// 0 - never, // 0 - never,
// 1 - always, // 1 - always,
@ -143,4 +139,11 @@ $config['htmleditor'] = 2;
// 2 - Full 2047 compatible // 2 - Full 2047 compatible
$config['mime_param_folding'] = 0; $config['mime_param_folding'] = 0;
$config['mail_domain'] = '%d'; // TCP port used for IMAP connections
#$config['default_port'] = 993;
$config['default_host'] = "ssl://mail.a-lec.org:993";
$config['smtp_server'] = "ssl://mail.a-lec.org:465";
$config['smtp_user'] = "%u";
$config['smtp_pass'] = "%p";
$config['identities_level'] = 0;