Webmail: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 93: | Zeile 93: | ||
<pre> | <pre> | ||
<?php | <?php | ||
$config = array(); | $config = array(); | ||
$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'] = 'localhost'; | $config['default_host'] = 'localhost'; | ||
$config['smtp_server'] = 'tls://mail.%s'; | $config['smtp_server'] = 'tls://mail.%s'; | ||
$config['smtp_port'] = 587; | $config['smtp_port'] = 587; | ||
$config['smtp_user'] = '%u'; | $config['smtp_user'] = '%u'; | ||
$config['smtp_pass'] = '%p'; | $config['smtp_pass'] = '%p'; | ||
$config['support_url'] = ''; | $config['support_url'] = ''; | ||
$config['product_name'] = 'Webmail'; | $config['product_name'] = 'Webmail'; | ||
$config['des_key'] = 'rcmail-!24ByteDESkey*Str'; | $config['des_key'] = 'rcmail-!24ByteDESkey*Str'; | ||
$config['plugins'] = array( | $config['plugins'] = array( | ||
'archive', | 'archive', | ||
'zipdownload', | 'zipdownload', | ||
); | ); | ||
$config['skin'] = 'larry'; | $config['skin'] = 'larry'; | ||
</pre> | </pre> |
Version vom 2. April 2016, 11:06 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 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
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> 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
<?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'] = 'rcmail-!24ByteDESkey*Str'; $config['plugins'] = array( 'archive', 'zipdownload', ); $config['skin'] = 'larry';
Plugins
Links
https://roundcube.net/download/
http://trac.roundcube.net/wiki
https://plugins.roundcube.net/
Zurück zu Mailserver einrichten