Webmail: Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
 
(28 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 4: Zeile 4:


<pre>
<pre>
weget https://downloads.sourceforge.net/project/roundcubemail/roundcubemail/1.1.4/roundcubemail-1.1.4.tar.gz
wget https://downloads.sourceforge.net/project/roundcubemail/roundcubemail/1.1.4/roundcubemail-1.1.4.tar.gz
</pre>
</pre>


Zeile 19: Zeile 19:
Folgende php-Skripte sind erforderlich (falls noch nicht installiert):
Folgende php-Skripte sind erforderlich (falls noch nicht installiert):
<pre>
<pre>
sudo apt-get install php5 php-pear php5-mysql php5-mcrypt php5-intl
sudo apt-get install php5 php-pear php5-mysql php5-mcrypt php5-intl php5-ldap
sudo pear install Auth_SASL
sudo pear install Auth_SASL
sudo pear install Net_SMTP
sudo pear install Net_SMTP
Zeile 27: Zeile 27:
</pre>
</pre>


{{note|Folgendes Paket existiert noch nicht in den aktuellen Quellen - momentan nicht installiert}}
<pre>
sudo pear install Net_LDAP3
</pre>
{{note|Für Net_IDNA2 gibt es noch keine stabile Version - muss mit Version runtergeladen werden}}
<pre>
<pre>
Failed to download pear/Net_IDNA2 within preferred state "stable", latest release is version 0.1.1, stability "beta", use "channel://pear.php.net/Net_IDNA2-0.1.1" to install
Failed to download pear/Net_IDNA2 within preferred state "stable", latest release is version 0.1.1, stability "beta", use "channel://pear.php.net/Net_IDNA2-0.1.1" to install
Zeile 33: Zeile 39:
<pre>
<pre>
sudo pear install Net_IDNA2-0.1.1
sudo pear install Net_IDNA2-0.1.1
</pre>
===== Composer =====
<pre>
cd /var/www/roundcube
sudo -u www-data composer.json-dist composer.json
composer install --no-dev
</pre>
</pre>


Zeile 41: Zeile 55:
mysql> CREATE DATABASE roundcubemail;  
mysql> CREATE DATABASE roundcubemail;  
mysql> create user 'roundcube'@'%' identified by '<password>';
mysql> create user 'roundcube'@'%' identified by '<password>';
mysql> grant usage on *.* to 'roundcube'@'%' identified by '<password>';  
mysql> create user 'roundcube'@'localhost' identified by '<password>';
mysql> grant all privileges on roundcubemail.* to 'roundcube'@'%';
mysql> grant all privileges on roundcubemail.* to 'roundcube'@'%';
mysql> grant all privileges on roundcubemail.* to 'roundcube'@'localhost';
mysql> flush privileges;  
mysql> flush privileges;  
mysql> quit;
mysql> quit;
Zeile 58: Zeile 73:
<pre>
<pre>
cd /etc/apache2/conf-available/
cd /etc/apache2/conf-available/
sudo touch roundcube.conf
sudo nano roundcube.conf
</pre>
</pre>


Zeile 91: Zeile 106:
</pre>
</pre>


Die Parameter folgendermaßen anpassen:
<pre>
<pre>
<?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) 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 = array();


$config['enable_installer'] = true;
$config['enable_installer'] = true;
$config['db_dsnw'] = 'mysql://roundcube:<password>@10.0.0.120/roundcubemail';
$config['default_host'] = '%t';
//$config['smtp_server'] = 'tls://mail.%s';
$config['smtp_server'] = 'tls://127.0.0.1';
$config['smtp_port'] = 587;
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
$config['support_url'] = '';
$config['product_name'] = 'Webmail';
$config['des_key'] = '<24 bith length key>';
$config['plugins'] = array(
    'archive',
    'zipdownload',
    'managesieve',
    'carddav',
);
$config['skin'] = 'larry';
$config['username_domain'] = '%t';
</pre>


// Database connection string (DSN) for read+write operations
===== Probleme =====
// 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.
====== SMTP send: NOT OK(Authentication failure: SMTP server does not support authentication (Code: )) ======
// 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).
Folgende Zeile
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
<pre>
// 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';
$config['smtp_server'] = 'tls://mail.%s';
</pre>


// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
auf
// deprecated SSL over SMTP (aka SMTPS))
<pre>
$config['smtp_port'] = 587;
$config['smtp_server'] = 'tls://127.0.0.1';
</pre>


// SMTP username (if required) if you use %u as the username Roundcube
ändern.
// will use the current username for login
$config['smtp_user'] = '%u';


// SMTP password (if required) if you use %p as the password Roundcube
====== /var/www/roundcube/vendor does not exist and could not be created. ======
// 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
<pre>
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
sudo chmod -R g+w roundcube
$config['support_url'] = '';
</pre>


// Name your service. This is displayed on the login screen and in the window title
==== apache2/php.ini ====
$config['product_name'] = 'Webmail';


// this key is used to encrypt the users imap password which is stored
<pre>
// in the session record (and the client cookie if remember password is enabled).
sudo nano /etc/php5/apache2/php.ini
// please provide a string of exactly 24 chars.
</pre>
// 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)
Folgende Zeile anpassen:
$config['plugins'] = array(
<pre>
    'archive',
date.timezone = 'UTC'
    'zipdownload',
</pre>
);


// skin name: folder from skins/
=== Plugins ===
$config['skin'] = 'larry';
[[Plugins Roundcube]]
</pre>


== Links ==
=== Links ===


[https://roundcube.net/download/ https://roundcube.net/download/]
[https://roundcube.net/download/ https://roundcube.net/download/]


[http://trac.roundcube.net/wiki http://trac.roundcube.net/wiki]
[http://trac.roundcube.net/wiki http://trac.roundcube.net/wiki]
[https://plugins.roundcube.net/ https://plugins.roundcube.net/]
== Horde ==
=== Links ===
[https://www.horde.org/apps/webmail https://www.horde.org/apps/webmail]
== Open WebMail ==
=== Links ===
[http://openwebmail.org/ http://openwebmail.org/]
Zurück zu [[Mailserver einrichten]]

Aktuelle Version vom 15. September 2016, 10:11 Uhr

Roundcube

Download

wget 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 php5-ldap
sudo pear install Auth_SASL
sudo pear install Net_SMTP
sudo pear install Net_IDNA2
sudo pear install Mail_mime
sudo pear install Mail_mimeDecode

Folgendes Paket existiert noch nicht in den aktuellen Quellen - momentan nicht installiert

sudo pear install Net_LDAP3

Für Net_IDNA2 gibt es noch keine stabile Version - muss mit Version runtergeladen werden

Failed to download pear/Net_IDNA2 within preferred state "stable", latest release is version 0.1.1, stability "beta", use "channel://pear.php.net/Net_IDNA2-0.1.1" to install
sudo pear install Net_IDNA2-0.1.1
Composer
cd /var/www/roundcube
sudo -u www-data composer.json-dist composer.json 
composer install --no-dev

Datenbank erstellen

mysql -u root -p
mysql> CREATE DATABASE roundcubemail; 
mysql> create user 'roundcube'@'%' identified by '<password>';
mysql> create user 'roundcube'@'localhost' identified by '<password>';
mysql> grant all privileges on roundcubemail.* to 'roundcube'@'%';
mysql> grant all privileges on roundcubemail.* to 'roundcube'@'localhost';
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 nano 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

Die Parameter folgendermaßen anpassen:

<?php
$config = array();

$config['enable_installer'] = true;
$config['db_dsnw'] = 'mysql://roundcube:<password>@10.0.0.120/roundcubemail';
$config['default_host'] = '%t';
//$config['smtp_server'] = 'tls://mail.%s';
$config['smtp_server'] = 'tls://127.0.0.1';
$config['smtp_port'] = 587;
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
$config['support_url'] = '';
$config['product_name'] = 'Webmail';
$config['des_key'] = '<24 bith length key>';
$config['plugins'] = array(
    'archive',
    'zipdownload',
    'managesieve',
    'carddav',
);
$config['skin'] = 'larry';
$config['username_domain'] = '%t';
Probleme
SMTP send: NOT OK(Authentication failure: SMTP server does not support authentication (Code: ))

Folgende Zeile

$config['smtp_server'] = 'tls://mail.%s';

auf

$config['smtp_server'] = 'tls://127.0.0.1';

ändern.

/var/www/roundcube/vendor does not exist and could not be created.
sudo chmod -R g+w roundcube

apache2/php.ini

sudo nano /etc/php5/apache2/php.ini

Folgende Zeile anpassen:

date.timezone = 'UTC'

Plugins

Plugins Roundcube

Links

https://roundcube.net/download/

http://trac.roundcube.net/wiki

https://plugins.roundcube.net/

Horde

Links

https://www.horde.org/apps/webmail

Open WebMail

Links

http://openwebmail.org/


Zurück zu Mailserver einrichten