RailLOOP

 Rainloop Webmail On CentOS 7

yum install httpd php php-mysql php-xml pcre php-common curl -y

yum install httpd mariadb mariadb-server php php-mysql php-xml pcre php-common curl -y

yum -y install php php-mysql php-xml pcre php-common curl unzip

yum -y update php

yum -y install php php-mbstring php-pear

yum -y update php* 

yum --enablerepo=remi-php74 install php php-mysql php-xml pcre php-common curl -y

           ------------------------------------------------------

 mkdir /var/www/html/rainloop

 cd /var/www/html/rainloop

curl -sL https://repository.rainloop.net/installer.php | php

 find . -type d -exec chmod 755 {} \;

 find . -type f -exec chmod 644 {} \;

 chown -R apache:apache .

          ----------------------------------------------

  mkdir /var/www/html/rainloop

  cd /var/www/html/rainloop

  curl -O http://repository.rainloop.net/v2/webmail/rainloop-latest.zip

curl -sL https://repository.rainloop.net/installer.php | php

or

wget -qO- https://repository.rainloop.net/installer.php | php

  unzip rainloop-latest.zip -d /var/www/html/rainloop

find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \;

chcon -Rt httpd_sys_rw_content_t /var/www/html/rainloop

ls -Z

chown -R apache:apache .

restorecon -v '/var/www/html/rainloop/data'

[root@dz-mail-server ~]# nano /etc/httpd/conf.d/mail.conf

           ------------------------------

<VirtualHost *:80>         DocumentRoot /var/www/html/rainloop         ServerName mail.worldcm.net </VirtualHost>

                 --------------------------------

# vim /etc/httpd/conf.d/mail.conf         [ Add this Line]

Alias /mail /var/www/html/rainloop

<Directory /var/www/html/rainloop>

Options -Indexes

AllowOverride All

</Directory>

<Directory /var/www/html/rainloop/data>

Order Deny,Allow

Deny from All

</Directory>

-------------------------------------

# vi /etc/php.ini 

memory_limit = 512M; upload_max_filesize = 30M; post_max_size = 70M;

date.timezone = Asia/Dhaka

[root@dz-mail-server ~]# systemctl restart httpd

                   ---------------------------------x--------------------------------------

1] Install RainLoop [zip].

curl -O http://repository.rainloop.net/v2/webmail/rainloop-latest.zip   mkdir /var/www/html/rainloop   unzip rainloop-latest.zip -d /var/www/html/rainloop   find /var/www/html/rainloop -type d -exec chmod 755 {} \;   find /var/www/html/rainloop -type f -exec chmod 644 {} \;   chown -R apache. /var/www/html/rainloop [2] If SELinux is enabled, change rules like follows.

chcon -R -t httpd_sys_rw_content_t /var/www/html/rainloop/data

semanage fcontext -a -t httpd_sys_rw_content_t /var/www/html/rainloop/data

[3] Access to "https://(server's hostname or IP address)/rainloop/?admin" with web browser on Client,

then log in with a user and password for initial login, user is "admin" and                     ----------------------------X-------------------------------------

URL : http://Your-IP-Address/rainloop/?admin

rpm -Uvh http://rpm.razorsedge.org/centos-4/RE/razorsedge-release-5-1.el4.re.noarch.rpm

Download:  https://drive.google.com/file/d/0B8kTAu8SZaHwTlRNclJ6OXRZcU0/view?usp=sharing

yum -y install poppassd

#  systemctl restart httpd.service

In detail

Download the package, extract files from it and upload it to a directory intended for use by the application, for example, /var/www/rainloop, subsequent examples assume you're using that directory, supply your actual directory path if you use a different one.

mkdir /var/www/rainloop unzip rainloop-latest.zip -d /var/www/rainloop

You can also deploy the latest version of the application without a need to deal with zip archive, just run one of the following commands in your terminal:

curl -s https://repository.rainloop.net/installer.php | php

or

wget -qO- https://repository.rainloop.net/installer.php | php

Upon uploading the package content, be sure to configure permissions for files and directories.

This is all you have to do in order to ensure running the application with its default configuration.

The product will create all the required files on first run, and it will report an error if any requirement is not met.

