<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RainLoop Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/rainloop/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/rainloop/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Thu, 28 Dec 2023 13:30:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.linuxtuto.com/wp-content/uploads/2022/01/cropped-LT_faveicon-32x32.png</url>
	<title>RainLoop Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/rainloop/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install RainLoop on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-rainloop-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-rainloop-on-debian-12/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Thu, 28 Dec 2023 13:30:11 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Let's Encrypt]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RainLoop]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1656</guid>

					<description><![CDATA[<p>RainLoop is an open-source web-based email client that allows users to access their email accounts through a web browser. It provides a user-friendly interface for...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-rainloop-on-debian-12/">How to Install RainLoop on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>RainLoop is an open-source web-based email client that allows users to access their email accounts through a web browser. It provides a user-friendly interface for managing emails, contacts, and other related tasks without the need for a dedicated email client like Outlook or Thunderbird.</p>
<p>It is designed to be lightweight, fast, and easy to install, making it a popular choice for those who want a simple webmail solution.</p>
<p>In this tutorial, we will show you how to install RainLoop on Debian 12 OS with Nginx web server and MariaDB database server..</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <b>Debian 12</b> operating system to the latest version with the following command:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<p>Also, install necessary packages.</p>
<pre><code translate="no"># apt install curl nano wget unzip zip</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Nginx webserver</span></h2>
<p>You can install it via <code>apt</code> package manager by executing the following command.</p>
<pre><code># apt install nginx</code></pre>
<p>Verify the status of the <strong>Nginx</strong> service using <code>systemctl status</code> command:</p>
<pre><code># systemctl status nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: </span><span class="has-inline-color has-vivid-purple-color">Install PHP</span></h2>
<p>To install PHP and the necessary extensions, run the following command:</p>
<pre><code># apt install php php-cli php-fpm php-json php-common php-mysql php-zip php-imap php-mbstring php-curl php-xml</code></pre>
<p>Once the installation is complete verify if PHP is installed:</p>
<pre><code>php -v</code></pre>
<pre><code>Output:
PHP 8.2.12 (cli) (built: Oct 27 2023 13:00:10) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.12, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.12, Copyright (c), by Zend Technologies
</code></pre>
<p>After installing all the packages, edit the php.ini file:</p>
<pre><code># nano /etc/php/8.2/fpm/php.ini</code></pre>
<p>Change the following settings per your requirements:</p>
<pre><code>max_execution_time = 300
memory_limit = 512M
post_max_size = 25M
upload_max_filesize = 25M</code></pre>
<p>To implement the changes, restart the <strong>php-fpm</strong> service:</p>
<pre><code># systemctl restart php8.2-fpm</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MariaDB and create a database</span></h2>
<p>To install MariaDB run the following command:</p>
<pre><code># apt install mariadb-server mariadb-client</code></pre>
<p>Verify the status of the MariaDB service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status mariadb</code></pre>
<p>By default, MariaDB is not hardened. You can secure MariaDB using the <code class=" prettyprinted"><span class="pln">mysql_secure_installation</span></code> script.</p>
<pre><code># mysql_secure_installation</code></pre>
<p>Configure it like this:</p>
<pre><code>- Set root password? [Y/n] <strong>Y</strong>
- Remove anonymous users? [Y/n] <strong>Y</strong>
- Disallow root login remotely? [Y/n] <strong>Y</strong>
- Remove test database and access to it? [Y/n] <strong>Y</strong>
- Reload privilege tables now? [Y/n] <strong>Y</strong></code></pre>
<p>Now run the command below to log in to the MariaDB shell.</p>
<pre><code># mysql -u root -p</code></pre>
<p>Once you are logged in to your database server you need to create a database for the Roundcube installation:</p>
<pre><code>mysql&gt; CREATE DATABASE rainloop;
mysql&gt; CREATE USER 'rainloopuser'@'localhost' IDENTIFIED BY 'Str0ngPa$$word';
mysql&gt; GRANT ALL PRIVILEGES ON rainloop . * TO 'rainloopuser'@'localhost';
mysql&gt; FLUSH PRIVILEGES;
mysql&gt; exit;</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Download RainLoop</span></h2>
<p>You can download the latest stable release version for RainLoop with the following command:</p>
<pre><code># https://www.rainloop.net/repository/webmail/rainloop-latest.zip</code></pre>
<p>After that, you will need to decompress the RainLoop archive:</p>
<pre><code># unzip rainloop-latest.zip -d /var/www/rainloop/</code></pre>
<p class="has-line-data">Make Nginx the owner of the <code>rainloop</code> folder and grant it sufficient permissions.</p>
<pre><code># chown -R www-data:www-data /var/www/rainloop
# chmod 755 -R /var/www/rainloop</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Nginx for RainLoop</span></h2>
<p>Then, create an virtual host configuration file:</p>
<pre><code># nano /etc/nginx/conf.d/rainloop.conf</code></pre>
<p>Add the following lines:</p>
<pre><code>server {

listen 80;

   server_name webmail.your-domain.com;
   root /var/www/rainloop;

   index index.php;

location / {
        try_files $uri $uri/ /index.php?$query_string;
   }

location ~ \.php$ {
        fastcgi_index index.php;
        fastcgi_split_path_info ^(.+\.php)(.*)$;
        fastcgi_keep_conn on;
        include fastcgi_params;
        fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }

location ^~ /data {
        deny all;
    }

}
</code></pre>
<p>Save and exit the configuration file.</p>
<p>Check Nginx syntax:</p>
<pre><code># /usr/sbin/nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
</code></pre>
<p>To implement the changes, restart Nginx webserver:</p>
<pre><code># systemctl restart nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Install free Let’s Encrypt SSL certificate</span></h2>
<p>First we need to install the Certbot client which is used to <a href="https://www.linuxtuto.com/how-to-secure-nginx-with-lets-encrypt-on-ubuntu-22-04/">create Let’s Encrypt certificates</a>:</p>
<pre><code># apt install certbot python3-certbot-nginx</code></pre>
<p>To get the SSL certificate using the Certbot, type the command given below:</p>
<pre><code># certbot --nginx -d webmail.your-domain.com</code></pre>
<p>If the SSL certificate is successfully obtained, certbot displays a message to show the configuration was successful:</p>
<pre><code>IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/webmail.your-domain.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/webmail.your-domain.com/privkey.pem
   Your cert will expire on 2024-03-06. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot
   again. To non-interactively renew *all* of your certificates, run
   "certbot renew"
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le</code></pre>
<p>Now, you have successfully installed SSL on your website.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: RainLoop Setup and Configurations</span></h2>
<p>Now open your web browser and go to <code>https://webmail.your-domain.com/?admin</code> and you will see the following screen:</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-large wp-image-1657" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-900x416.webp" alt="RainLoop administrator login page" width="900" height="416" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-900x416.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-768x355.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-1536x709.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-1222x564.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-897x414.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-684x316.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001.webp 1912w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>You can log in with the default username <strong>admin</strong> and default password <strong>12345</strong></p>
<p>You will see the Rainloop dashboard as below:</p>
<p><img decoding="async" class="aligncenter size-large wp-image-1659" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-900x415.webp" alt="RainLoop admin dashboard" width="900" height="415" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-900x415.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-300x138.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-768x354.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-1536x708.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-1222x563.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-897x413.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-684x315.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002.webp 1919w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>When you login for the first time, you need to change your <strong>admin</strong> password immediately.</p>
<p><img decoding="async" class="aligncenter wp-image-1662 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-900x418.webp" alt="Admin Panel Access Credentials" width="900" height="418" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-900x418.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-768x357.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-1536x713.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-1222x568.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-897x417.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-684x318.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003.webp 1914w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Enter your new password and click on the <strong>Update</strong> <strong>Password</strong> button to change the password.</p>
<p>Then, open the <strong>Contacts</strong> menu and select <strong>MySQL</strong> from the dropdown menu:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1663" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-900x417.webp" alt="RainLoop MySQL configuration" width="900" height="417" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-900x417.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-768x356.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-1536x712.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-1222x566.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-897x416.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-684x317.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004.webp 1917w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Enter the database credentials you created earlier and press the <strong>Test</strong> button to check the connection and install the necessary tables.</p>
<p>If the button turns green, it means the connection is successful.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>Congratulations. You have learned how to install RainLoop on Debian 12 OS.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://www.rainloop.net/docs" target="_blank" rel="noopener">the official RainLoop documentation.</a></p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-rainloop-on-debian-12/">How to Install RainLoop on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-rainloop-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1656</post-id>	</item>
	</channel>
</rss>
