add selfhosting tutorials
BIN
rainloop/0.png
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
rainloop/1.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
rainloop/10.png
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
rainloop/11.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
rainloop/12.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
rainloop/13.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
rainloop/14.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
rainloop/15.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
rainloop/16.png
Normal file
After Width: | Height: | Size: 130 KiB |
BIN
rainloop/17.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
rainloop/18.png
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
rainloop/19.png
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
rainloop/2.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
rainloop/20.png
Normal file
After Width: | Height: | Size: 302 KiB |
BIN
rainloop/21.png
Normal file
After Width: | Height: | Size: 159 KiB |
BIN
rainloop/3.png
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
rainloop/4.png
Normal file
After Width: | Height: | Size: 243 KiB |
BIN
rainloop/5.png
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
rainloop/6.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
rainloop/7.png
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
rainloop/8.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
rainloop/9.png
Normal file
After Width: | Height: | Size: 17 KiB |
106
rainloop/index.md
Normal file
|
@ -0,0 +1,106 @@
|
|||
# Rainloop Setup
|
||||
|
||||
Rent a VPS with debian 10+ (or just run it yourself, but make sure it is correctly port forwarded so that public ip points to the machine like a vps).
|
||||
|
||||
Once you have ssh'd into your debian server as root, we can start:
|
||||
|
||||
## **Initial Setup**
|
||||
|
||||
First install all the dependencies:
|
||||
|
||||
|
||||
apt install php7.4 php7.4-common php7.4-curl php7.4-xml php7.4-fpm php7.4-json php7.4-dev php7.4-mysql nginx curl socat unzip -y
|
||||
|
||||
|
||||
|
||||
Then configure nginx:
|
||||
|
||||
|
||||
wget https://blog.nowhere.moe/servers/rainloop/rainloop.conf -O /etc/nginx/sites-available/rainloop.conf
|
||||
nano /etc/nginx/sites-available/rainloop.conf
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
Here make sure you edit the configuration file properly so that the domain name matches your own domain name. once you're done editing the file, hit CTRL+S to save and CTRL+X to exit nano. If you don't have a domain name, just go for a free alternative like [DuckDNS](https://www.duckdns.org).
|
||||
|
||||

|
||||
|
||||
You can verify it is working by doing the following:
|
||||
|
||||

|
||||
|
||||
Next we're going to get a free letsencrypt SSL certificate using acme.sh:
|
||||
|
||||
|
||||
wget -O - https://get.acme.sh | sh
|
||||
source ~/.bashrc
|
||||
systemctl stop nginx
|
||||
acme.sh --issue --standalone -d ech2.duckdns.org -k 4096
|
||||
systemctl start nginx
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
Next we enable the site:
|
||||
|
||||
|
||||
ln -s /etc/nginx/sites-available/rainloop.conf /etc/nginx/sites-enabled/rainloop.conf
|
||||
nginx -t
|
||||
systemctl restart nginx
|
||||
|
||||
|
||||
Once that's done, reload nginx and install rainloop:
|
||||
|
||||
|
||||
cd /opt
|
||||
wget http://www.rainloop.net/repository/webmail/rainloop-community-latest.zip
|
||||
unzip rainloop-community-latest.zip -d /var/www/
|
||||
chown www-data: -R /var/www/
|
||||
|
||||
|
||||
|
||||
Next configure php7.4-fpm correctly:
|
||||
|
||||
|
||||
cd /etc/php/7.4/
|
||||
|
||||
echo 'date.timezone = Europe/Paris' >> fpm/php.ini
|
||||
echo 'date.timezone = Europe/Paris' >> cli/php.ini
|
||||
|
||||
systemctl enable --now php7.4-fpm nginx
|
||||
systemctl restart php7.4-fpm nginx
|
||||
|
||||
|
||||
Once that's done, simply browse to your website:
|
||||
|
||||

|
||||
|
||||
You need to browse to the url "https://ech2.duckdns.org/?admin", The default admin password is admin:12345
|
||||
|
||||

|
||||
|
||||
Once you're logged in, make sure to change the admin password
|
||||
|
||||
 
|
||||
|
||||
And you're done! now you simply need to configure rainloop and test if it is working, so log out, and go back to the root directory https://ech2.duckdns.org/:
|
||||
|
||||
##
|
||||
|
||||
## **Linking it to an existing SMTP server**
|
||||
|
||||
Follow this [tutorial](../mail2/index.md) on how to setup a SMTP server:
|
||||
|
||||
   
|
||||
|
||||
And now try to login:
|
||||
|
||||

|
||||
|
||||
And that's it! We managed to login:
|
||||
|
||||

|
||||
|