You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-08-10 22:31:47 +02:00
Add a rainloop Webmail image, fixes #58
This commit is contained in:
2
.env
2
.env
@@ -39,7 +39,7 @@ COMPOSE_PROJECT_NAME=freeposte
|
||||
# Choose which frontend Web server to run if any (value: nginx, none)
|
||||
FRONTEND=none
|
||||
|
||||
# Choose which webmail to run if any (values: roundcube, none)
|
||||
# Choose which webmail to run if any (values: roundcube, rainloop, none)
|
||||
WEBMAIL=none
|
||||
|
||||
###################################
|
||||
|
@@ -25,7 +25,7 @@ Features
|
||||
Main features include:
|
||||
|
||||
- **Standard email server**, IMAP and IMAP+, SMTP and Submission
|
||||
- **Web access**, Roundcube-based Webmail and adminitration interface
|
||||
- **Web access**, multiple Webmails and adminitration interface
|
||||
- **User features**, aliases, auto-reply, auto-forward, fetched accounts
|
||||
- **Admin features**, global admins, per-domain delegation, quotas
|
||||
- **Security**, enforced TLS, outgoing DKIM, anti-virus scanner
|
||||
|
27
rainloop/Dockerfile
Normal file
27
rainloop/Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM php:5-apache
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
unzip
|
||||
|
||||
ENV RAINLOOP_URL https://github.com/RainLoop/rainloop-webmail/releases/download/v1.10.3.151/rainloop-community-1.10.3.151-aa8d0c41baec166a35bb9855ee3d07b9.zip
|
||||
|
||||
RUN echo date.timezone=UTC > /usr/local/etc/php/conf.d/timezone.ini
|
||||
|
||||
RUN cd /var/www/html \
|
||||
&& rm -rf ./* \
|
||||
&& curl -L -O ${RAINLOOP_URL} \
|
||||
&& unzip *.zip \
|
||||
&& rm -f *.zip \
|
||||
&& rm -rf data/ \
|
||||
&& find . -type d -exec chmod 755 {} \; \
|
||||
&& find . -type f -exec chmod 644 {} \; \
|
||||
&& chown -R www-data: *
|
||||
|
||||
COPY include.php /var/www/html/include.php
|
||||
|
||||
COPY config.ini /config.ini
|
||||
COPY default.ini /default.ini
|
||||
|
||||
COPY start.sh /start.sh
|
||||
|
||||
CMD ["/start.sh"]
|
7
rainloop/config.ini
Normal file
7
rainloop/config.ini
Normal file
@@ -0,0 +1,7 @@
|
||||
; RainLoop Webmail configuration file
|
||||
|
||||
[security]
|
||||
allow_admin_panel = Off
|
||||
|
||||
[labs]
|
||||
allow_gravatar = Off
|
15
rainloop/default.ini
Normal file
15
rainloop/default.ini
Normal file
@@ -0,0 +1,15 @@
|
||||
imap_host = "imap"
|
||||
imap_port = 143
|
||||
imap_secure = "TLS"
|
||||
imap_short_login = Off
|
||||
sieve_use = Off
|
||||
sieve_allow_raw = Off
|
||||
sieve_host = ""
|
||||
sieve_port = 4190
|
||||
sieve_secure = "None"
|
||||
smtp_host = "smtp"
|
||||
smtp_port = 587
|
||||
smtp_secure = "TLS"
|
||||
smtp_short_login = Off
|
||||
smtp_auth = On
|
||||
smtp_php_mail = Off
|
19
rainloop/include.php
Normal file
19
rainloop/include.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
// Rename this file to "include.php" to enable it.
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
function __get_custom_data_full_path()
|
||||
{
|
||||
return '/data/'; // custom data folder path
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
function __get_additional_configuration_name()
|
||||
{
|
||||
return 'config.ini';
|
||||
}
|
13
rainloop/start.sh
Executable file
13
rainloop/start.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Fix some permissions
|
||||
chown -R www-data:www-data /data
|
||||
|
||||
# There is no cleaner way to setup the default SMTP/IMAP server or to
|
||||
# override the configuration
|
||||
rm -f /data/_data_/_default_/domains/*
|
||||
cp /default.ini /data/_data_/_default_/domains/
|
||||
cp /config.ini /data/_data_/_default_/configs/
|
||||
|
||||
# Run apache
|
||||
exec apache2-foreground
|
Reference in New Issue
Block a user