GNUNUX $config['db_dsnw'] = 'pgsql://{{ general.postgresql.pg_client_username }}:{{ general.postgresql.pg_client_password }}@{{ general.postgresql.pg_client_server_domainname }}/{{ general.postgresql.pg_client_database }}?sslmode=verify-full&sslcert={{ general.tls_cert_directory }}/postgresql.crt&sslkey={{ general.tls_key_directory }}/postgresql.key&sslrootcert={{ general.tls_ca_directory }}/PostgreSQL.crt'; // 'r', // 'cache_index' => 'r', // 'cache_thread' => 'r', // 'cache_messages' => 'r', ]; // It is possible to specify database variable values e.g. some limits here. // Use them if your server is not MySQL or for better performance. // For example Roundcube uses max_allowed_packet value (in bytes) // which limits query size for database cache operations. $config['db_max_allowed_packet'] = null; // ---------------------------------- // LOGGING/DEBUGGING // ---------------------------------- // log driver: 'syslog', 'stdout' or 'file'. // GNUNUX $config['log_driver'] = 'file'; //>GNUNUX $config['log_driver'] = 'syslog'; //// exists and is writable. $config['per_user_logging'] = false; // Log sent messages to /sendmail.log or to syslog $config['smtp_log'] = true; // Log successful/failed logins to /userlogins.log or to syslog $config['log_logins'] = false; // Log session debug information/authentication errors to /session.log or to syslog $config['session_debug'] = false; // Log SQL queries to /sql.log or to syslog $config['sql_debug'] = false; // Log IMAP conversation to /imap.log or to syslog $config['imap_debug'] = false; // Log LDAP conversation to /ldap.log or to syslog $config['ldap_debug'] = false; // Log SMTP conversation to /smtp.log or to syslog $config['smtp_debug'] = false; // Log Memcache conversation to /memcache.log or to syslog $config['memcache_debug'] = false; // Log APC conversation to /apc.log or to syslog $config['apc_debug'] = false; // Log Redis conversation to /redis.log or to syslog $config['redis_debug'] = false; // ---------------------------------- // IMAP // ---------------------------------- // 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'] = 'localhost'; // TCP port used for IMAP connections $config['default_port'] = 143; // IMAP authentication method (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or null). // Use 'IMAP' to authenticate with IMAP LOGIN command. // By default the most secure method (from supported) will be selected. $config['imap_auth_type'] = null; // IMAP socket context options // See http://php.net/manual/en/context.ssl.php // The example below enables server certificate validation //$config['imap_conn_options'] = [ // 'ssl' => [ // 'verify_peer' => true, // 'verify_depth' => 3, // 'cafile' => '/etc/openssl/certs/ca.crt', // ], // ]; // Note: These can be also specified as an array of options indexed by hostname $config['imap_conn_options'] = null; // IMAP connection timeout, in seconds. Default: 0 (use default_socket_timeout) $config['imap_timeout'] = 0; // Optional IMAP authentication identifier to be used as authorization proxy $config['imap_auth_cid'] = null; // Optional IMAP authentication password to be used for imap_auth_cid $config['imap_auth_pw'] = null; // If you know your imap's folder delimiter, you can specify it here. // Otherwise it will be determined automatically $config['imap_delimiter'] = null; // If you know your imap's folder vendor, you can specify it here. // Otherwise it will be determined automatically. Use lower-case // identifiers, e.g. 'dovecot', 'cyrus', 'gimap', 'hmail', 'uw-imap'. $config['imap_vendor'] = null; // If IMAP server doesn't support NAMESPACE extension, but you're // using shared folders or personal root folder is non-empty, you'll need to // set these options. All can be strings or arrays of strings. // Note: Folders need to be ended with directory separator, e.g. "INBOX." // (special directory "~" is an exception to this rule) // Note: These can be used also to overwrite server's namespaces // Note: Set these to FALSE to disable access to specified namespace $config['imap_ns_personal'] = null; $config['imap_ns_other'] = null; $config['imap_ns_shared'] = null; // By default IMAP capabilities are read after connection to IMAP server // In some cases, e.g. when using IMAP proxy, there's a need to refresh the list // after login. Set to True if you've got this case. $config['imap_force_caps'] = false; // By default list of subscribed folders is determined using LIST-EXTENDED // extension if available. Some servers (dovecot 1.x) returns wrong results // for shared namespaces in this case. https://github.com/roundcube/roundcubemail/issues/2474 // Enable this option to force LSUB command usage instead. // Deprecated: Use imap_disabled_caps = ['LIST-EXTENDED'] $config['imap_force_lsub'] = false; // Some server configurations (e.g. Courier) doesn't list folders in all namespaces // Enable this option to force listing of folders in all namespaces $config['imap_force_ns'] = false; // Some servers return hidden folders (name starting with a dot) // from user home directory. IMAP RFC does not forbid that. // Enable this option to hide them and disable possibility to create such. $config['imap_skip_hidden_folders'] = false; // Some servers do not support folders with both folders and messages inside // If your server supports that use true, if it does not, use false. // By default it will be determined automatically (once per user session). $config['imap_dual_use_folders'] = null; // List of disabled imap extensions. // Use if your IMAP server has broken implementation of some feature // and you can't remove it from CAPABILITY string on server-side. // For example UW-IMAP server has broken ESEARCH. // Note: Because the list is cached, re-login is required after change. $config['imap_disabled_caps'] = []; // Log IMAP session identifiers after each IMAP login. // This is used to relate IMAP session with Roundcube user sessions $config['imap_log_session'] = false; // Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache' or 'memcached'. //>GNUNUX //$config['imap_cache'] = null; $config['imap_cache'] = 'db'; //GNUNUX $config['default_host'] = 'ssl://{{ general.imap.imap_address }}'; $config['default_port'] = 993; $config['imap_auth_type'] = 'PLAIN'; $config['imap_conn_options'] = [ 'ssl' => [ 'verify_peer' => true, 'verify_depth' => 3, 'local_cert' => '{{ general.tls_cert_directory }}/imap.crt', 'local_pk' => '{{ general.tls_key_directory }}/imap.key', 'cafile' => '{{ general.tls_ca_directory }}/IMAP.crt', ], ]; $config['imap_delimiter'] = "+"; $config['imap_vendor'] = 'dovecot'; // 'smtp.example.net'] $config['smtp_server'] = 'localhost'; // SMTP port. Use 25 for cleartext, 465 for Implicit TLS, or 587 for STARTTLS (default) $config['smtp_port'] = 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'; // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use // best server supported one) $config['smtp_auth_type'] = null; // Optional SMTP authentication identifier to be used as authorization proxy $config['smtp_auth_cid'] = null; // Optional SMTP authentication password to be used for smtp_auth_cid $config['smtp_auth_pw'] = null; // Pass the username (XCLIENT LOGIN) to the server $config['smtp_xclient_login'] = false; // Pass the remote IP (XCLIENT ADDR) to the server $config['smtp_xclient_addr'] = false; // SMTP HELO host // Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages // Leave this blank and you will get the server variable 'server_name' or // localhost if that isn't defined. $config['smtp_helo_host'] = ''; // SMTP connection timeout, in seconds. Default: 0 (use default_socket_timeout) // Note: There's a known issue where using ssl connection with // timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511) $config['smtp_timeout'] = 0; // SMTP socket context options // See http://php.net/manual/en/context.ssl.php // The example below enables server certificate validation, and // requires 'smtp_timeout' to be non zero. // $config['smtp_conn_options'] = [ // 'ssl' => [ // 'verify_peer' => true, // 'verify_depth' => 3, // 'cafile' => '/etc/openssl/certs/ca.crt', // ], // ]; // Note: These can be also specified as an array of options indexed by hostname $config['smtp_conn_options'] = null; //>GNUNUX $config['smtp_server'] = 'tls://{{ general.imap.imap_address }}'; $config['smtp_port'] = 587; $config['smtp_auth_type'] = 'PLAIN'; $config['smtp_conn_options'] = [ 'ssl' => [ 'verify_peer' => true, 'verify_depth' => 3, 'local_cert' => '{{ general.tls_cert_directory }}/roundcube.crt', 'local_pk' => '{{ general.tls_key_directory }}/roundcube.key', 'cafile' => '{{ general.tls_ca_directory }}/InternalMail.crt', ], ]; ///index.php/login/oauth as redirect URL // $config['default_host'] = 'ssl://imap.gmail.com'; // $config['oauth_provider'] = 'google'; // $config['oauth_provider_name'] = 'Google'; // $config['oauth_client_id'] = ""; // $config['oauth_client_secret'] = ""; // $config['oauth_auth_uri'] = "https://accounts.google.com/o/oauth2/auth"; // $config['oauth_token_uri'] = "https://oauth2.googleapis.com/token"; // $config['oauth_identity_uri'] = 'https://www.googleapis.com/oauth2/v1/userinfo'; // $config['oauth_scope'] = "email profile openid https://mail.google.com/"; // $config['oauth_auth_parameters'] = ['access_type' => 'offline', 'prompt' => 'consent']; ///// Example config for Outlook.com (Office 365) // Register your OAuth client at https://portal.azure.com // - use https:///index.php/login/oauth as redirect URL // - grant permissions to Microsoft Graph API "IMAP.AccessAsUser.All", "SMTP.Send", "User.Read" and "offline_access" // $config['default_host'] = 'ssl://outlook.office365.com'; // $config['smtp_server'] = 'ssl://smtp.office365.com'; // $config['oauth_provider'] = 'outlook'; // $config['oauth_provider_name'] = 'Outlook.com'; // $config['oauth_client_id'] = ""; // $config['oauth_client_secret'] = ""; // $config['oauth_auth_uri'] = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize"; // $config['oauth_token_uri'] = "https://login.microsoftonline.com/common/oauth2/v2.0/token"; // $config['oauth_identity_uri'] = "https://graph.microsoft.com/v1.0/me"; // $config['oauth_identity_fields'] = ['email', 'userPrincipalName']; // $config['oauth_scope'] = "https://outlook.office365.com/IMAP.AccessAsUser.All https://outlook.office365.com/SMTP.Send User.Read offline_access"; // $config['oauth_auth_parameters'] = ['nonce' => mt_rand()]; //>GNUNUX $config['oauth_provider'] = 'generic'; $config['oauth_provider_name'] = 'LemonLdap'; $config['oauth_client_id'] = '{{ general.oauth2_client.oauth2_client_id }}'; $config['oauth_client_secret'] = '{{ general.oauth2_client.oauth2_client_secret }}'; $config['oauth_auth_uri'] = 'https://{{ general.oauth2_client.oauth2_server_domainname }}/oauth2/authorize'; $config['oauth_token_uri'] = 'https://{{ general.oauth2_client.oauth2_client_server_domainname }}/oauth2/token'; $config['oauth_identity_uri'] = 'https://{{ general.oauth2_client.oauth2_client_server_domainname }}/oauth2/userinfo'; $config['oauth_verify_peer'] = true; $config['oauth_scope'] = "profile email openid"; $config['oauth_auth_parameters'] = []; $config['oauth_identity_fields'] = null; $config['oauth_login_redirect'] = true; //GNUNUX $config['redis_hosts'] = array('{{ general.redis.redis_client_server_domainname }}:6379:0:{{ general.redis.redis_client_password }}'); //