Skip to main content

Modern OpenSource Webmail for your server – RainLoop

logo rainloop

When I decided to restart my mail server and install a nice webmail, I’ve immediately thought about Roundcube, then came to my mind Zimbra, Horde, AfterLogic, etc…but to be frank some of them have a very old style design (Horde for example) and frankly speaking, nothing very new for the others in term of design. This was before I discover RainLoop.


RainLoop is a free and Open Source webmail application under Creative Content licence and based on PHP. It has a modern interface, with drag’n’drop, fancy upload progress bar, while being easily customizable, with integration to social media (Facebook, Twitter, etc…) while still being simple to install and use and yet with good performance.

Rainloop screenshot

So here is how to install RainLoop on your server. Having a LAMP server will be all it takes to install it.



1) Create a folder in your /var/www dedicated for RainLoop Webmail:

2) Download the latest RainLoop Webmail version using their PHP script

3) Change the owner of the folder by Apache user (www-data)

4) Access the admin panel:

Simply go to: http://yourIP/rainloop/?admin

Rainloop Admin loginThe default login is: admin and password: 12345

5) Configure your domain:

To allow connection, you will need to add your domain, very simple to configure if RainLoop is installed on the same machine than your mail server. Simply put the address for both IMAP and SMTP as localhost.

If you want to be able to login using only the username instead of user@domain.tld when you log in, you need to tick “use short login form” (To remove domain.tld when connecting) and configure the login page with a “Default Domain” ( in my case)

You should now be able to connect to your new Webmail !!

If you want to enable the contact feature (Create, use and share your contact through CardDAV) you will need to use a SQL database (Either SQLite or MySQL).


Virtualhost configuration

Final step, although optional, if you want to access to your RainLoop Webmail through a dedicated sub domain or domain name, like instead of using the IP/rainloop link, you will need to set up a virtualhost. And obviously you want to force HTTPS connection.

You will need to:

1) Create a A redirection in your DNS server/registrar

2) Have SSL certificate ready. If not you can read this tutorial.

3) Create your virtualhost as following:

In /etc/apache2/sites-enabled/, create a file called rainloop (In root):

nano /etc/apache2/sites-enabled/rainloop

and paste the following content:

<VirtualHost *:80>
ServerAdmin webmaster@domain.tld
ServerName rl.domain.tld
Redirect / https://rl.domain.tld

<IfModule mod_ssl.c>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/ssl/certs/freedif.pem
SSLCertificateKeyFile /etc/ssl/private/freedif.key

ServerAdmin webmaster@domain.tld
ServerName rl.domain.tld

DocumentRoot /var/www/rainloop
<Directory />
Options FollowSymLinks
AllowOverride All

php_value memory_limit 10M
php_value post_max_size 10M
php_value upload_max_filesize 10M

<Directory /var/www/rainloop>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

Adapt the content (Servername, webmaster, SSL certificate and directory, …).

Note that I’ve added 3 lines for PHP configuration to allow to send large attachment (10Mb)

When done, save the file (CTRL+X then Yes) and reload apache: (In root)

/etc/init.d/apache2 reload

You should now be able to access to your Webmail through rl.domain.tld that will automatically redirect you to https://rl.domain.tld.

2 thoughts on “Modern OpenSource Webmail for your server – RainLoop

  1. Rainloop is actually a spinoff of AfterLogic WebMail, created by one of AfterLogic WebMail developers who made a product which competes with his company’s product. This developer is already fired from AfterLogic. Considering the fact that lots of Rainloop code is actually copyrighted by AfterLogic, the legal status of Rainloop is, to put it mildly, somewhat blurry. And if you select Rainloop, just keep in mind that you support software piracy. Cheers.

    1. Thanks Alex for the info.

      Indeed both looks very similar. (I’m using AfterLogic actually, simple and good enough).
      For people using Rainloop, might be a bit quick to jump on supporting software piracy tho.

Leave a Reply

Your email address will not be published. Required fields are marked *