How to Install & Configure Rainloop on Ubuntu 16.04


RainLoop is a simple, modern and fast web based email client which can be used to access mails from any mail server like Dovecot and Postfix. It provides full functionality you expect from an email client, including MIME support, address book, folder manipulation, message searching and spell checking.

Perquisites: LAMP Server , Mail Server

Note: – If you want to see the Installation of LAMP Server, click on below Link:

How to Install Apache ,Mysql ,PHP ( LAMP ) Server on Ubuntu 16.04

Note: – If you want to see the Installation & Configuration of Mail Server, click on below Link:

How to Install Mail Server on Ubuntu 16.04(Part 1) ( Dovecot – Postfix – Roundcube )

Note: – Make sure to install the required packages of PHP for Rainloop:

apt-get install php-curl php-xml php-mbstring php7.0-mbstring php-gettext -y

Note: – Please make sure to replace with your domain name.

Step 1.
 Login to Linux machine.

Step 2. Update packages.

# apt-get update

Step 3. Login Into your Mysql Server.

# mysql -u root -p

Step 4. Create a New Database for Rainloop.

mysql> Create database rainloopdb;

Step 5. Create a new User for Rainloop & specify the new Password for that user.

mysql> create user rainloop;
mysql> GRANT ALL PRIVILEGES ON rainloopdb.* TO ‘rainloop’@’localhost’ IDENTIFIED BY ‘rainpasswd’;

Step 6. Exit from Mysql.

mysql> exit

Step 7. Move into your web server Document Root.

# cd /var/www/

Step 8. Create a New Directory for Rainloop.

# mkdir rainloop

Step 9. Move to Rainloop Directory.

# cd rainloop

Step 10. Download Rainloop Webmail by using below link.


Step 11. Unzip

# unzip

Step 12. Change the Owner & Group of rainloop directory.

# chown -R www-data:www-data /var/www/

Step 13. Access Rainloop web interface by search below url through your browser.


Step 14. Open application.ini file from command line & Modify the below lines.

# vim /var/www/

pdo_dsn = “mysql:host=;port=3306;dbname=rainloopdb”
type = “mysql”
pdo_user = “rainloop
pdo_password = “rainpasswd”

Step 15. Create a new file of & copy below smtp settings in that file.

# vim /var/www/

imap_host = “”
imap_port = 143
imap_secure = “None”
imap_short_login = Off
sieve_use = Off
sieve_allow_raw = Off
sieve_host = “”
sieve_port = 4190
sieve_secure = “None”
smtp_host = “”
smtp_port = 25
smtp_secure = “None”
smtp_short_login = Off
smtp_auth = On
smtp_php_mail = Off
white_list = “”

Step 16. Search through your browser.


Step 17. Specify the Username & Password of Rainloop in Login Box.After that click on Login button.