Rename the webmails directory
This commit is contained in:
27
webmails/rainloop/Dockerfile
Normal file
27
webmails/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.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"]
|
||||
10
webmails/rainloop/config.ini
Normal file
10
webmails/rainloop/config.ini
Normal file
@@ -0,0 +1,10 @@
|
||||
; RainLoop Webmail configuration file
|
||||
|
||||
[webmail]
|
||||
attachment_size_limit = 25
|
||||
|
||||
[security]
|
||||
allow_admin_panel = Off
|
||||
|
||||
[labs]
|
||||
allow_gravatar = Off
|
||||
15
webmails/rainloop/default.ini
Normal file
15
webmails/rainloop/default.ini
Normal 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
|
||||
19
webmails/rainloop/include.php
Normal file
19
webmails/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';
|
||||
}
|
||||
3
webmails/rainloop/php.ini
Normal file
3
webmails/rainloop/php.ini
Normal file
@@ -0,0 +1,3 @@
|
||||
date.timezone=UTC
|
||||
upload_max_filesize = 25M
|
||||
post_max_size = 25M
|
||||
14
webmails/rainloop/start.sh
Executable file
14
webmails/rainloop/start.sh
Executable 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
|
||||
28
webmails/roundcube/Dockerfile
Normal file
28
webmails/roundcube/Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
FROM php:5-apache
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libfreetype6-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
libmcrypt-dev \
|
||||
libpng12-dev \
|
||||
&& docker-php-ext-install pdo_mysql mcrypt
|
||||
|
||||
ENV ROUNDCUBE_URL https://github.com/roundcube/roundcubemail/releases/download/1.2.3/roundcubemail-1.2.3-complete.tar.gz
|
||||
|
||||
RUN echo date.timezone=UTC > /usr/local/etc/php/conf.d/timezone.ini
|
||||
|
||||
RUN rm -rf /var/www/html/ \
|
||||
&& cd /var/www \
|
||||
&& curl -L -O ${ROUNDCUBE_URL} \
|
||||
&& tar -xf *.tar.gz \
|
||||
&& rm -f *.tar.gz \
|
||||
&& mv roundcubemail-* html \
|
||||
&& cd html \
|
||||
&& rm -rf CHANGELOG INSTALL LICENSE README.md UPGRADING composer.json-dist installer \
|
||||
&& chown -R www-data: logs
|
||||
|
||||
COPY config.inc.php /var/www/html/config/
|
||||
|
||||
COPY start.sh /start.sh
|
||||
|
||||
CMD ["/start.sh"]
|
||||
45
webmails/roundcube/config.inc.php
Normal file
45
webmails/roundcube/config.inc.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
$config = array();
|
||||
|
||||
// Generals
|
||||
$config['db_dsnw'] = 'sqlite:////data/roundcube.db';
|
||||
$config['des_key'] = getenv('SECRET_KEY');
|
||||
$config['identities_level'] = 3;
|
||||
$config['reply_all_mode'] = 1;
|
||||
|
||||
// List of active plugins (in plugins/ directory)
|
||||
$config['plugins'] = array(
|
||||
'archive',
|
||||
'zipdownload',
|
||||
'markasjunk',
|
||||
'managesieve'
|
||||
);
|
||||
|
||||
// Mail servers
|
||||
$config['default_host'] = 'front';
|
||||
$config['default_port'] = 10143;
|
||||
$config['smtp_server'] = 'front';
|
||||
$config['smtp_port'] = 10025;
|
||||
$config['smtp_user'] = '%u';
|
||||
$config['smtp_pass'] = '%p';
|
||||
|
||||
// Sieve script management
|
||||
$config['managesieve_host'] = 'imap';
|
||||
$config['managesieve_usetls'] = true;
|
||||
|
||||
// We access the IMAP and SMTP servers locally with internal names, SSL
|
||||
// will obviously fail but this sounds better than allowing insecure login
|
||||
// from the outter world
|
||||
$ssl_no_check = array(
|
||||
'ssl' => array(
|
||||
'verify_peer' => false,
|
||||
'verify_peer_name' => false,
|
||||
),
|
||||
);
|
||||
$config['imap_conn_options'] = $ssl_no_check;
|
||||
$config['smtp_conn_options'] = $ssl_no_check;
|
||||
$config['managesieve_conn_options'] = $ssl_no_check;
|
||||
|
||||
// skin name: folder from skins/
|
||||
$config['skin'] = 'larry';
|
||||
7
webmails/roundcube/start.sh
Executable file
7
webmails/roundcube/start.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Fix some permissions
|
||||
chown -R www-data:www-data /data
|
||||
|
||||
# Run apache
|
||||
exec apache2-foreground
|
||||
Reference in New Issue
Block a user