Webmail: Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 119: Zeile 119:
<pre>
<pre>
sudo nano /etc/php5/apache2/php.ini
sudo nano /etc/php5/apache2/php.ini
</pre>
Folgende Zeile anpassen:
<pre>
date.timezone = 'UTC'
</pre>
</pre>



Version vom 8. Juli 2016, 17:55 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
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
sudo pear install Net_LDAP3
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

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'] = 'localhost';
$config['smtp_server'] = 'tls://mail.%s';
$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',
);
$config['skin'] = 'larry';

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/


Zurück zu Mailserver einrichten