From a9871d05b2349390e7ca98d477aaa95220d80c93 Mon Sep 17 00:00:00 2001
From: Vermium Sifell
Date: Wed, 2 Nov 2022 23:42:37 +0100
Subject: [PATCH 01/19] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Fixed=20invalid=20re?=
=?UTF-8?q?gexs=20for=20banning?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
data/Dockerfiles/netfilter/server.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/data/Dockerfiles/netfilter/server.py b/data/Dockerfiles/netfilter/server.py
index 382a3f78..1ccc150e 100644
--- a/data/Dockerfiles/netfilter/server.py
+++ b/data/Dockerfiles/netfilter/server.py
@@ -97,9 +97,9 @@ def refreshF2bregex():
f2bregex[3] = 'warning: .*\[([0-9a-f\.:]+)\]: SASL .+ authentication failed: (?!.*Connection lost to authentication server).+'
f2bregex[4] = 'warning: non-SMTP command from .*\[([0-9a-f\.:]+)]:.+'
f2bregex[5] = 'NOQUEUE: reject: RCPT from \[([0-9a-f\.:]+)].+Protocol error.+'
- f2bregex[6] = '-login: Disconnected \(auth failed, .+\): user=.*, method=.+, rip=([0-9a-f\.:]+),'
- f2bregex[7] = '-login: Aborted login \(auth failed .+\): user=.+, rip=([0-9a-f\.:]+), lip.+'
- f2bregex[8] = '-login: Aborted login \(tried to use disallowed .+\): user=.+, rip=([0-9a-f\.:]+), lip.+'
+ f2bregex[6] = '-login: Disconnected.+ \(auth failed, .+\): user=.*, method=.+, rip=([0-9a-f\.:]+),'
+ f2bregex[7] = '-login: Aborted login.+ \(auth failed .+\): user=.+, rip=([0-9a-f\.:]+), lip.+'
+ f2bregex[8] = '-login: Aborted login.+ \(tried to use disallowed .+\): user=.+, rip=([0-9a-f\.:]+), lip.+'
f2bregex[9] = 'SOGo.+ Login from \'([0-9a-f\.:]+)\' for user .+ might not have worked'
f2bregex[10] = '([0-9a-f\.:]+) \"GET \/SOGo\/.* HTTP.+\" 403 .+'
r.set('F2B_REGEX', json.dumps(f2bregex, ensure_ascii=False))
From 77f04d10c791ed4320ea915eefb43a9fc0c407db Mon Sep 17 00:00:00 2001
From: DerLinkman
Date: Thu, 1 Dec 2022 23:02:03 +0100
Subject: [PATCH 02/19] Update Base Images to Alpine 3.17
---
data/Dockerfiles/acme/Dockerfile | 2 +-
data/Dockerfiles/dockerapi/Dockerfile | 2 +-
data/Dockerfiles/netfilter/Dockerfile | 2 +-
data/Dockerfiles/olefy/Dockerfile | 2 +-
data/Dockerfiles/phpfpm/Dockerfile | 2 +-
data/Dockerfiles/unbound/Dockerfile | 2 +-
data/Dockerfiles/watchdog/Dockerfile | 2 +-
docker-compose.yml | 14 +++++++-------
8 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/data/Dockerfiles/acme/Dockerfile b/data/Dockerfiles/acme/Dockerfile
index f5b7b56c..571c3d08 100644
--- a/data/Dockerfiles/acme/Dockerfile
+++ b/data/Dockerfiles/acme/Dockerfile
@@ -1,4 +1,4 @@
-FROM alpine:3.16
+FROM alpine:3.17
LABEL maintainer "Andre Peters "
diff --git a/data/Dockerfiles/dockerapi/Dockerfile b/data/Dockerfiles/dockerapi/Dockerfile
index 41d4a78f..e7907531 100644
--- a/data/Dockerfiles/dockerapi/Dockerfile
+++ b/data/Dockerfiles/dockerapi/Dockerfile
@@ -1,4 +1,4 @@
-FROM alpine:3.16
+FROM alpine:3.17
LABEL maintainer "Andre Peters "
diff --git a/data/Dockerfiles/netfilter/Dockerfile b/data/Dockerfiles/netfilter/Dockerfile
index 621da149..bc707391 100644
--- a/data/Dockerfiles/netfilter/Dockerfile
+++ b/data/Dockerfiles/netfilter/Dockerfile
@@ -1,4 +1,4 @@
-FROM alpine:3.16
+FROM alpine:3.17
LABEL maintainer "Andre Peters "
ENV XTABLES_LIBDIR /usr/lib/xtables
diff --git a/data/Dockerfiles/olefy/Dockerfile b/data/Dockerfiles/olefy/Dockerfile
index 889f84b4..10d63d02 100644
--- a/data/Dockerfiles/olefy/Dockerfile
+++ b/data/Dockerfiles/olefy/Dockerfile
@@ -1,4 +1,4 @@
-FROM alpine:3.16
+FROM alpine:3.17
LABEL maintainer "Andre Peters "
WORKDIR /app
diff --git a/data/Dockerfiles/phpfpm/Dockerfile b/data/Dockerfiles/phpfpm/Dockerfile
index 38c68f70..93acb33f 100644
--- a/data/Dockerfiles/phpfpm/Dockerfile
+++ b/data/Dockerfiles/phpfpm/Dockerfile
@@ -1,4 +1,4 @@
-FROM php:8.1-fpm-alpine3.16
+FROM php:8.1-fpm-alpine3.17
LABEL maintainer "Andre Peters "
ENV APCU_PECL 5.1.22
diff --git a/data/Dockerfiles/unbound/Dockerfile b/data/Dockerfiles/unbound/Dockerfile
index 0b1cefe9..d9756d04 100644
--- a/data/Dockerfiles/unbound/Dockerfile
+++ b/data/Dockerfiles/unbound/Dockerfile
@@ -1,4 +1,4 @@
-FROM alpine:3.16
+FROM alpine:3.17
LABEL maintainer "Andre Peters "
diff --git a/data/Dockerfiles/watchdog/Dockerfile b/data/Dockerfiles/watchdog/Dockerfile
index 637c4680..654dea08 100644
--- a/data/Dockerfiles/watchdog/Dockerfile
+++ b/data/Dockerfiles/watchdog/Dockerfile
@@ -1,4 +1,4 @@
-FROM alpine:3.16
+FROM alpine:3.17
LABEL maintainer "André Peters "
# Installation
diff --git a/docker-compose.yml b/docker-compose.yml
index 621eb610..7f7c2428 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -2,7 +2,7 @@ version: '2.1'
services:
unbound-mailcow:
- image: mailcow/unbound:1.16
+ image: mailcow/unbound:1.17
environment:
- TZ=${TZ}
volumes:
@@ -106,7 +106,7 @@ services:
- rspamd
php-fpm-mailcow:
- image: mailcow/phpfpm:1.80
+ image: mailcow/phpfpm:1.81
command: "php-fpm -d date.timezone=${TZ} -d expose_php=0"
depends_on:
- redis-mailcow
@@ -388,7 +388,7 @@ services:
acme-mailcow:
depends_on:
- nginx-mailcow
- image: mailcow/acme:1.82
+ image: mailcow/acme:1.83
dns:
- ${IPV4_NETWORK:-172.22.1}.254
environment:
@@ -424,7 +424,7 @@ services:
- acme
netfilter-mailcow:
- image: mailcow/netfilter:1.49
+ image: mailcow/netfilter:1.50
stop_grace_period: 30s
depends_on:
- dovecot-mailcow
@@ -447,7 +447,7 @@ services:
- /lib/modules:/lib/modules:ro
watchdog-mailcow:
- image: mailcow/watchdog:1.96
+ image: mailcow/watchdog:1.97
dns:
- ${IPV4_NETWORK:-172.22.1}.254
tmpfs:
@@ -509,7 +509,7 @@ services:
- watchdog
dockerapi-mailcow:
- image: mailcow/dockerapi:1.42
+ image: mailcow/dockerapi:1.43
security_opt:
- label=disable
restart: always
@@ -543,7 +543,7 @@ services:
- solr
olefy-mailcow:
- image: mailcow/olefy:1.10
+ image: mailcow/olefy:1.11
restart: always
environment:
- TZ=${TZ}
From 299a342a62b8c9c57efe2799095c850a181ec743 Mon Sep 17 00:00:00 2001
From: DerLinkman
Date: Thu, 8 Dec 2022 15:57:24 +0100
Subject: [PATCH 03/19] [Nextcloud] Update to 25 + purge fix (DB)
---
helper-scripts/nextcloud.sh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/helper-scripts/nextcloud.sh b/helper-scripts/nextcloud.sh
index 94bc997a..16311fc2 100755
--- a/helper-scripts/nextcloud.sh
+++ b/helper-scripts/nextcloud.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+NEXTCLOUD_VER="25"
for bin in curl dirmngr; do
if [[ -z $(which ${bin}) ]]; then echo "Cannot find ${bin}, exiting..."; exit 1; fi
@@ -40,7 +41,7 @@ if [[ ${NC_PURGE} == "y" ]]; then
fi
docker exec -it $(docker ps -f name=mysql-mailcow -q) mysql -uroot -p${DBROOT} -e \
- "$(docker exec -it $(docker ps -f name=mysql-mailcow -q) mysql -uroot -p${DBROOT} -e "SELECT IFNULL(GROUP_CONCAT('DROP TABLE ', TABLE_SCHEMA, '.', TABLE_NAME SEPARATOR ';'),'SELECT NULL;') FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE 'nc_%' AND TABLE_SCHEMA = '${DBNAME}';" -BN)"
+ "$(docker exec -it $(docker ps -f name=mysql-mailcow -q) mysql -uroot -p${DBROOT} -e "SELECT IFNULL(GROUP_CONCAT('DROP TABLE ', TABLE_SCHEMA, '.', TABLE_NAME SEPARATOR ';'),'SELECT NULL;') FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE 'oc_%' AND TABLE_SCHEMA = '${DBNAME}';" -BN)"
docker exec -it $(docker ps -f name=redis-mailcow -q) /bin/sh -c ' cat <
Date: Mon, 12 Dec 2022 16:09:13 +0100
Subject: [PATCH 04/19] Update tweet-trigger-publish-release.yml
---
.github/workflows/tweet-trigger-publish-release.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/tweet-trigger-publish-release.yml b/.github/workflows/tweet-trigger-publish-release.yml
index daebfe53..0f0d4516 100644
--- a/.github/workflows/tweet-trigger-publish-release.yml
+++ b/.github/workflows/tweet-trigger-publish-release.yml
@@ -17,4 +17,4 @@ jobs:
consumer_secret: ${{ secrets.CONSUMER_SECRET }}
access_token_key: ${{ secrets.ACCESS_TOKEN_KEY }}
access_token_secret: ${{ secrets.ACCESS_TOKEN_SECRET }}
- tweet_body: '$RELEASE_TAG is here! Checkout the GitHub Page for changelog regarding the $RELEASE_TAG Release: github.com/mailcow/mailcow-dockerized/releases/tag/$RELEASE_TAG'
\ No newline at end of file
+ tweet_body: 'A new mailcow update has just been released! Checkout the GitHub Page for changelog and more informations: github.com/mailcow/mailcow-dockerized/releases/tag/latest'
From 13175b4e6c777116929fd9b602ca7a6b79f45b4b Mon Sep 17 00:00:00 2001
From: DerLinkman
Date: Mon, 12 Dec 2022 16:29:33 +0100
Subject: [PATCH 05/19] Updated README.md
---
README.md | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 313fa13b..b40a767c 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,5 @@
# mailcow: dockerized - 🐮 + 🐋 = 💕
-## We stand with 🇺🇦
-
[](https://github.com/mailcow/mailcow-dockerized/actions/workflows/integration_tests.yml)
[](https://translate.mailcow.email/engage/mailcow-dockerized/)
[](https://twitter.com/mailcow_email)
@@ -36,3 +34,9 @@ Telegram desktop clients are available for [multiple platforms](https://desktop.
**Important**: mailcow makes use of various open-source software. Please assure you agree with their license before using mailcow.
Any part of mailcow itself is released under **GNU General Public License, Version 3**.
+
+mailcow is a registered word mark of The Infrastructure Company GmbH, Parkstr. 42, 47877 Willich, Germany.
+
+The project is managed and maintained by The Infrastructure Company GmbH.
+
+Originated from @andryyy (André)
\ No newline at end of file
From 83bd66db98e4bab629f29d6d74365e7a5eeaba6a Mon Sep 17 00:00:00 2001
From: DerLinkman
Date: Tue, 13 Dec 2022 11:52:04 +0100
Subject: [PATCH 06/19] [Update.sh] Increased Timeout for online status check
---
update.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/update.sh b/update.sh
index 3eca2ea6..34d17354 100755
--- a/update.sh
+++ b/update.sh
@@ -5,7 +5,7 @@
check_online_status() {
CHECK_ONLINE_DOMAINS=('https://github.com' 'https://hub.docker.com')
for domain in "${CHECK_ONLINE_DOMAINS[@]}"; do
- if timeout 3 curl --head --silent --output /dev/null ${domain}; then
+ if timeout 6 curl --head --silent --output /dev/null ${domain}; then
return 0
fi
done
From 3a13c9302265e9d2119294c147dbcc47e85f1012 Mon Sep 17 00:00:00 2001
From: DerLinkman
Date: Tue, 13 Dec 2022 12:38:15 +0100
Subject: [PATCH 07/19] [SOGo] Updated to newer SOGo 5.8.0 (CalDav Issue fix)
---
docker-compose.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docker-compose.yml b/docker-compose.yml
index 130e97b8..a0f275c5 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -168,7 +168,7 @@ services:
- phpfpm
sogo-mailcow:
- image: mailcow/sogo:1.112
+ image: mailcow/sogo:1.113
environment:
- DBNAME=${DBNAME}
- DBUSER=${DBUSER}
From 87214fef70fca6a05fd45302eb7f24bdcaf07ed3 Mon Sep 17 00:00:00 2001
From: Niklas Meyer <62480600+DerLinkman@users.noreply.github.com>
Date: Tue, 13 Dec 2022 15:16:47 +0100
Subject: [PATCH 08/19] Update tweet-trigger-publish-release.yml
---
.github/workflows/tweet-trigger-publish-release.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/tweet-trigger-publish-release.yml b/.github/workflows/tweet-trigger-publish-release.yml
index 0f0d4516..86cf628d 100644
--- a/.github/workflows/tweet-trigger-publish-release.yml
+++ b/.github/workflows/tweet-trigger-publish-release.yml
@@ -17,4 +17,4 @@ jobs:
consumer_secret: ${{ secrets.CONSUMER_SECRET }}
access_token_key: ${{ secrets.ACCESS_TOKEN_KEY }}
access_token_secret: ${{ secrets.ACCESS_TOKEN_SECRET }}
- tweet_body: 'A new mailcow update has just been released! Checkout the GitHub Page for changelog and more informations: github.com/mailcow/mailcow-dockerized/releases/tag/latest'
+ tweet_body: 'A new mailcow update has just been released! Checkout the GitHub Page for changelog and more informations: https://github.com/mailcow/mailcow-dockerized/releases/latest'
From 118984dfff395cafc3aaeea3bf6593520466ab78 Mon Sep 17 00:00:00 2001
From: mhupfauer
Date: Tue, 13 Dec 2022 22:38:45 +0100
Subject: [PATCH 09/19] Update bulk_header.map
AWeber is a massive Mail as a Service provider which is used by many legitimate corporations and should not be handled negatively by default.
---
data/conf/rspamd/custom/bulk_header.map | 1 -
1 file changed, 1 deletion(-)
diff --git a/data/conf/rspamd/custom/bulk_header.map b/data/conf/rspamd/custom/bulk_header.map
index 39aa7fea..69a20af8 100644
--- a/data/conf/rspamd/custom/bulk_header.map
+++ b/data/conf/rspamd/custom/bulk_header.map
@@ -3,7 +3,6 @@
/.*episerver.*/i
/.*supergewinne.*/i
/List-Unsubscribe.*nbps\.eu/i
-/X-Mailer: AWeber.*/i
/.*regiofinder.*/i
/.*EmailSocket.*/i
/List-Unsubscribe:.*respread.*/i
From bfd53293633a386909aba5603f3a2227d30480e0 Mon Sep 17 00:00:00 2001
From: knuth
Date: Fri, 16 Dec 2022 13:57:01 +0100
Subject: [PATCH 10/19] docker comes with compose
---
.github/workflows/image_builds.yml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/.github/workflows/image_builds.yml b/.github/workflows/image_builds.yml
index fe660754..65678dff 100644
--- a/.github/workflows/image_builds.yml
+++ b/.github/workflows/image_builds.yml
@@ -33,13 +33,11 @@ jobs:
run: |
curl -sSL https://get.docker.com/ | CHANNEL=stable sudo sh
sudo service docker start
- sudo curl -L https://github.com/docker/compose/releases/download/v$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- name: Prepair Image Builds
run: |
cp helper-scripts/docker-compose.override.yml.d/BUILD_FLAGS/docker-compose.override.yml docker-compose.override.yml
- name: Build Docker Images
run: |
- docker-compose build ${image}
+ docker compose build ${image}
env:
image: ${{ matrix.images }}
From a8d50955ee26ebe97d6b9d6229c635026bfbca47 Mon Sep 17 00:00:00 2001
From: knuth
Date: Fri, 16 Dec 2022 13:57:13 +0100
Subject: [PATCH 11/19] Use built in compose
---
data/web/_status.502.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/data/web/_status.502.html b/data/web/_status.502.html
index efbc0e8b..35a66ba9 100644
--- a/data/web/_status.502.html
+++ b/data/web/_status.502.html
@@ -13,12 +13,12 @@
Please check the logs or contact support if the error persists.
Quick debugging
Check Nginx and PHP logs:
- docker-compose logs --tail=200 php-fpm-mailcow nginx-mailcow
+ docker compose logs --tail=200 php-fpm-mailcow nginx-mailcow
Make sure your SQL credentials in mailcow.conf (a link to .env) do fit your initialized SQL volume. If you see an access denied, you might have the wrong mailcow.conf:
- source mailcow.conf ; docker-compose exec mysql-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME}
+ source mailcow.conf ; docker compose exec mysql-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME}
In case of a previous failed installation, create a backup of your existing data, followed by removing all volumes and starting over (NEVER do this with a production system, it will remove ALL data):
BACKUP_LOCATION=/tmp/ ./helper-scripts/backup_and_restore.sh backup all
- docker-compose down --volumes ; docker-compose up -d
+ docker compose down --volumes ; docker compose up -d
Make sure your timezone is correct. Use "America/New_York" for example, do not use spaces. Check here for a list.
Click to learn more about getting support.