From 8f4b1244a6ac7f350441b11ca9c8f989650c2334 Mon Sep 17 00:00:00 2001 From: Michael Kuron Date: Sat, 27 Jan 2018 17:43:05 +0100 Subject: [PATCH 01/10] [compose] add default values for IPV4_NETWORK, IPV6_NETWORK, LOG_LINES --- docker-compose.yml | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3c3b0c22..2a8a3cc2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,7 @@ services: restart: always networks: mailcow-network: - ipv4_address: ${IPV4_NETWORK}.254 + ipv4_address: ${IPV4_NETWORK:-172.22.1}.254 aliases: - unbound @@ -29,7 +29,7 @@ services: - MYSQL_PASSWORD=${DBPASS} restart: always dns: - - ${IPV4_NETWORK}.254 + - ${IPV4_NETWORK:-172.22.1}.254 networks: mailcow-network: aliases: @@ -43,10 +43,10 @@ services: environment: - TZ=${TZ} dns: - - ${IPV4_NETWORK}.254 + - ${IPV4_NETWORK:-172.22.1}.254 networks: mailcow-network: - ipv4_address: ${IPV4_NETWORK}.249 + ipv4_address: ${IPV4_NETWORK:-172.22.1}.249 aliases: - redis @@ -60,7 +60,7 @@ services: volumes: - ./data/conf/clamav/:/etc/clamav/ dns: - - ${IPV4_NETWORK}.254 + - ${IPV4_NETWORK:-172.22.1}.254 networks: mailcow-network: aliases: @@ -83,7 +83,7 @@ services: - rspamd-vol-1:/var/lib/rspamd restart: always dns: - - ${IPV4_NETWORK}.254 + - ${IPV4_NETWORK:-172.22.1}.254 hostname: rspamd networks: mailcow-network: @@ -105,7 +105,7 @@ services: - ./data/conf/phpfpm/php-fpm.d/system.conf:/usr/local/etc/php-fpm.d/system.conf - ./data/conf/phpfpm/php-conf.d/opcache-recommended.ini:/usr/local/etc/php/conf.d/opcache-recommended.ini environment: - - LOG_LINES=${LOG_LINES} + - LOG_LINES=${LOG_LINES:-9999} - TZ=${TZ} - DBNAME=${DBNAME} - DBUSER=${DBUSER} @@ -121,7 +121,7 @@ services: - SMTP_PORT=${SMTP_PORT:-25} restart: always dns: - - ${IPV4_NETWORK}.254 + - ${IPV4_NETWORK:-172.22.1}.254 networks: mailcow-network: aliases: @@ -135,13 +135,13 @@ services: - DBUSER=${DBUSER} - DBPASS=${DBPASS} - TZ=${TZ} - - LOG_LINES=${LOG_LINES} + - LOG_LINES=${LOG_LINES:-9999} - MAILCOW_HOSTNAME=${MAILCOW_HOSTNAME} volumes: - ./data/conf/sogo/:/etc/sogo/ restart: always dns: - - ${IPV4_NETWORK}.254 + - ${IPV4_NETWORK:-172.22.1}.254 networks: mailcow-network: aliases: @@ -159,7 +159,7 @@ services: - vmail-vol-1:/var/vmail - crypt-vol-1:/mail_crypt/ environment: - - LOG_LINES=${LOG_LINES} + - LOG_LINES=${LOG_LINES:-9999} - DBNAME=${DBNAME} - DBUSER=${DBUSER} - DBPASS=${DBPASS} @@ -178,7 +178,7 @@ services: soft: 20000 hard: 40000 dns: - - ${IPV4_NETWORK}.254 + - ${IPV4_NETWORK:-172.22.1}.254 hostname: ${MAILCOW_HOSTNAME} networks: mailcow-network: @@ -194,7 +194,7 @@ services: - postfix-vol-1:/var/spool/postfix - crypt-vol-1:/var/lib/zeyple environment: - - LOG_LINES=${LOG_LINES} + - LOG_LINES=${LOG_LINES:-9999} - TZ=${TZ} - DBNAME=${DBNAME} - DBUSER=${DBUSER} @@ -207,7 +207,7 @@ services: - "${SUBMISSION_PORT:-587}:587" restart: always dns: - - ${IPV4_NETWORK}.254 + - ${IPV4_NETWORK:-172.22.1}.254 hostname: ${MAILCOW_HOSTNAME} networks: mailcow-network: @@ -218,7 +218,7 @@ services: image: memcached:alpine restart: always dns: - - ${IPV4_NETWORK}.254 + - ${IPV4_NETWORK:-172.22.1}.254 networks: mailcow-network: aliases: @@ -253,7 +253,7 @@ services: - "${HTTP_BIND:-0.0.0.0}:${HTTP_PORT:-80}:${HTTP_PORT:-80}" restart: always dns: - - ${IPV4_NETWORK}.254 + - ${IPV4_NETWORK:-172.22.1}.254 networks: mailcow-network: aliases: @@ -266,9 +266,9 @@ services: image: mailcow/acme:1.28 build: ./data/Dockerfiles/acme dns: - - ${IPV4_NETWORK}.254 + - ${IPV4_NETWORK:-172.22.1}.254 environment: - - LOG_LINES=${LOG_LINES} + - LOG_LINES=${LOG_LINES:-9999} - ADDITIONAL_SAN=${ADDITIONAL_SAN} - MAILCOW_HOSTNAME=${MAILCOW_HOSTNAME} - DBNAME=${DBNAME} @@ -301,10 +301,10 @@ services: environment: - TZ=${TZ} - SKIP_FAIL2BAN=${SKIP_FAIL2BAN:-n} - - IPV4_NETWORK=${IPV4_NETWORK} + - IPV4_NETWORK=${IPV4_NETWORK:-172.22.1} network_mode: "host" dns: - - ${IPV4_NETWORK}.254 + - ${IPV4_NETWORK:-172.22.1}.254 volumes: - /lib/modules:/lib/modules:ro @@ -317,7 +317,7 @@ services: - vmail-vol-1:/vmail:ro restart: always environment: - - LOG_LINES=${LOG_LINES} + - LOG_LINES=${LOG_LINES:-9999} - TZ=${TZ} - DBNAME=${DBNAME} - DBUSER=${DBUSER} @@ -361,8 +361,8 @@ networks: ipam: driver: default config: - - subnet: ${IPV4_NETWORK}.0/24 - - subnet: ${IPV6_NETWORK} + - subnet: ${IPV4_NETWORK:-172.22.1}.0/24 + - subnet: ${IPV6_NETWORK:-fd4d:6169:6c63:6f77::/64} volumes: vmail-vol-1: From afd078d7776acc947f27c6126141b1947f52bf9f Mon Sep 17 00:00:00 2001 From: Phoenix Eve Aspacio Date: Sun, 28 Jan 2018 11:53:48 +0800 Subject: [PATCH 02/10] Correction --- data/web/lang/lang.en.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/data/web/lang/lang.en.php b/data/web/lang/lang.en.php index a603314a..3fc99872 100644 --- a/data/web/lang/lang.en.php +++ b/data/web/lang/lang.en.php @@ -576,10 +576,10 @@ $lang['admin']['api_key'] = "API key"; $lang['admin']['activate_api'] = "Activate API"; $lang['admin']['regen_api_key'] = "Regenerate API key"; -$lang['admin']['quarantine'] = "Quarantaine"; -$lang['admin']['quarantine_retention_size'] = "Retentions per mailbox:"; -$lang['admin']['quarantine_max_size'] = "Maximum size in MiB (larger elements are discarded):"; -$lang['admin']['quarantine_exclude_domains'] = "Exclude domains and alias-domains:"; +$lang['admin']['quarantaine'] = "Quarantine"; +$lang['admin']['quarantaine_retention_size'] = "Retentions per mailbox:"; +$lang['admin']['quarantaine_max_size'] = "Maximum size in MiB (larger elements are discarded):"; +$lang['admin']['quarantaine_exclude_domains'] = "Exclude domains and alias-domains:"; $lang['admin']['ui_texts'] = "UI labels and texts"; $lang['admin']['help_text'] = "Override help text below login mask (HTML allowed)"; @@ -620,8 +620,8 @@ $lang['success']['reset_main_logo'] = "Reset to default logo"; $lang['success']['items_released'] = "Selected items were released"; $lang['danger']['imagick_exception'] = "Error: Imagick exception while reading image"; -$lang['quarantaine']['quarantaine'] = "Quarantaine"; -$lang['quarantaine']['qinfo'] = "The quarantaine system will save rejected mail to the database, while the sender will not be given the impression of a delivered mail."; +$lang['quarantaine']['quarantaine'] = "Quarantine"; +$lang['quarantaine']['qinfo'] = "The quarantine system will save rejected mail to the database, while the sender will not be given the impression of a delivered mail."; $lang['quarantaine']['release'] = "Release"; $lang['quarantaine']['empty'] = 'No results'; $lang['quarantaine']['toggle_all'] = 'Toggle all'; @@ -634,18 +634,18 @@ $lang['quarantaine']['qid'] = "Rspamd QID"; $lang['quarantaine']['sender'] = "Sender"; $lang['quarantaine']['show_item'] = "Show item"; $lang['quarantaine']['check_hash'] = "Search file hash @ VT"; -$lang['quarantaine']['qitem'] = "Quarantaine item"; +$lang['quarantaine']['qitem'] = "Quarantine item"; $lang['quarantaine']['subj'] = "Subject"; $lang['quarantaine']['text_plain_content'] = "Content (text/plain)"; $lang['quarantaine']['text_from_html_content'] = "Content (converted html)"; $lang['quarantaine']['atts'] = "Attachments"; -$lang['header']['quarantaine'] = "Quarantaine"; +$lang['header']['quarantaine'] = "Quarantine"; $lang['header']['debug'] = "Debug"; $lang['quarantaine']['release_body'] = "We have attached your message as eml file to this message."; $lang['danger']['release_send_failed'] = "Message could not be released: %s"; -$lang['quarantaine']['release_subject'] = "Potentially damaging quarantaine item %s"; +$lang['quarantaine']['release_subject'] = "Potentially damaging quarantine item %s"; $lang['mailbox']['bcc_map_type'] = "BCC type"; $lang['mailbox']['bcc_type'] = "BCC type"; From 28bc4a70ec24a60deee1eed80ab4b8c894f11970 Mon Sep 17 00:00:00 2001 From: Phoenix Eve Aspacio Date: Sun, 28 Jan 2018 11:54:32 +0800 Subject: [PATCH 03/10] Correction --- data/web/admin.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/data/web/admin.php b/data/web/admin.php index 6c0aabd5..0d4affd0 100644 --- a/data/web/admin.php +++ b/data/web/admin.php @@ -147,7 +147,7 @@ $tfa_data = get_tfa(); Relayhosts - + @@ -416,26 +416,26 @@ $tfa_data = get_tfa();
-
+
- +
- +
-
+