Steps for performing this are found below.

• Grant read/write permissions required by the application:

cd /var/www/rainloop find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \;

• Set owner for the application recursively:

cd /var/www/rainloop chown -R www-data:www-data .

chown -R apache:apache .

URL : http://Your-IP-Address/rainloop/?admin

Chnge passwd

rpm -Uvh http://http://rpm.razorsedge.org/centos-4/RE/razorsedge-release-5-1.el4.re.noarch.rpm

yum -y install poppassd

Notice

Depending on particular system, user account web server runs under might vary (apache, daemon, www, www-data, nginx, nobody, etc.).

To access admin panel, use URL of the following kind: http://product_installation_URL/?admin

For example: http://webmail.domain.com/?admin

Default login is "admin", password is "12345".

Passwd Config

yum -y install xinetd

yum -y install http://repo.iotti.biz/CentOS/6/x86_64/poppassd-1.8.5-lux.4.x86_64.rpm

yum -y install http://ftp.riken.jp/Linux/dag/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

rpm -ivh poppassd-1.8.5-lux.4.x86_64.rpm

Enable Contacts

The  contacts feature needs database support. We will be using MySQL for enabling contacts. The database required by RainLoop can be created  manually as follows.

# mysql -u root -p

mysql> create database rainloop;

mysql> FLUSH PRIVILEGES;

mysql> exit;

RainLoop Webmail – A Modern Fast Web Based Email Client for Linux

Install Rainloop

# mkdir /var/www/html/rainloop

# cd /var/www/html/rainloop

# curl -s http://repository.rainloop.net/installer.php | php

# find . -type d -exec chmod 755 {} \;

# find . -type f -exec chmod 644 {} \;

# chown -R apache:apache .

Create a configuration file for Apache.

# vim /etc/httpd/conf.d/20-rainloop.conf          [ Add this Line]

Alias /mail /var/www/html/rainloop

<Directory /var/www/html/rainloop>

Options -Indexes

AllowOverride All

</Directory>

<Directory /var/www/html/rainloop/data>

Order Deny,Allow

Deny from All

</Directory>

Restart or Reload Apache

#  systemctl restart httpd.service 

ROOT access

 cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bk

# vi /etc/httpd/conf/httpd.conf

DirectoryIndex index.html index.php

#DocumentRoot "/var/www/html"

DocumentRoot "/var/www/html/rainloop"

 Upload file size in  webmail: 

# cp /etc/php.ini /etc/php.ini.bk

 vi /etc/php.ini 

memory_limit = 512M; upload_max_filesize = 30M; post_max_size = 70M;

Passwd Config

yum -y install xinetd

yum -y install http://repo.iotti.biz/CentOS/6/x86_64/poppassd-1.8.5-lux.4.x86_64.rpm

yum -y install http://ftp.riken.jp/Linux/dag/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

rpm -ivh poppassd-1.8.5-lux.4.x86_64.rpm

Enable Contacts

The  contacts feature needs database support. We will be using MySQL for enabling contacts. The database required by RainLoop can be created  manually as follows.

# mysql -u root -p

mysql> create database rainloop;

mysql> FLUSH PRIVILEGES;

mysql> exit;

Configure RainLoop via Admin Interface

There are two ways to configure the RainLoop application – using admin panel, or by modifying ‘application.ini‘ file manually from the terminal. But, most of the basic options are configured via web interface, and that should suffix in most cases. To access admin panel, use the following default login credentials.

Logon to the admin control panel with default credentials. http://yourdmain.com/webmail/

admin user: admin 

pass: 12345

Among the settings on the add Domains page, use 127.0.0.1 for both with standard ports. Also ensure that there is an [x] for use short login forms and use authentication

Create database

You need to create a database to enable contacts in Rainloop. Lets create a database first.

# mysql -u root -p

mysql> create database rainloop;

mysql> exit

 -----------------------

 /var/www/html/rainloop/data/_data_/_default_/configs/application.ini

/var/www/html/rainloop/data/_data_/_default_/configs/application.ini/plugin-poppassd-change-password.ini

PASSWORD Change

