Webmail: Unterschied zwischen den Versionen
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 25: | Zeile 25: | ||
sudo pear install Mail_mime | sudo pear install Mail_mime | ||
sudo pear install Mail_mimeDecode | 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 | sudo pear install Net_LDAP3 | ||
</pre> | </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 34: | 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 100: | Zeile 113: | ||
$config['enable_installer'] = true; | $config['enable_installer'] = true; | ||
$config['db_dsnw'] = 'mysql://roundcube:<password>@10.0.0.120/roundcubemail'; | $config['db_dsnw'] = 'mysql://roundcube:<password>@10.0.0.120/roundcubemail'; | ||
$config['default_host'] = ' | $config['default_host'] = '%t'; | ||
$config['smtp_server'] = 'tls://mail.%s'; | //$config['smtp_server'] = 'tls://mail.%s'; | ||
$config['smtp_server'] = 'tls://127.0.0.1'; | |||
$config['smtp_port'] = 587; | $config['smtp_port'] = 587; | ||
$config['smtp_user'] = '%u'; | $config['smtp_user'] = '%u'; | ||
Zeile 111: | Zeile 125: | ||
'archive', | 'archive', | ||
'zipdownload', | 'zipdownload', | ||
'managesieve', | |||
'carddav', | |||
); | ); | ||
$config['skin'] = 'larry'; | $config['skin'] = 'larry'; | ||
$config['username_domain'] = '%t'; | |||
</pre> | </pre> | ||
Zeile 130: | Zeile 147: | ||
ändern. | ändern. | ||
====== /var/www/roundcube/vendor does not exist and could not be created. ====== | |||
<pre> | |||
sudo chmod -R g+w roundcube | |||
</pre> | |||
==== apache2/php.ini ==== | ==== apache2/php.ini ==== | ||
Zeile 152: | Zeile 175: | ||
[https://plugins.roundcube.net/ https://plugins.roundcube.net/] | [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]] | 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
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
Zurück zu Mailserver einrichten