Webmail: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 76: | Zeile 76: | ||
cd /var/www/roundcube/config/ | cd /var/www/roundcube/config/ | ||
sudo cp -p config.inc.php.sample config.inc.php | sudo cp -p config.inc.php.sample config.inc.php | ||
</pre> | |||
<pre> | |||
/* | |||
+-----------------------------------------------------------------------+ | |||
| 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(); | |||
$config['enable_installer'] = true; | |||
// 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 or sqlsrv | |||
// For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php | |||
// NOTE: for SQLite use absolute path: 'sqlite:////full/path/to/sqlite.db?mode=0646' | |||
$config['db_dsnw'] = 'mysql:roundcube:<password>@10.0.0.120/roundcubemail'; | |||
// 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'] = 'tls://mail.%s'; | |||
// SMTP port (default is 25; use 587 for STARTTLS or 465 for the | |||
// deprecated SSL over SMTP (aka SMTPS)) | |||
$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'; | |||
// 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'] = 'Webmail mail.kirner.or.at'; | |||
// 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'] = 'rcmail-!24ByteDESkey*Str'; | |||
// List of active plugins (in plugins/ directory) | |||
$config['plugins'] = array( | |||
'archive', | |||
'zipdownload', | |||
); | |||
// skin name: folder from skins/ | |||
$config['skin'] = 'larry'; | |||
</pre> | </pre> | ||
Version vom 20. März 2016, 19:21 Uhr
Roundcube
Download
weget https://downloads.sourceforge.net/project/roundcubemail/roundcubemail/1.1.4/roundcubemail-1.1.4.tar.gz
Installation
Package installieren
sudo tar xzvf roundcubemail-* sudo mv roundcubemail-1.1.4 /var/www/roundcube sudo chown -R www-data:www-data /var/www/roundcube
Folgende php-Skripte sind erforderlich (falls noch nicht installiert):
sudo apt-get install php5 php-pear php5-mysql php5-mcrypt php5-intl
Datenbank erstellen
mysql -u root -p mysql> CREATE DATABASE roundcubemail; mysql> create user 'roundcube'@'%' identified by '<password>'; mysql> grant usage on *.* to 'roundcube'@'%' identified by '<password>'; mysql> grant all privileges on roundcubemail.* to 'roundcube'@'%'; mysql> flush privileges; mysql> quit;
Zertifikat erstellen
Siehe dazu SSL Zertifikat
Konfiguration
Apache
Konfigurationsdatei erstellen, um roundcube lokal über die IP-Adresse (z.B.: http://10.0.0.120/roundcube/) zu erreichen:
cd /etc/apache2/conf-available/ sudo touch roundcube.conf
Folgenden Inhalt in die neu erstellte Datei /etc/apache2/conf-available/roundcube.conf schreiben:
Alias /roundcube "/var/www/roundcube/"
<Directory "/var/www/roundcube">
Options +FollowSymLinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/roundcube
SetEnv HTTP_HOME /var/www/roundcube
</Directory>
Apache-Konfigurationsdateien neu einlesen:
sudo a2enconf roundcube.conf sudo service apache2 reload
config.inc.php
Konfigurationsdatei /var/www/roundcube/config/config.inc.php erstellen:
cd /var/www/roundcube/config/ sudo cp -p config.inc.php.sample config.inc.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();
$config['enable_installer'] = true;
// 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 or sqlsrv
// For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
// NOTE: for SQLite use absolute path: 'sqlite:////full/path/to/sqlite.db?mode=0646'
$config['db_dsnw'] = 'mysql:roundcube:<password>@10.0.0.120/roundcubemail';
// 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'] = 'tls://mail.%s';
// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
// deprecated SSL over SMTP (aka SMTPS))
$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';
// 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'] = 'Webmail mail.kirner.or.at';
// 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'] = 'rcmail-!24ByteDESkey*Str';
// List of active plugins (in plugins/ directory)
$config['plugins'] = array(
'archive',
'zipdownload',
);
// skin name: folder from skins/
$config['skin'] = 'larry';