WebMail
RainLoop is a simple, modern and fast web-based email client, free to use for personal or non-profit projects. RainLoop Webmail is licensed under a Creative Commons license (CC BY-NC-SA 3.0).
Prerequisites
Installed and working MAS - Mail Access Server.
Installed and working Web Server.
Download and Installation
$ cd downloads
$ wget http://repository.rainloop.net/v2/webmail/rainloop-latest.zip
$ sudo mkdir -p /var/www/rainloop
$ sudo unzip rainloop-latest.zip -d /var/www/rainloop
$ sudo chown -R www-data:www-data /var/www/rainloop
Web-Server Configuration
Webmail Virtual Host
Create a new virtual host /etc/nginx/sites-available/webmail.conf
for Nginx:
#
# mail.example.net Webmail
# Unsecured HTTP Site - Redirect to HTTPS
server {
# IPv4 private address
# Port-forwarded connections from firewall-router
listen 192.0.2.10:80;
# IPv6 global address
listen [2001:db8::40]:80;
server_name mail.example.net;
# Redirect to HTTPS
return 301 https://mail.example.net$request_uri;
}
# Secured HTTPS Site
server {
# IPv4 private address
# Port-forwarded connections from firewall-router
listen 192.0.2.10:443 ssl spdy;
# IPv6 global address
listen [2001:db8::40]:443 ssl spdy;
server_name mail.example.net;
include tls.conf;
include ocsp-stapling.conf;
ssl_certificate /etc/ssl/certs/example.net.chained.cert.pem;
ssl_certificate_key /etc/ssl/private/example.net.key.pem;
ssl_trusted_certificate /etc/ssl/certs/CAcert_Class_3_Root.OCSP-chain.pem;
include sites-defaults/*.conf;
# Public Documents Root
root /var/www/rainloop;
# Rainloop Webmail Configuration
include webapps/rainloop.conf;
}
RainLoop Web-Application
Create a new web-application configuration
/etc/nginx/webapps/rainloop.conf
for the
RainLoop webmail client:
#
# Web Application Configuration for the RainLoop Webmail Client
# Run PHP scripts
include php-handler.conf;
# Protect users data directory
location ^~ /data {
deny all;
}
Activate Restart & Restart
Activate the new virtual server:
$ cd /etc/nginx
$ sudo ln -s sites-available/webmail.conf sites-enabled/
Check the configuration and restart the Web-Server:
$ sudo nginx -t
$ sudo service nginx restart
RainLoop Configuration
Point your webbrowser to http://mail.example.net/?admin
ownCloud Integration
Download the RainLopp webmail-plugin for ownCloud:
$ cd download
$ wget http://repository.rainloop.net/v2/other/owncloud/rainloop.zip
$ sudo mkdir -p /var/www/owncloud/apps/rainloop
$ sudo unzip rainloop.zip -d /var/www/owncloud/apps
$ sudo chown -R www-data:www-data /var/www/owncloud/apps