Webmail: Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „== Roundcube == == Links == [http://www.pcwelt.de/ratgeber/Roundcube-Der-eigene-Webmailer-9803660.html http://www.pcwelt.de/ratgeber/Roundcube-Der-eigene-Web…“)
 
 
(48 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
== Roundcube ==
== Roundcube ==


== Links ==
=== Download ===


[http://www.pcwelt.de/ratgeber/Roundcube-Der-eigene-Webmailer-9803660.html http://www.pcwelt.de/ratgeber/Roundcube-Der-eigene-Webmailer-9803660.html]
<pre>
wget https://downloads.sourceforge.net/project/roundcubemail/roundcubemail/1.1.4/roundcubemail-1.1.4.tar.gz
</pre>
 
=== Installation ===
 
==== Package installieren ====
 
<pre>
sudo tar xzvf roundcubemail-*
sudo mv roundcubemail-1.1.4 /var/www/roundcube
sudo chown -R www-data:www-data /var/www/roundcube 
</pre>
 
Folgende php-Skripte sind erforderlich (falls noch nicht installiert):
<pre>
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
</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>
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
</pre>
 
<pre>
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>
 
==== Datenbank erstellen ====
 
<pre>
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;
</pre>
 
==== 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:
<pre>
cd /etc/apache2/conf-available/
sudo nano roundcube.conf
</pre>
 
Folgenden Inhalt in die neu erstellte Datei ''/etc/apache2/conf-available/roundcube.conf'' schreiben:
<pre>
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>
</pre>
 
Apache-Konfigurationsdateien neu einlesen:
<pre>
sudo a2enconf roundcube.conf
sudo service apache2 reload
</pre>
 
==== config.inc.php ====
 
Konfigurationsdatei ''/var/www/roundcube/config/config.inc.php'' erstellen:
<pre>
cd /var/www/roundcube/config/
sudo cp -p config.inc.php.sample config.inc.php
</pre>
 
Die Parameter folgendermaßen anpassen:
<pre>
<?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';
</pre>
 
===== Probleme =====
 
====== SMTP send:  NOT OK(Authentication failure: SMTP server does not support authentication (Code: )) ======
 
Folgende Zeile
<pre>
$config['smtp_server'] = 'tls://mail.%s';
</pre>
 
auf
<pre>
$config['smtp_server'] = 'tls://127.0.0.1';
</pre>
 
ändern.
 
====== /var/www/roundcube/vendor does not exist and could not be created. ======
 
<pre>
sudo chmod -R g+w roundcube
</pre>
 
==== apache2/php.ini ====
 
<pre>
sudo nano /etc/php5/apache2/php.ini
</pre>
 
Folgende Zeile anpassen:
<pre>
date.timezone = 'UTC'
</pre>
 
=== Plugins ===
[[Plugins Roundcube]]
 
=== Links ===
 
[https://roundcube.net/download/ https://roundcube.net/download/]
 
[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, 11: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