Horde (Ubuntu 16.04): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(30 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 3: | Zeile 3: | ||
== Installation == | == Installation == | ||
=== Diverses === | |||
<pre> | |||
sudo apt-get install libpam0g-dev libpam-runtime libpam-modules libpam-modules-bin libpam-doc \ | |||
libpam-cracklib libpam0g | |||
</pre> | |||
<pre> | |||
sudo apt-get install libicu-dev | |||
</pre> | |||
=== PHP === | |||
<pre> | |||
sudo apt-get install php-pear php-apcu php7.0-intl php7.0-dev | |||
</pre> | |||
=== PEAR packages === | === PEAR packages === | ||
Zeile 18: | Zeile 35: | ||
<pre> | <pre> | ||
sudo mkdir /var/www/ | sudo mkdir /var/www/horde | ||
sudo pear config-create /var/www/ | sudo chown -R www-data:www-data /var/www/horde | ||
sudo pear -c /var/www/ | 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 | |||
</pre> | |||
<pre> | |||
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 | |||
</pre> | |||
=== Datenbank erstellen === | |||
<pre> | |||
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; | |||
</pre> | |||
=== Installation abschließen === | |||
<pre> | |||
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 | |||
</pre> | </pre> | ||
Zeile 26: | Zeile 72: | ||
[https://www.horde.org/apps/webmail/docs/INSTALL https://www.horde.org/apps/webmail/docs/INSTALL] | [https://www.horde.org/apps/webmail/docs/INSTALL https://www.horde.org/apps/webmail/docs/INSTALL] | ||
[http://pear.horde.org/ http://pear.horde.org/] | |||
== Konfiguration == | == Konfiguration == | ||
Zeile 33: | Zeile 81: | ||
<pre> | <pre> | ||
cd /etc/apache2/sites-available/ | cd /etc/apache2/sites-available/ | ||
sudo vi | sudo vi horde.conf | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
<VirtualHost *:80> | <VirtualHost *:80> | ||
ServerName | ServerName horde.kirner.or.at | ||
Redirect / https://horde.kirner.or.at | |||
Redirect / https:// | |||
</VirtualHost> | </VirtualHost> | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
sudo vi | sudo vi horde-ssl.conf | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
<VirtualHost *:443> | <VirtualHost *:443> | ||
ServerName | ServerName horde.kirner.or.at | ||
SSLEngine on | SSLEngine on | ||
SSLCertificateFile /etc/ssl/certs/ | SSLCertificateFile /etc/ssl/certs/horde.crt | ||
SSLCertificateKeyFile /etc/ssl/private/apache.key | SSLCertificateKeyFile /etc/ssl/private/apache.key | ||
Zeile 62: | Zeile 108: | ||
KeepAlive On | KeepAlive On | ||
KeepAliveTimeout 5 | KeepAliveTimeout 5 | ||
php_value include_path /var/www/horde/pear/php | |||
SetEnv PHP_PEAR_SYSCONF_DIR /var/www/horde | |||
<Directory /var/www/horde/> | <Directory /var/www/horde/> | ||
Zeile 68: | Zeile 117: | ||
</Directory> | </Directory> | ||
ErrorLog ${APACHE_LOG_DIR}/ | ErrorLog ${APACHE_LOG_DIR}/horde.kirner.or.at-error.log | ||
CustomLog ${APACHE_LOG_DIR}/ | CustomLog ${APACHE_LOG_DIR}/horde.kirner.or.at-access.log combined | ||
</VirtualHost> | </VirtualHost> | ||
</pre> | |||
<pre> | |||
sudo a2ensite horde | |||
sudo a2ensite horde-ssl | |||
sudo service apache2 reload | |||
</pre> | </pre> | ||
== Verwndung == | |||
=== Filter === | |||
==== Links ==== | |||
[https://skrilnetz.net/server-side-mail-filtering-with-horde-ingo-and-sieve/ https://skrilnetz.net/server-side-mail-filtering-with-horde-ingo-and-sieve/] | |||
== Links == | == Links == |
Aktuelle Version vom 10. März 2018, 15:46 Uhr
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
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
Verwndung
Filter
Links
https://skrilnetz.net/server-side-mail-filtering-with-horde-ingo-and-sieve/
Links
https://www.horde.org/apps/webmail
https://kyup.com/tutorials/install-horde/
Zurück zu Mailserver einrichten