Rename the webmails directory

This commit is contained in:
kaiyou
2017-11-04 18:48:22 +01:00
parent edbea372e9
commit f22194d78b
9 changed files with 0 additions and 0 deletions

View 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.11.1/rainloop-community-1.11.1.zip
RUN rm -rf /var/www/html/ \
&& mkdir /var/www/html \
&& cd /var/www/html \
&& 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 php.ini /usr/local/etc/php/conf.d/rainloop.ini
COPY config.ini /config.ini
COPY default.ini /default.ini
COPY start.sh /start.sh
CMD ["/start.sh"]

View File

@@ -0,0 +1,10 @@
; RainLoop Webmail configuration file
[webmail]
attachment_size_limit = 25
[security]
allow_admin_panel = Off
[labs]
allow_gravatar = Off

View File

@@ -0,0 +1,15 @@
imap_host = "front"
imap_port = 10143
imap_secure = "None"
imap_short_login = Off
sieve_use = On
sieve_allow_raw = Off
sieve_host = "imap"
sieve_port = 4190
sieve_secure = "TLS"
smtp_host = "front"
smtp_port = 10025
smtp_secure = "None"
smtp_short_login = Off
smtp_auth = On
smtp_php_mail = Off

View 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';
}

View File

@@ -0,0 +1,3 @@
date.timezone=UTC
upload_max_filesize = 25M
post_max_size = 25M

14
webmails/rainloop/start.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
# There is no cleaner way to setup the default SMTP/IMAP server or to
# override the configuration
rm -f /data/_data_/_default_/domains/*
mkdir -p /data/_data_/_default_/domains/ /data/_data_/_default_/configs/
cp /default.ini /data/_data_/_default_/domains/
cp /config.ini /data/_data_/_default_/configs/
# Fix some permissions
chown -R www-data:www-data /data
# Run apache
exec apache2-foreground