Mainos / Advertisement:

Ero sivun ”Roundcube/en” versioiden välillä

Kohteesta Taisto
Siirry navigaatioon Siirry hakuun
(Ak: Uusi sivu: We block access to the logs directory <Directory /var/www/roundcube/logs> Options -FollowSymLinks AllowOverride None Order allow,deny Deny from all </Directory>)
(Ak: Uusi sivu: Save the changes and restart the Apache2 service.)
Rivi 91: Rivi 91:
 
  </Directory>
 
  </Directory>
  
Tallenna ja käynnistä Apache2 uudelleen
+
Save the changes and restart the Apache2 service.
  
 
=== Roundcuben konfigurointi ===
 
=== Roundcuben konfigurointi ===

Versio 10. elokuuta 2015 kello 10.18

Muut kielet:
English • ‎suomi

Roundcube is a free and open source webmail which provides a desktop like user interface. Roundcube is easy to install and configure for instance on a LAMP server. Roundcube requires a web server (for instance Apache2), an SMTP server (for instance Postfix), IMAP (for instance Dovecot) and a database (for instance Mysql).

This manual will work for Roundcube 1.0 and newer versions.

Installation

Install Apache2, Php5, Mysql

 apt-get install apache2 php5 php-pear php5-mysql php5-mcrypt php5-intl

Download installation package http://roundcube.net/

 wget http://softlayer-ams.dl.sourceforge.net/project/roundcubemail/roundcubemail/1.0.5/roundcubemail-1.0.5.tar.gz

Extract tar package

 tar -xjf roundcubemail-1.0.5.tar.gz

Move Roundcube to your preferred location on your server

 mv ~/roundcube /var/www

You can also install Roundcube using aptitude (we don't recommend doing it like this).

 aptitude install roundcube

If you do this, the configuration folder will be located in

 /etc/roundcube

Configuration

Define write privileges for www-data user (web server user) into the /temp and /logs directories.

Configuring Apache

Open the Apache configuration file

 nano /etc/apache2/sites-available/default

Add the following lines into the default file. You may need to change the folder path depending on where you installed roundcube.

<Directory /var/www/roundcube>
Options +FollowSymLinks
# AddDefaultCharset     UTF-8
AddType text/x-component .htc

<IfModule mod_php5.c>
php_flag        display_errors  Off
php_flag        log_errors      On
# php_value     error_log       logs/errors
php_value       upload_max_filesize     10M
php_value       post_max_size           12M
php_value       memory_limit            64M
php_flag        zlib.output_compression         Off
php_flag        magic_quotes_gpc                Off
php_flag        magic_quotes_runtime            Off
php_flag        zend.ze1_compatibility_mode     Off
php_flag        suhosin.session.encrypt         Off
#php_value      session.cookie_path             /
php_flag        session.auto_start      Off
php_value       session.gc_maxlifetime  21600
php_value       session.gc_divisor      500
php_value       session.gc_probability  1
</IfModule>


We block access to the config directory

<Directory /var/www/roundcube/config>
Options -FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
</Directory>

We block access to the temp directory

<Directory /var/www/roundcube/temp>
Options -FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
</Directory>

We block access to the logs directory

<Directory /var/www/roundcube/logs>
Options -FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
</Directory>

Save the changes and restart the Apache2 service.

Roundcuben konfigurointi

Konfigurointi on ladattavissa https://github.com/Taistowiki/roundcube

Luo tiedosto ~/roundcube/config/config.inc.php ja kopioi alla oleva sisältö tiedostoon. Voit myös käyttää asennusohjelmaa johon pääsee http://server_ip/rouncube/installer

 <?php
/* Local configuration for Roundcube Webmail */

Tietokantaan yhdistäminen DSN luku ja kirjoittavalla operaattorilla. Kirjoitetaan muodossa (Tuetaan PEAR MDB2): db_provider://user:password@host/database. Lisää esimerkkejä: http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php. Tuetaan Mysql, Pgsql, sqlite, mssql ja sqlsrv. Huomaathan että Sqlite käyttää absoluuttista polkua: sqlite:////full/path/to/sqlite.db?mode=0646

 $config['db_dsnw'] = 'mysql://roundcube:password@localhost/roundcube';

Määritä IMAP palvelimen verkko-osoite. Jos jätät tyhjäksi niin kirjautumisen yhteydessä kysytään kirjautumisen palvelinta. Array funktiolla saat siihen listan eri sähköpostipalvelimista jonne voi kirjautua. SSL/TLS yhteyksiin käytä etuliitettä ssl:// tai tls://.

Voit käyttää seuraavia muuttujia:

  • %n - isäntänimi ($_SERVER['SERVER_NAME'])
  • %t - isäntämimi ilman ensimmäistä osaa
  • %d - domain (http domain$_SERVER['HTTP_HOST'] ilman esimmäistä osaa)
  • %s - domainin nimi jälkeen '@' sähköposti osoitteen palveluntarjoajan kirjautumisen näytössä

Esimerkiksi: %n = mail.domain.tld, %t = domain.tld

$config['default_host'] = 'localhost';

Määritä SMTP palvelimen verkko-osoite. Käyttäessä SSL/TLS yhteyttä, määritä isäntämimeen etuliite ssl:// tai TLS://. Jos jätät tyhjäksi, käytetään PHP mail() funktiota.

Voit käyttää seuraavia muuttujia:

  • %h - Käyttäjän IMAP isäntänimi
  • %n - isäntänimi ($_SERVER['SERVER_NAME'])
  • %t - isäntämimi ilman ensimmäistä osaa
  • %d - domain (http domain$_SERVER['HTTP_HOST'] ilman esimmäistä osaa)
  • %z - IMAP domain (IMAP isäntänimi ilman ensimmäistä osaa)
$config['smtp_server'] = 'localhost';

Palveluntarjoajan verkko-osoite josta tämän palvelunkäyttäjät saavat apua Roundcuben käyttöön. Älä linkkaa roundcube.net verkkosivulle!

$config['support_url'] = ;

Tämä avain kryptaa käyttäjän IMAP salasanan kun tallennetaan tietokantaan. Käytä vähintään 24 merkkiä.

$config['des_key'] = 'H=Mgd81+3Hn+VeKnU?h*bNX!';

Lista lisäosista (plugins/ hakemistosta)

$config['plugins'] = array();
Mainos / Advertisement: