I installed Rainloop on my miab mail server, but I can’t figure out how access the Rainloop admin panel.
very confusing…
Rainloop Installation Instructions
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:
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”.
I just found this earlier post, so I will try it now.
Go to the Owncloud admin page, there is a new option called Rainloop webmail.
Enable Automatically login with ownCloud user credentials
Login into the rainloop admin panel with the user admin and pass 12345
Add your e-mail domains and settings to your liking (change the admin login and password!)
Don’t forget to enable the Carddav server to be able to use your e-mail address book. The settings are done in the users own settings page.
You can now login with your username password at the normal Email app in Owncloud. You might happen to login/logout in owncloud to enable the ‘login with owncloud user credentials’.
Step 3: Update 3 Files (I use MobaXterm)
1.) conf/nginx-alldomains.conf (see nano /etc/nginx/conf.d/local.conf)
2.) setup/webmail.sh (or nano /root/mailinabox/setup/webmail.sh)
3.) tools/rainloop-unlockadmin.sh (create this file from scratch nano /root/mailinabox/tools/rainloop-unlockadmin.sh)
Add the following for each of the three files:
For conf/nginx-alldomains.conf - #1 of 3
nano /etc/nginx/conf.d/local.conf
comment out the Roundcube entry with #'s
copy and paste the following into the file
Rainloop Webmail configuration.
rewrite ^/mail$ /mail/ redirect;
rewrite ^/mail/$ /mail/index.php;
location /mail/ {
index index.php;
alias /usr/local/lib/rainloop/;
}
location ~ /mail/data/.* {
deny all;
}
location ~ /mail/..php {
# note: ~ has precendence over a regular location block
include fastcgi_params;
fastcgi_split_path_info ^/mail(/.)()$;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/lib/rainloop/$fastcgi_script_name;
fastcgi_pass php-fpm;
# Outgoing mail also goes through this endpoint, so increase the maximum
# file upload limit to match the corresponding Postfix limit.
client_max_body_size 128M;
}
For setup/webmail.sh - #2 of 3
delete the entire contents of the file: rm -r /root/mailinabox/setup/webmail.sh
create a new file: nano /root/mailinabox/setup/webmail.sh
Get the new contents from Replace Roundcube with Rainloop by jvolkenant · Pull Request #883 · mail-in-a-box/mailinabox · GitHub
Control + F to find webmail.sh
Click the View button
Click the Raw button
Click Control + A to select all
Click Control + C to copy the text
Paste the contents into your new file
Save
For tools/rainloop-unlockadmin.sh - #3 of 3
create a new file: nano /root/mailinabox/tools/rainloop-unlockadmin.sh
get the contents for this new file from Replace Roundcube with Rainloop by jvolkenant · Pull Request #883 · mail-in-a-box/mailinabox · GitHub
Control + F to find “tools/rainloop-unlockadmin.sh”
Click the View button
Click the Raw button
Click Control + A to select all
Control + C for copy
Save the file
you know modifications are generally not supported by Mail-in-a-Box. If you are a advanced user and you want to run more applications on your server, you could try yunohost. It is a tool to make self hosting easy. It includes a mail server, rainloop, roundcube, nextcloud and much more. It could save you a lot of trouble.
It looks my above link got mangled a bit. Read on for my steps…
My Step 2 looks more like:
2a) Upload rainloop-latest.zip to /tmp
2b) mkdir /usr/local/lib/rainloop
2c) unzip rainloop-latest.zip -d /usr/local/lib/rainloop
2d) find /usr/local/lib/rainloop -type d -exec chmod 755 {} ;
2e) find /usr/local/lib/rainloop -type f -exec chmod 644 {} ;
2f) Edit /etc/nginx/conf.d/local.conf according to these correct instructions. Be sure to click the topmost link that ends with /files
Then restart nginx. Note that this is an unsupported modification and it’ll break the next time you upgrade MIAB.
I’m the author of the original post on how to install Rainloop. I’ve been using Rainloop since november last year, and I have never gone back to Roundcube. Contacts, filters, multiple accounts, themes and most importantly for me: it’s a local proxy for external images.
I thought about installing it outside of the MiaB environment as you are doing now, but for compatibility it’s better to keep it in Nextcloud. I must say that having e-mail, calendar, contacts and a possibility for file sharing in a single environment is an advantage for the easy of use of MiaB by other users. Also this doesn’t break after an update.
I haven’t tested the performance penalty for being a plugin to Nextcloud, but the speed is excellent so far on a simple 1 core server with 1GB RAM and SSD storage.
I am not sure I understand what that means. I thought that was what we were doing? If not, what would the steps be for what you are proposing, once I have uploaded Rainloop?
Host Rainloop on another server. Altering your MIAB configuration is unsupported and requires an admin to dig into the system to get it working right. By putting Rainloop on a web server rather than your mail server, it greatly simplifies the installation and maintenance process.
This thread already outlines two approaches to installing Rainloop on your MIAB server and one approach for installing Rainloop elsewhere. That’s the best we can do for you.