Roundcube Installation: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| (21 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
= Roundcube Webmail unter Debian 12 installieren = | = Roundcube Webmail unter Debian 12 installieren = | ||
| + | *apt install php php-cli php-common php-curl php-gd php-intl php-mbstring php-mysql php-xml php-zip php-imagick php-apcu libapache2-mod-php unzip php-imap mariadb-server mariadb-client | ||
| + | |||
| + | |||
| + | |||
| + | == Einführung == | ||
| + | Roundcube ist ein webbasiertes E-Mail-Client-Programm, das es ermöglicht, E-Mails von IMAP-Servern wie web.de, GMX oder Gmail direkt über den Browser abzurufen. Diese Anleitung beschreibt die Installation von Roundcube auf Debian 12. | ||
== Voraussetzungen == | == Voraussetzungen == | ||
| Zeile 7: | Zeile 13: | ||
* '''Let's Encrypt''' oder ein anderes SSL-Zertifikat für HTTPS | * '''Let's Encrypt''' oder ein anderes SSL-Zertifikat für HTTPS | ||
| − | + | = Dateien herunterladen = | |
| − | + | == In das temporäre Verzeichnis wechseln == | |
| − | + | * cd /tmp | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | == | + | == Die aktuelle Version von Roundcube herunterladen == |
| − | + | Die aktuelle Version ist unter https://github.com/roundcube/roundcubemail/releases verfügbar. | |
| − | * | + | * wget https://github.com/roundcube/roundcubemail/releases/download/1.6.10/roundcubemail-1.6.10-complete.tar.gz |
| + | == Archiv entpacken und bereinigen == | ||
| + | * tar -xzvf roundcubemail-1.6.*-complete.tar.gz | ||
| + | * rm roundcubemail-1.6.*-complete.tar.gz | ||
| + | |||
| + | == Dateien ins Webserver-Verzeichnis verschieben == | ||
| + | * mv roundcubemail-1.6.* /var/www/roundcube | ||
| + | |||
| + | = Apache-Konfiguration erstellen = | ||
| + | == Virtuelle Host-Datei erstellen == | ||
| + | *vi /etc/apache2/sites-available/roundcube.conf | ||
<pre> | <pre> | ||
<VirtualHost *:80> | <VirtualHost *:80> | ||
| − | + | ServerName mail.it113.int | |
| − | + | Redirect permanent / https://mail.it113.int/ | |
| − | + | </VirtualHost> | |
| − | + | ||
| + | <VirtualHost *:443> | ||
| + | ServerName mail.it113.int | ||
| + | SSLEngine on | ||
| + | SSLCertificateFile /etc/apache2/ssl/mail.it113.int.crt | ||
| + | SSLCertificateKeyFile /etc/apache2/ssl/mail.it113.int.key | ||
| + | ServerAdmin technik@it113.int | ||
| + | DocumentRoot /var/www/roundcube/ | ||
<Directory /var/www/roundcube/> | <Directory /var/www/roundcube/> | ||
Options +FollowSymlinks | Options +FollowSymlinks | ||
| Zeile 42: | Zeile 54: | ||
SetEnv HTTP_HOME /var/www/roundcube | SetEnv HTTP_HOME /var/www/roundcube | ||
</Directory> | </Directory> | ||
| − | + | ErrorLog ${APACHE_LOG_DIR}/mail-error.log | |
| − | + | CustomLog ${APACHE_LOG_DIR}/mail-access.log combined | |
</VirtualHost> | </VirtualHost> | ||
| + | |||
</pre> | </pre> | ||
| − | + | == Konfiguration aktivieren und Apache neu starten == | |
| − | + | * a2ensite roundcube.conf | |
| − | + | * systemctl restart apache2 | |
| − | + | = Datenbank einrichten = | |
| − | + | == MariaDB starten == | |
| − | + | * mysql -u root -p | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | == | + | == Datenbank und Benutzer erstellen == |
| − | * | + | * CREATE DATABASE roundcubemail; |
| − | ** | + | * CREATE USER 'roundcube'@'localhost' IDENTIFIED BY '123Start$'; |
| − | ** | + | * GRANT ALL PRIVILEGES ON roundcubemail.* TO 'roundcube'@'localhost'; |
| + | * FLUSH PRIVILEGES; | ||
| + | * EXIT; | ||
| − | = | + | = Berechtigungen setzen = |
| − | * | + | * chown -R www-data:www-data /var/www/roundcube/ |
| − | + | * chmod -R 750 /var/www/roundcube/ | |
| − | + | ||
| − | * | + | |
| − | + | == Installer aufrufen == | |
| − | + | *https://mail.it113.int/installer | |
| − | + | ||
| − | + | == Konfigurationsdateien absichern == | |
| − | + | * chmod 640 /var/www/roundcube/config/config.inc.php | |
| − | + | * chown root:www-data /var/www/roundcube/config/config.inc.php | |
| − | * | + | |
| + | == Apache-Sicherheitsheader setzen == | ||
| + | * nano /etc/apache2/conf-available/security.conf | ||
<pre> | <pre> | ||
Header always set X-Frame-Options DENY | Header always set X-Frame-Options DENY | ||
| Zeile 83: | Zeile 94: | ||
Header always set X-Content-Type-Options nosniff | Header always set X-Content-Type-Options nosniff | ||
</pre> | </pre> | ||
| − | + | * a2enmod headers | |
| − | + | * systemctl restart apache2 | |
| − | + | = Installation abschließen = | |
| − | + | * Die Roundcube-Installation aufrufen: https://webmail.example.com/installer | |
| − | + | * Nach Abschluss der Installation das installer-Verzeichnis löschen | |
| − | + | ** rm -rf /var/www/roundcube/installer | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | * Die Roundcube-Installation aufrufen | ||
| − | |||
| − | |||
| − | |||
Falls es Probleme gibt, kann die offizielle Dokumentation unter https://roundcube.net/help konsultiert werden. | Falls es Probleme gibt, kann die offizielle Dokumentation unter https://roundcube.net/help konsultiert werden. | ||
Aktuelle Version vom 11. April 2025, 11:54 Uhr
Roundcube Webmail unter Debian 12 installieren
- apt install php php-cli php-common php-curl php-gd php-intl php-mbstring php-mysql php-xml php-zip php-imagick php-apcu libapache2-mod-php unzip php-imap mariadb-server mariadb-client
Einführung
Roundcube ist ein webbasiertes E-Mail-Client-Programm, das es ermöglicht, E-Mails von IMAP-Servern wie web.de, GMX oder Gmail direkt über den Browser abzurufen. Diese Anleitung beschreibt die Installation von Roundcube auf Debian 12.
Voraussetzungen
- Ein funktionierender Mailserver mit IMAP (z. B. Dovecot) und SMTP (z. B. Postfix)
- Ein Debian 12-Server mit Apache2, MariaDB und PHP 8.2
- Eine registrierte Domain (z. B. webmail.example.com)
- Let's Encrypt oder ein anderes SSL-Zertifikat für HTTPS
Dateien herunterladen
In das temporäre Verzeichnis wechseln
- cd /tmp
Die aktuelle Version von Roundcube herunterladen
Die aktuelle Version ist unter https://github.com/roundcube/roundcubemail/releases verfügbar.
Archiv entpacken und bereinigen
- tar -xzvf roundcubemail-1.6.*-complete.tar.gz
- rm roundcubemail-1.6.*-complete.tar.gz
Dateien ins Webserver-Verzeichnis verschieben
- mv roundcubemail-1.6.* /var/www/roundcube
Apache-Konfiguration erstellen
Virtuelle Host-Datei erstellen
- vi /etc/apache2/sites-available/roundcube.conf
<VirtualHost *:80>
ServerName mail.it113.int
Redirect permanent / https://mail.it113.int/
</VirtualHost>
<VirtualHost *:443>
ServerName mail.it113.int
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/mail.it113.int.crt
SSLCertificateKeyFile /etc/apache2/ssl/mail.it113.int.key
ServerAdmin technik@it113.int
DocumentRoot /var/www/roundcube/
<Directory /var/www/roundcube/>
Options +FollowSymlinks
AllowOverride All
Require all granted
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/roundcube
SetEnv HTTP_HOME /var/www/roundcube
</Directory>
ErrorLog ${APACHE_LOG_DIR}/mail-error.log
CustomLog ${APACHE_LOG_DIR}/mail-access.log combined
</VirtualHost>
Konfiguration aktivieren und Apache neu starten
- a2ensite roundcube.conf
- systemctl restart apache2
Datenbank einrichten
MariaDB starten
- mysql -u root -p
Datenbank und Benutzer erstellen
- CREATE DATABASE roundcubemail;
- CREATE USER 'roundcube'@'localhost' IDENTIFIED BY '123Start$';
- GRANT ALL PRIVILEGES ON roundcubemail.* TO 'roundcube'@'localhost';
- FLUSH PRIVILEGES;
- EXIT;
Berechtigungen setzen
- chown -R www-data:www-data /var/www/roundcube/
- chmod -R 750 /var/www/roundcube/
Installer aufrufen
Konfigurationsdateien absichern
- chmod 640 /var/www/roundcube/config/config.inc.php
- chown root:www-data /var/www/roundcube/config/config.inc.php
Apache-Sicherheitsheader setzen
- nano /etc/apache2/conf-available/security.conf
Header always set X-Frame-Options DENY Header always set X-XSS-Protection "1; mode=block" Header always set X-Content-Type-Options nosniff
- a2enmod headers
- systemctl restart apache2
Installation abschließen
- Die Roundcube-Installation aufrufen: https://webmail.example.com/installer
- Nach Abschluss der Installation das installer-Verzeichnis löschen
- rm -rf /var/www/roundcube/installer
Falls es Probleme gibt, kann die offizielle Dokumentation unter https://roundcube.net/help konsultiert werden.