On Red Hat based systems, you need to download and enable Razor’s Edge Repository(http://rpm.razorsedge.org/) for your specific distribution and then install the ‘poppassd’ package using the following command.

# yum install poppassd

Next, go to the Admin Panel –> Package section to install plugin.

Poppasswd Plugin

Enable, the poppassd plugin from the Admin Panel > Plugins page and tick the ‘poppassd-change-password‘ box. Add the server details such 127.0.0.1, Port 106 and enter ‘*‘ for Allowed emails.

Enable Poppasswd Plugin

################################MySQL################################

yum -y install wget

yum -y install unzip

yum -y install httpd

yum -y install php php-mysql php-xml pcre php-common curl

yum -y install mariadb-server mariadb

systemctl enable httpd

systemctl start httpd

systemctl enable mariadb

systemctl start mariadb

# curl -O http://repository.rainloop.net/v2/webmail/rainloop-latest.zip

# mkdir /var/www/html/rainloop

# unzip rainloop-latest.zip -d /var/www/html/rainloop

# find /var/www/html/rainloop -type d -exec chmod 755 {} \; 

# find /var/www/html/rainloop -type f -exec chmod 644 {} \; 

# chown -R apache. /var/www/html/rainloop

Create database

You need to create a database to enable contacts in Rainloop. Lets create a database first.

 

# mysql -u  root  -p

mysql> create database rainloop;

mysql> flush privileges;

mysql> exit

Connect admin panel of rainloop

To configure Rainloop you have to go to the admin panel of rainloop. Type http://192.168.0.8/rainloop/?admin in your URL. The default user name is "admin" and password is "12345" to login into the admin panle of rainloop.

 

 

webmail open source server with Rainloop

 

 Now to change the  password, go to Security option and change the admin panel default password.

 

webmail open source

 

Configure Rainloop. Add your local domain to Rainloop. Give the server IP address and port number as given below in the image. Check Use short login  and Use authentication.

 

 

webmail open source Local mail server with Rainloop

 

 

 Now go to contacts, check Enable contacts and Allow contacts sync. Select storage type as MySQL.

Give your root password.

 

Webmail open source with Rainloop

 

Configuring the Admin panel is all done. Now you can login to your user panel by providing the login credentials.

 

Connect user panel

 

For user login Type the URL  http://192.168.0.8/rainloop/  and provide the login credentials. Login compose and  send the local mail to the recipient  Give the recipient mail id as  username@domain name 

For example: techsakh@techsakh.local

 

webmail open souce server with Rainloop

RailLoop Plugin: cd /var/www/html/rainloop/data/_data_/_default_/plugins

###############################################################

yum -y install wget

yum -y install unzip

yum -y install httpd

yum -y install php php-mysql php-xml pcre php-common curl

yum -y install mariadb-server mariadb

systemctl enable httpd

systemctl start httpd

systemctl enable mariadb

systemctl start mariadb

mkdir /var/www/html/webmail

cd /var/www/html/webmail

wget http://repository.rainloop.net/v2/webmail/rainloop-latest.zip

unzip rainloop-latest.zip

chown -R apache *

systemctl restart httpd

Admin URL ==>> http://server-ip/webmail/?admin

User URL ==>> http://server-ip/webmail/

##################################################################################################################

What happens to reCAPTCHA v1?

Since we launched reCAPTCHA v2 in Dec, 2014, a significant number of websites around the world have switched to it. Most of the human users enjoy the No CAPTCHA reCAPTCHA experience with a single click in the checkbox. With the advanced risk analysis engine, reCAPTCHA v2 can effectively separate humans from bots and always stay ahead of the attackers. So we decided that it's time to stop supporting the old version of reCAPTCHA, which means:

If your site still uses reCAPTCHA v1, it will continue to work, but please expect that it may become less functional. We encourage you to register a new key and upgrade to v2 soon.

I'd like to run automated tests with reCAPTCHA v2. What should I do?

With the following test keys, you will always get No CAPTCHA and all verification requests will pass.

The reCAPTCHA widget will show a warning message to claim that it's only for testing purpose. Please do not use these keys for your production traffic.

I want to learn how reCAPTCHA grades my site traffic. Is there a report that I can check?

Yes. reCAPTCHA reports the daily pass and fail stats in the admin console. If you are using reCAPTCHA V2, you can also see how many No CAPTCHAs were rendered per day as well as site spam index chart. You are strongly encouraged to upgrade to reCAPTCHA V2 to enjoy these advanced features.

Can I customize the reCAPTCHA widget?

Yes. reCAPTCHA offers two themes, light and dark, as shown below. To choose a theme, simply set the data-theme attribute in the grecaptcha.render parameter.

Light theme:

Dark theme:

Does reCAPTCHA support users that don't have JavaScript enabled?

reCAPTCHA can only provide the optimal experience in terms of security and usability with JavaScript enabled. However, if supporting users who have disabled JavaScript is important for your site, you can enable the alternative challenge with the following steps. Navigate to the admin console and move the security preference slider to "easiest for users". Keep in mind that with this setting reCAPTCHA won't be able to use all of its security features.

Then, you must add the following <noscript> HTML immediately following the g-recaptcha tag.

<script src="https://www.google.com/recaptcha/api.js" async defer></script>

<div class="g-recaptcha" data-sitekey="your_site_key"></div>

<noscript>

  <div>

    <div style="width: 302px; height: 422px; position: relative;">

      <div style="width: 302px; height: 422px; position: absolute;">

        <iframe src="https://www.google.com/recaptcha/api/fallback?k=your_site_key"

                frameborder="0" scrolling="no"

                style="width: 302px; height:422px; border-style: none;">

        </iframe>

      </div>

    </div>

    <div style="width: 300px; height: 60px; border-style: none;

                   bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px;

                   background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px;">

      <textarea id="g-recaptcha-response" name="g-recaptcha-response"

                   class="g-recaptcha-response"

                   style="width: 250px; height: 40px; border: 1px solid #c1c1c1;

                          margin: 10px 25px; padding: 0px; resize: none;" >

      </textarea>

    </div>

  </div>

</noscript>

Some users are not seeing the checkbox reCAPTCHA widget. What's happening?

Is the reCAPTCHA widget in the above example what your users are seeing?

In some cases, the end user's environment doesn't have the features to support the checkbox reCAPTCHA widget due to:

When any of the above occurs, reCAPTCHA falls back to an alternative challenge.  If you would like to test for this case, add the fallback=true parameter to the JavaScript resource:

<script src="https://www.google.com/recaptcha/api.js?fallback=true" async defer></script>

Please implement this fallback UI only when it's necessary for your site, due to the poor user experience.

Recently my reCAPTCHA widget started displaying "Invalid site key". What's happening?

If you are seeing this error, your reCAPTCHA site key is no longer valid. To activate, please register a new key and follow the instructions on that page.

I'm getting 404 error: content from http://www.gstatic.com/... not available. What should I do?

The reason you are seeing this error is because you referenced an obsolete reCaptcha JS code exampled below:

/* DO NOT include the following in your code! */

(function() {

  if (!window['___grecaptcha_cfg']) {

     window['___grecaptcha_cfg'] = {};

  };

  if (!window['___grecaptcha_cfg']['render']) {

     window['___grecaptcha_cfg']['render'] = 'onload';

  };

  window['__google_recaptcha_client'] = true;

  var po = document.createElement('script');

  po.type = 'text/javascript';

  po.async = true;

  po.src = 'https://www.gstatic.com/recaptcha/api2/r20150114143013/recaptcha__en.js';

  var s = document.getElementsByTagName('script')[0];

  s.parentNode.insertBefore(po, s);

})();

Instead, you should only include this line in your code:

<script src="https://www.google.com/recaptcha/api.js"></script>

We are constantly updating our recaptcha__XYZ.js versions. Please rely on the api.js to route to the right version.

I'm getting an uncaught SecurityError: blocked a frame with origin "https://www.google.com" from accessing a frame with origin "<your domain>". What should I do?

This typically occurs if the reCAPTCHA widget HTML element is programmatically removed sometime after the end user clicks on the checkbox. We recommend using the grecaptcha.reset() javascript function to reset the reCAPTCHA widget.

I'm using Content-Security-Policy (CSP) on my website. How can I configure it to work with reCAPTCHA?

If the reCAPTCHA widget does not render with your CSP, please add the following values to the directives:

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies.

Last updated May 2, 2016.