adding roundcube configuration for JESSIE + removing unused roundcube template (managesieve).
This commit is contained in:
parent
fa3b1a63fa
commit
c8b3d1af2a
|
@ -17,3 +17,7 @@ cp bureau.conf ../etc/alternc/templates/alternc/
|
|||
cp alternc.install ../install/
|
||||
cp apache2.conf ../etc/alternc/templates/alternc/
|
||||
cp ssl.conf ../ssl/
|
||||
cp roundcube.config.inc.php ../roundcube/templates/roundcube/config.inc.php
|
||||
rm ../roundcube/templates/roundcube/main.inc.php
|
||||
cp roundcube.password.config.inc.php ../roundcube/templates/roundcube/plugins/password/config.inc.php
|
||||
cp roundcube-install ./roundcube/
|
|
@ -0,0 +1,90 @@
|
|||
#!/bin/bash
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# AlternC - Web Hosting System
|
||||
# Copyright (C) 2000-2012 by the AlternC Development Team.
|
||||
# https://alternc.org/
|
||||
# ----------------------------------------------------------------------
|
||||
# LICENSE
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License (GPL)
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||
# ----------------------------------------------------------------------
|
||||
# Purpose of file: Install roundcube conf files.
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
if [ "$1" = "templates" ]
|
||||
then
|
||||
echo "Installing Roundcube Templates ..."
|
||||
# cp -f /etc/alternc/templates/roundcube/avelsieve-config.php /etc/alternc/templates/roundcube/apache.conf /etc/roundcube/
|
||||
# cp -f /etc/alternc/templates/javascript-common/javascript-common.conf /etc/javascript-common/
|
||||
|
||||
LOGIN="0000_roundcube"
|
||||
PASSWORD="`perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..10)'`"
|
||||
DESKEY="`perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..24)'`"
|
||||
|
||||
# Add new variables to the sed script ...
|
||||
SED_SCRIPT="/tmp/alternc-roundcube.sedscript"
|
||||
# cf alternc.install for more explanations on this horror :
|
||||
eval `sed -n -e "/=/{s/ *= *\"\?/='/;s/\"\?\$/'/;s/host/MYSQL_HOST/;s/user/MYSQL_USER/;s/password/MYSQL_PASS/;s/database/MYSQL_DATABASE/;p}" /etc/alternc/my.cnf`
|
||||
. /etc/alternc/local.sh
|
||||
# Configuration template location
|
||||
TEMPLATE_DIR="/etc/alternc/templates"
|
||||
CONFIG_FILES="etc/roundcube/config.inc.php etc/roundcube/plugins/password/config.inc.php"
|
||||
|
||||
cat > $SED_SCRIPT <<EOF
|
||||
s\\%%ALTERNC_LOC%%\\$ALTERNC_LOC\\;
|
||||
s\\%%dbhost%%\\$MYSQL_HOST\\;
|
||||
s\\%%dbname%%\\$MYSQL_DATABASE\\;
|
||||
s\\%%roundcube-login%%\\$LOGIN\\;
|
||||
s\\%%roundcube-password%%\\$PASSWORD\\;
|
||||
s\\%%deskey%%\\$DESKEY\\;
|
||||
EOF
|
||||
for file in $CONFIG_FILES; do
|
||||
TEMPLATE="$TEMPLATE_DIR/${file##etc/}"
|
||||
echo -n " $file"
|
||||
if [ -f "$TEMPLATE" ]; then
|
||||
sed -f "$SED_SCRIPT" < $TEMPLATE > /$file
|
||||
fi
|
||||
done
|
||||
|
||||
rm -f $SED_SCRIPT
|
||||
|
||||
echo " Done"
|
||||
|
||||
. /usr/lib/alternc/functions.sh
|
||||
|
||||
echo "giving write access to roundcube to the email password ..."
|
||||
# now database host user and password are mysql root account values ;)
|
||||
mysql_query "GRANT UPDATE (password) ON ${database}.address TO '${LOGIN}'@'${MYSQL_CLIENT}' IDENTIFIED BY '${PASSWORD}';"
|
||||
mysql_query "GRANT SELECT ON ${database}.address TO '${LOGIN}'@'${MYSQL_CLIENT}';"
|
||||
mysql_query "GRANT SELECT ON ${database}.domaines TO '${LOGIN}'@'${MYSQL_CLIENT}';"
|
||||
echo " Done"
|
||||
|
||||
echo "Setting roundcube domaintype"
|
||||
mysql_query "INSERT IGNORE INTO domaines_type (name ,description ,target ,entry ,compatibility ,enable ,only_dns ,need_dns ,advanced )VALUES ('roundcube','Roundcube Webmail access', 'NONE', '%SUB% IN A @@PUBLIC_IP@@', 'txt', 'ALL', '0', '0', '0');"
|
||||
echo " Done"
|
||||
|
||||
echo "Migrating old webmail domaine type to roundcube one:"
|
||||
# migration of the "webmail" hosts to "roundcube" hosts:
|
||||
mysql_query "INSERT IGNORE INTO sub_domaines (compte, domaine, sub, valeur, type, web_action, web_result, enable) SELECT compte, domaine, sub, valeur,'roundcube', 'UPDATE',0, enable FROM sub_domaines WHERE type='WEBMAIL';"
|
||||
mysql_query "UPDATE sub_domaines SET web_action='DELETE' WHERE type='WEBMAIL';"
|
||||
echo " Done"
|
||||
|
||||
echo "Deconfiguring javascript-common alias"
|
||||
rm -f /etc/apache2/conf.d/javascript-common.conf
|
||||
# just in case
|
||||
sed -i -e "s/^Alias \/javascript/# Do not uncomment, commented by AlternC to prevent a global alias\n#Alias \/javascript/" /etc/javascript-common/javascript-common.conf
|
||||
echo " Done"
|
||||
|
||||
fi
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
<?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) 2005-2013, 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 = array();
|
||||
|
||||
/* Do not set db_dsnw here, use dpkg-reconfigure roundcube-core to configure database ! */
|
||||
include_once("/etc/roundcube/debian-db-roundcube.php");
|
||||
|
||||
// The mail 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.
|
||||
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
|
||||
// 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
|
||||
$config['default_host'] = 'localhost';
|
||||
|
||||
// SMTP server host (for sending mails).
|
||||
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
|
||||
// If left blank, the PHP mail() function is used
|
||||
// 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'] = '';
|
||||
|
||||
// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
|
||||
// deprecated SSL over SMTP (aka SMTPS))
|
||||
$config['smtp_port'] = 25;
|
||||
|
||||
// SMTP username (if required) if you use %u as the username Roundcube
|
||||
// will use the current username for login
|
||||
$config['smtp_user'] = '';
|
||||
|
||||
// SMTP password (if required) if you use %p as the password Roundcube
|
||||
// will use the current user's password for login
|
||||
$config['smtp_pass'] = '';
|
||||
|
||||
// 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 (and the client cookie if remember password is enabled).
|
||||
// please provide a string of exactly 24 chars.
|
||||
// YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS
|
||||
$config['des_key'] = 'PFMKPD0[UcU3tvt8zrODOIsQ';
|
||||
|
||||
// List of active plugins (in plugins/ directory)
|
||||
$config['plugins'] = array(
|
||||
'archive',
|
||||
'zipdownload',
|
||||
'managesieve',
|
||||
);
|
||||
|
||||
// skin name: folder from skins/
|
||||
$config['skin'] = 'larry';
|
|
@ -0,0 +1,401 @@
|
|||
<?php
|
||||
|
||||
// Password Plugin options
|
||||
// -----------------------
|
||||
// A driver to use for password change. Default: "sql".
|
||||
// See README file for list of supported driver names.
|
||||
$config['password_driver'] = 'sql';
|
||||
|
||||
// Determine whether current password is required to change password.
|
||||
// Default: false.
|
||||
$config['password_confirm_current'] = true;
|
||||
|
||||
// Require the new password to be a certain length.
|
||||
// set to blank to allow passwords of any length
|
||||
$config['password_minimum_length'] = 8;
|
||||
|
||||
// Require the new password to contain a letter and punctuation character
|
||||
// Change to false to remove this check.
|
||||
$config['password_require_nonalpha'] = true;
|
||||
|
||||
// Enables logging of password changes into logs/password
|
||||
$config['password_log'] = true;
|
||||
|
||||
// Comma-separated list of login exceptions for which password change
|
||||
// will be not available (no Password tab in Settings)
|
||||
$config['password_login_exceptions'] = null;
|
||||
|
||||
// Array of hosts that support password changing. Default is NULL.
|
||||
// Listed hosts will feature a Password option in Settings; others will not.
|
||||
// Example:
|
||||
//$config['password_hosts'] = array('mail.example.com', 'mail2.example.org');
|
||||
$config['password_hosts'] = null;
|
||||
|
||||
// Enables saving the new password even if it matches the old password. Useful
|
||||
// for upgrading the stored passwords after the encryption scheme has changed.
|
||||
$config['password_force_save'] = false;
|
||||
|
||||
// Enables forcing new users to change their password at their first login.
|
||||
$config['password_force_new_user'] = false;
|
||||
|
||||
|
||||
// SQL Driver options
|
||||
// ------------------
|
||||
// PEAR database DSN for performing the query. By default
|
||||
// Roundcube DB settings are used.
|
||||
$config['password_db_dsn'] = 'mysql://%%roundcube-login%%:%%roundcube-password%%@%%dbhost%%/%%dbname%%';
|
||||
|
||||
// The SQL query used to change the password.
|
||||
// The query can contain the following macros that will be expanded as follows:
|
||||
// %p is replaced with the plaintext new password
|
||||
// %c is replaced with the crypt version of the new password, MD5 if available
|
||||
// otherwise DES. More hash function can be enabled using the password_crypt_hash
|
||||
// configuration parameter.
|
||||
// %D is replaced with the dovecotpw-crypted version of the new password
|
||||
// %o is replaced with the password before the change
|
||||
// %n is replaced with the hashed version of the new password
|
||||
// %q is replaced with the hashed password before the change
|
||||
// %h is replaced with the imap host (from the session info)
|
||||
// %u is replaced with the username (from the session info)
|
||||
// %l is replaced with the local part of the username
|
||||
// (in case the username is an email address)
|
||||
// %d is replaced with the domain part of the username
|
||||
// (in case the username is an email address)
|
||||
// Escaping of macros is handled by this module.
|
||||
// Default: "SELECT update_passwd(%c, %u)"
|
||||
$config['password_query'] = 'UPDATE address a LEFT JOIN domaines d ON d.id=a.domain_id SET a.password=%c WHERE d.domaine=%d AND address=%l';
|
||||
|
||||
// By default the crypt() function which is used to create the '%c'
|
||||
// parameter uses the md5 algorithm. To use different algorithms
|
||||
// you can choose between: des, md5, blowfish, sha256, sha512.
|
||||
// Before using other hash functions than des or md5 please make sure
|
||||
// your operating system supports the other hash functions.
|
||||
$config['password_crypt_hash'] = 'md5';
|
||||
|
||||
// By default domains in variables are using unicode.
|
||||
// Enable this option to use punycoded names
|
||||
$config['password_idn_ascii'] = false;
|
||||
|
||||
// Path for dovecotpw (if not in $PATH)
|
||||
// $config['password_dovecotpw'] = '/usr/local/sbin/dovecotpw';
|
||||
|
||||
// Dovecot method (dovecotpw -s 'method')
|
||||
$config['password_dovecotpw_method'] = 'CRAM-MD5';
|
||||
|
||||
// Enables use of password with crypt method prefix in %D, e.g. {MD5}$1$LUiMYWqx$fEkg/ggr/L6Mb2X7be4i1/
|
||||
$config['password_dovecotpw_with_method'] = false;
|
||||
|
||||
// Using a password hash for %n and %q variables.
|
||||
// Determine which hashing algorithm should be used to generate
|
||||
// the hashed new and current password for using them within the
|
||||
// SQL query. Requires PHP's 'hash' extension.
|
||||
$config['password_hash_algorithm'] = 'sha1';
|
||||
|
||||
// You can also decide whether the hash should be provided
|
||||
// as hex string or in base64 encoded format.
|
||||
$config['password_hash_base64'] = false;
|
||||
|
||||
// Iteration count parameter for Blowfish-based hashing algo.
|
||||
// It must be between 4 and 31. Default: 12.
|
||||
// Be aware, the higher the value, the longer it takes to generate the password hashes.
|
||||
$config['password_blowfish_cost'] = 12;
|
||||
|
||||
|
||||
// Poppassd Driver options
|
||||
// -----------------------
|
||||
// The host which changes the password
|
||||
$config['password_pop_host'] = 'localhost';
|
||||
|
||||
// TCP port used for poppassd connections
|
||||
$config['password_pop_port'] = 106;
|
||||
|
||||
|
||||
// SASL Driver options
|
||||
// -------------------
|
||||
// Additional arguments for the saslpasswd2 call
|
||||
$config['password_saslpasswd_args'] = '';
|
||||
|
||||
|
||||
// LDAP and LDAP_SIMPLE Driver options
|
||||
// -----------------------------------
|
||||
// LDAP server name to connect to.
|
||||
// You can provide one or several hosts in an array in which case the hosts are tried from left to right.
|
||||
// Exemple: array('ldap1.exemple.com', 'ldap2.exemple.com');
|
||||
// Default: 'localhost'
|
||||
$config['password_ldap_host'] = 'localhost';
|
||||
|
||||
// LDAP server port to connect to
|
||||
// Default: '389'
|
||||
$config['password_ldap_port'] = '389';
|
||||
|
||||
// TLS is started after connecting
|
||||
// Using TLS for password modification is recommanded.
|
||||
// Default: false
|
||||
$config['password_ldap_starttls'] = false;
|
||||
|
||||
// LDAP version
|
||||
// Default: '3'
|
||||
$config['password_ldap_version'] = '3';
|
||||
|
||||
// LDAP base name (root directory)
|
||||
// Exemple: 'dc=exemple,dc=com'
|
||||
$config['password_ldap_basedn'] = 'dc=exemple,dc=com';
|
||||
|
||||
// LDAP connection method
|
||||
// There is two connection method for changing a user's LDAP password.
|
||||
// 'user': use user credential (recommanded, require password_confirm_current=true)
|
||||
// 'admin': use admin credential (this mode require password_ldap_adminDN and password_ldap_adminPW)
|
||||
// Default: 'user'
|
||||
$config['password_ldap_method'] = 'user';
|
||||
|
||||
// LDAP Admin DN
|
||||
// Used only in admin connection mode
|
||||
// Default: null
|
||||
$config['password_ldap_adminDN'] = null;
|
||||
|
||||
// LDAP Admin Password
|
||||
// Used only in admin connection mode
|
||||
// Default: null
|
||||
$config['password_ldap_adminPW'] = null;
|
||||
|
||||
// LDAP user DN mask
|
||||
// The user's DN is mandatory and as we only have his login,
|
||||
// we need to re-create his DN using a mask
|
||||
// '%login' will be replaced by the current roundcube user's login
|
||||
// '%name' will be replaced by the current roundcube user's name part
|
||||
// '%domain' will be replaced by the current roundcube user's domain part
|
||||
// '%dc' will be replaced by domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
|
||||
// Exemple: 'uid=%login,ou=people,dc=exemple,dc=com'
|
||||
$config['password_ldap_userDN_mask'] = 'uid=%login,ou=people,dc=exemple,dc=com';
|
||||
|
||||
// LDAP search DN
|
||||
// The DN roundcube should bind with to find out user's DN
|
||||
// based on his login. Note that you should comment out the default
|
||||
// password_ldap_userDN_mask setting for this to take effect.
|
||||
// Use this if you cannot specify a general template for user DN with
|
||||
// password_ldap_userDN_mask. You need to perform a search based on
|
||||
// users login to find his DN instead. A common reason might be that
|
||||
// your users are placed under different ou's like engineering or
|
||||
// sales which cannot be derived from their login only.
|
||||
$config['password_ldap_searchDN'] = 'cn=roundcube,ou=services,dc=example,dc=com';
|
||||
|
||||
// LDAP search password
|
||||
// If password_ldap_searchDN is set, the password to use for
|
||||
// binding to search for user's DN. Note that you should comment out the default
|
||||
// password_ldap_userDN_mask setting for this to take effect.
|
||||
// Warning: Be sure to set approperiate permissions on this file so this password
|
||||
// is only accesible to roundcube and don't forget to restrict roundcube's access to
|
||||
// your directory as much as possible using ACLs. Should this password be compromised
|
||||
// you want to minimize the damage.
|
||||
$config['password_ldap_searchPW'] = 'secret';
|
||||
|
||||
// LDAP search base
|
||||
// If password_ldap_searchDN is set, the base to search in using the filter below.
|
||||
// Note that you should comment out the default password_ldap_userDN_mask setting
|
||||
// for this to take effect.
|
||||
$config['password_ldap_search_base'] = 'ou=people,dc=example,dc=com';
|
||||
|
||||
// LDAP search filter
|
||||
// If password_ldap_searchDN is set, the filter to use when
|
||||
// searching for user's DN. Note that you should comment out the default
|
||||
// password_ldap_userDN_mask setting for this to take effect.
|
||||
// '%login' will be replaced by the current roundcube user's login
|
||||
// '%name' will be replaced by the current roundcube user's name part
|
||||
// '%domain' will be replaced by the current roundcube user's domain part
|
||||
// '%dc' will be replaced by domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
|
||||
// Example: '(uid=%login)'
|
||||
// Example: '(&(objectClass=posixAccount)(uid=%login))'
|
||||
$config['password_ldap_search_filter'] = '(uid=%login)';
|
||||
|
||||
// LDAP password hash type
|
||||
// Standard LDAP encryption type which must be one of: crypt,
|
||||
// ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, ad, cram-md5 (dovecot style) or clear.
|
||||
// Please note that most encodage types require external libraries
|
||||
// to be included in your PHP installation, see function hashPassword in drivers/ldap.php for more info.
|
||||
// Multiple password Values can be generated by concatenating encodings with a +. E.g. 'cram-md5+crypt'
|
||||
// Default: 'crypt'.
|
||||
$config['password_ldap_encodage'] = 'crypt';
|
||||
|
||||
// LDAP password attribute
|
||||
// Name of the ldap's attribute used for storing user password
|
||||
// Default: 'userPassword'
|
||||
$config['password_ldap_pwattr'] = 'userPassword';
|
||||
|
||||
// LDAP password force replace
|
||||
// Force LDAP replace in cases where ACL allows only replace not read
|
||||
// See http://pear.php.net/package/Net_LDAP2/docs/latest/Net_LDAP2/Net_LDAP2_Entry.html#methodreplace
|
||||
// Default: true
|
||||
$config['password_ldap_force_replace'] = true;
|
||||
|
||||
// LDAP Password Last Change Date
|
||||
// Some places use an attribute to store the date of the last password change
|
||||
// The date is meassured in "days since epoch" (an integer value)
|
||||
// Whenever the password is changed, the attribute will be updated if set (e.g. shadowLastChange)
|
||||
$config['password_ldap_lchattr'] = '';
|
||||
|
||||
// LDAP Samba password attribute, e.g. sambaNTPassword
|
||||
// Name of the LDAP's Samba attribute used for storing user password
|
||||
$config['password_ldap_samba_pwattr'] = '';
|
||||
|
||||
// LDAP Samba Password Last Change Date attribute, e.g. sambaPwdLastSet
|
||||
// Some places use an attribute to store the date of the last password change
|
||||
// The date is meassured in "seconds since epoch" (an integer value)
|
||||
// Whenever the password is changed, the attribute will be updated if set
|
||||
$config['password_ldap_samba_lchattr'] = '';
|
||||
|
||||
|
||||
// DirectAdmin Driver options
|
||||
// --------------------------
|
||||
// The host which changes the password
|
||||
// Use 'ssl://host' instead of 'tcp://host' when running DirectAdmin over SSL.
|
||||
// The host can contain the following macros that will be expanded as follows:
|
||||
// %h is replaced with the imap host (from the session info)
|
||||
// %d is replaced with the domain part of the username (if the username is an email)
|
||||
$config['password_directadmin_host'] = 'tcp://localhost';
|
||||
|
||||
// TCP port used for DirectAdmin connections
|
||||
$config['password_directadmin_port'] = 2222;
|
||||
|
||||
|
||||
// vpopmaild Driver options
|
||||
// -----------------------
|
||||
// The host which changes the password
|
||||
$config['password_vpopmaild_host'] = 'localhost';
|
||||
|
||||
// TCP port used for vpopmaild connections
|
||||
$config['password_vpopmaild_port'] = 89;
|
||||
|
||||
// Timout used for the connection to vpopmaild (in seconds)
|
||||
$config['password_vpopmaild_timeout'] = 10;
|
||||
|
||||
|
||||
// cPanel Driver options
|
||||
// --------------------------
|
||||
// The cPanel Host name
|
||||
$config['password_cpanel_host'] = 'host.domain.com';
|
||||
|
||||
// The cPanel admin username
|
||||
$config['password_cpanel_username'] = 'username';
|
||||
|
||||
// The cPanel admin password
|
||||
$config['password_cpanel_password'] = 'password';
|
||||
|
||||
// The cPanel port to use
|
||||
$config['password_cpanel_port'] = 2087;
|
||||
|
||||
|
||||
// XIMSS (Communigate server) Driver options
|
||||
// -----------------------------------------
|
||||
// Host name of the Communigate server
|
||||
$config['password_ximss_host'] = 'mail.example.com';
|
||||
|
||||
// XIMSS port on Communigate server
|
||||
$config['password_ximss_port'] = 11024;
|
||||
|
||||
|
||||
// chpasswd Driver options
|
||||
// ---------------------
|
||||
// Command to use
|
||||
$config['password_chpasswd_cmd'] = 'sudo /usr/sbin/chpasswd 2> /dev/null';
|
||||
|
||||
|
||||
// XMail Driver options
|
||||
// ---------------------
|
||||
$config['xmail_host'] = 'localhost';
|
||||
$config['xmail_user'] = 'YourXmailControlUser';
|
||||
$config['xmail_pass'] = 'YourXmailControlPass';
|
||||
$config['xmail_port'] = 6017;
|
||||
|
||||
|
||||
// hMail Driver options
|
||||
// -----------------------
|
||||
// Remote hMailServer configuration
|
||||
// true: HMailserver is on a remote box (php.ini: com.allow_dcom = true)
|
||||
// false: Hmailserver is on same box as PHP
|
||||
$config['hmailserver_remote_dcom'] = false;
|
||||
// Windows credentials
|
||||
$config['hmailserver_server'] = array(
|
||||
'Server' => 'localhost', // hostname or ip address
|
||||
'Username' => 'administrator', // windows username
|
||||
'Password' => 'password' // windows user password
|
||||
);
|
||||
|
||||
|
||||
// Virtualmin Driver options
|
||||
// -------------------------
|
||||
// Username format:
|
||||
// 0: username@domain
|
||||
// 1: username%domain
|
||||
// 2: username.domain
|
||||
// 3: domain.username
|
||||
// 4: username-domain
|
||||
// 5: domain-username
|
||||
// 6: username_domain
|
||||
// 7: domain_username
|
||||
$config['password_virtualmin_format'] = 0;
|
||||
|
||||
|
||||
// pw_usermod Driver options
|
||||
// --------------------------
|
||||
// Use comma delimited exlist to disable password change for users
|
||||
// Add the following line to visudo to tighten security:
|
||||
// www ALL=NOPASSWORD: /usr/sbin/pw
|
||||
$config['password_pw_usermod_cmd'] = 'sudo /usr/sbin/pw usermod -h 0 -n';
|
||||
|
||||
|
||||
// DBMail Driver options
|
||||
// -------------------
|
||||
// Additional arguments for the dbmail-users call
|
||||
$config['password_dbmail_args'] = '-p sha512';
|
||||
|
||||
|
||||
// Expect Driver options
|
||||
// ---------------------
|
||||
// Location of expect binary
|
||||
$config['password_expect_bin'] = '/usr/bin/expect';
|
||||
|
||||
// Location of expect script (see helpers/passwd-expect)
|
||||
$config['password_expect_script'] = '';
|
||||
|
||||
// Arguments for the expect script. See the helpers/passwd-expect file for details.
|
||||
// This is probably a good starting default:
|
||||
// -telent -host localhost -output /tmp/passwd.log -log /tmp/passwd.log
|
||||
$config['password_expect_params'] = '';
|
||||
|
||||
|
||||
// smb Driver options
|
||||
// ---------------------
|
||||
// Samba host (default: localhost)
|
||||
// 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)
|
||||
$config['password_smb_host'] = 'localhost';
|
||||
// Location of smbpasswd binary
|
||||
$config['password_smb_cmd'] = '/usr/bin/smbpasswd';
|
||||
|
||||
// gearman driver options
|
||||
// ---------------------
|
||||
// Gearman host (default: localhost)
|
||||
$config['password_gearman_host'] = 'localhost';
|
||||
|
||||
|
||||
|
||||
// Plesk/PPA Driver options
|
||||
// --------------------
|
||||
// You need to allow RCP for IP of roundcube-server in Plesk/PPA Panel
|
||||
|
||||
// Plesk RCP Host
|
||||
$config['password_plesk_host'] = '10.0.0.5';
|
||||
|
||||
// Plesk RPC Username
|
||||
$config['password_plesk_user'] = 'admin';
|
||||
|
||||
// Plesk RPC Password
|
||||
$config['password_plesk_pass'] = 'password';
|
||||
|
||||
// Plesk RPC Port
|
||||
$config['password_plesk_rpc_port'] = '8443';
|
||||
|
||||
// Plesk RPC Path
|
||||
$config['password_plesk_rpc_path'] = 'enterprise/control/agent.php';
|
|
@ -39,7 +39,7 @@ then
|
|||
. /etc/alternc/local.sh
|
||||
# Configuration template location
|
||||
TEMPLATE_DIR="/etc/alternc/templates"
|
||||
CONFIG_FILES="etc/roundcube/main.inc.php etc/roundcube/plugins/password/config.inc.php etc/roundcube/plugins/managesieve/config.inc.php"
|
||||
CONFIG_FILES="etc/roundcube/main.inc.php etc/roundcube/plugins/password/config.inc.php"
|
||||
|
||||
cat > $SED_SCRIPT <<EOF
|
||||
s\\%%ALTERNC_LOC%%\\$ALTERNC_LOC\\;
|
||||
|
|
|
@ -1,76 +0,0 @@
|
|||
<?php
|
||||
|
||||
/***********************************************************************/
|
||||
// Configuration file of managesieve's plugin of Roundcube for AlternC //
|
||||
// //
|
||||
// /!\ WARNING /!\ Do not edit this file, edit the one in //
|
||||
// /etc/alternc/templates/roundcube/plugins/managesieve/ //
|
||||
// and launch alternc.install again. //
|
||||
// //
|
||||
/***********************************************************************/
|
||||
|
||||
// managesieve server port
|
||||
$rcmail_config['managesieve_port'] = 4190;
|
||||
|
||||
// managesieve server address, default is localhost.
|
||||
// Replacement variables supported in host name:
|
||||
// %h - user's IMAP hostname
|
||||
// %n - http hostname ($_SERVER['SERVER_NAME'])
|
||||
// %d - domain (http hostname without the first part)
|
||||
// For example %n = mail.domain.tld, %d = domain.tld
|
||||
$rcmail_config['managesieve_host'] = 'localhost';
|
||||
|
||||
// authentication method. Can be CRAM-MD5, DIGEST-MD5, PLAIN, LOGIN, EXTERNAL
|
||||
// or none. Optional, defaults to best method supported by server.
|
||||
$rcmail_config['managesieve_auth_type'] = null;
|
||||
|
||||
// Optional managesieve authentication identifier to be used as authorization proxy.
|
||||
// Authenticate as a different user but act on behalf of the logged in user.
|
||||
// Works with PLAIN and DIGEST-MD5 auth.
|
||||
$rcmail_config['managesieve_auth_cid'] = null;
|
||||
|
||||
// Optional managesieve authentication password to be used for imap_auth_cid
|
||||
$rcmail_config['managesieve_auth_pw'] = null;
|
||||
|
||||
// use or not TLS for managesieve server connection
|
||||
// it's because I've problems with TLS and dovecot's managesieve plugin
|
||||
// and it's not needed on localhost
|
||||
$rcmail_config['managesieve_usetls'] = false;
|
||||
|
||||
// default contents of filters script (eg. default spam filter)
|
||||
$rcmail_config['managesieve_default'] = '/etc/dovecot/sieve/global';
|
||||
|
||||
// The name of the script which will be used when there's no user script
|
||||
$rcmail_config['managesieve_script_name'] = 'managesieve';
|
||||
|
||||
// Sieve RFC says that we should use UTF-8 endcoding for mailbox names,
|
||||
// but some implementations does not covert UTF-8 to modified UTF-7.
|
||||
// Defaults to UTF7-IMAP
|
||||
$rcmail_config['managesieve_mbox_encoding'] = 'UTF-8';
|
||||
|
||||
// I need this because my dovecot (with listescape plugin) uses
|
||||
// ':' delimiter, but creates folders with dot delimiter
|
||||
$rcmail_config['managesieve_replace_delimiter'] = '';
|
||||
|
||||
// disabled sieve extensions (body, copy, date, editheader, encoded-character,
|
||||
// envelope, environment, ereject, fileinto, ihave, imap4flags, index,
|
||||
// mailbox, mboxmetadata, regex, reject, relational, servermetadata,
|
||||
// spamtest, spamtestplus, subaddress, vacation, variables, virustest, etc.
|
||||
// Note: not all extensions are implemented
|
||||
$rcmail_config['managesieve_disabled_extensions'] = array();
|
||||
|
||||
// Enables debugging of conversation with sieve server. Logs it into <log_dir>/sieve
|
||||
$rcmail_config['managesieve_debug'] = false;
|
||||
|
||||
// Enables features described in http://wiki.kolab.org/KEP:14
|
||||
$rcmail_config['managesieve_kolab_master'] = false;
|
||||
|
||||
// Script name extension used for scripts including. Dovecot uses '.sieve',
|
||||
// Cyrus uses '.siv'. Doesn't matter if you have managesieve_kolab_master disabled.
|
||||
$rcmail_config['managesieve_filename_extension'] = '.sieve';
|
||||
|
||||
// List of reserved script names (without extension).
|
||||
// Scripts listed here will be not presented to the user.
|
||||
$rcmail_config['managesieve_filename_exceptions'] = array();
|
||||
|
||||
?>
|
Loading…
Reference in New Issue