From a1a8d7cd3789db0bc386e57c96cfbd97f342f72f Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Wed, 18 Aug 2021 00:00:26 +0000 Subject: [PATCH 1/2] Run mailman aliases command as mailman user --- core/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/docker-entrypoint.sh b/core/docker-entrypoint.sh index 6bc9d38..6fd2cc0 100755 --- a/core/docker-entrypoint.sh +++ b/core/docker-entrypoint.sh @@ -225,7 +225,7 @@ echo "HYPERKITTY_API_KEY not defined, skipping HyperKitty setup..." fi # Generate the LMTP files for postfix if needed. -mailman aliases +su-exec mailman mailman aliases # Now chown the places where mailman wants to write stuff. chown -R mailman /opt/mailman From 5b9b22cc0991e9e8cfd43a33325ec22b28db2a13 Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Wed, 18 Aug 2021 21:56:30 -0700 Subject: [PATCH 2/2] Update docker-entrypoint.sh --- core/docker-entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/docker-entrypoint.sh b/core/docker-entrypoint.sh index 6fd2cc0..38338ad 100755 --- a/core/docker-entrypoint.sh +++ b/core/docker-entrypoint.sh @@ -224,10 +224,10 @@ echo "HYPERKITTY_API_KEY not defined, skipping HyperKitty setup..." fi -# Generate the LMTP files for postfix if needed. -su-exec mailman mailman aliases - # Now chown the places where mailman wants to write stuff. chown -R mailman /opt/mailman +# Generate the LMTP files for postfix if needed. +su-exec mailman mailman aliases + exec su-exec mailman "$@"