Horde (Ubuntu 16.04)

Aus Tutorials
Zur Navigation springen Zur Suche springen

Noch in Bearbeitung


Installation

Diverses

sudo apt-get install libpam0g-dev libpam-runtime libpam-modules libpam-modules-bin libpam-doc \
libpam-cracklib libpam0g
sudo apt-get install libicu-dev

PHP

sudo apt-get install php-pear php-apcu php7.0-intl php7.0-dev  

PEAR packages

sudo pear install Date
sudo pear install Net_DNS2
sudo pear install Services_Weather
sudo pear install File_Fstab
sudo pear install Date_Holidays-alpha#all
sudo pear install Net_Sieve

Webmail

sudo mkdir /var/www/horde
sudo chown -R www-data:www-data /var/www/horde
sudo -u www-data pear config-create /var/www/horde /var/www/horde/pear.conf
sudo -u www-data pear -c /var/www/horde/pear.conf install pear
sudo -u www-data /var/www/horde/pear/pear -c /var/www/horde/pear.conf channel-discover pear.horde.org
sudo -u www-data /var/www/horde/pear/pear -c /var/www/horde/pear.conf install horde/horde_role
sudo -u www-data /var/www/horde/pear/pear -c /var/www/horde/pear.conf run-scripts horde/horde_role
sudo -u www-data /var/www/horde/pear/pear -c /var/www/horde/pear.conf install horde/webmail

Datenbank erstellen

mysql -u root -p
mysql> CREATE DATABASE hordemail; 
mysql> create user 'horde'@'%' identified by '<password>';
mysql> create user 'horde'@'localhost' identified by '<password>';
mysql> grant all privileges on hordemail.* to 'horde'@'%';
mysql> grant all privileges on hordemail.* to 'horde'@'localhost';
mysql> flush privileges; 
mysql> quit;

Installation abschließen

sudo -u www-data PHP_PEAR_SYSCONF_DIR=/var/www/horde php \
-d include_path=/var/www/horde/pear/php\
/var/www/horde/pear/webmail-install

Links

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

http://pear.horde.org/

Konfiguration

Erstellung eines SSL-Zertifikates siehe SSL_Zertifikat

cd /etc/apache2/sites-available/
sudo vi horde.conf
<VirtualHost *:80>
        ServerName horde.kirner.or.at
        Redirect / https://horde.kirner.or.at
</VirtualHost>
sudo vi horde-ssl.conf
<VirtualHost *:443>
    ServerName horde.kirner.or.at

    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/horde.crt
    SSLCertificateKeyFile /etc/ssl/private/apache.key

    # Pfad zu den Webinhalten
    DocumentRoot /var/www/horde

    KeepAlive On
    KeepAliveTimeout 5

    php_value include_path /var/www/horde/pear/php
    SetEnv PHP_PEAR_SYSCONF_DIR /var/www/horde

    <Directory /var/www/horde/> 
        Options +FollowSymlinks 
        AllowOverride All 
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/horde.kirner.or.at-error.log
    CustomLog ${APACHE_LOG_DIR}/horde.kirner.or.at-access.log combined
</VirtualHost>
sudo a2ensite horde
sudo a2ensite horde-ssl
sudo service apache2 reload

Links

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

https://wiki.horde.org/

https://kyup.com/tutorials/install-horde/


Zurück zu Mailserver einrichten