From 6c21c0d20434ba7134f1f6cb9cafcd19d79d0d1d Mon Sep 17 00:00:00 2001 From: dcarrillo Date: Sun, 8 Mar 2020 13:26:50 +0100 Subject: [PATCH] Fix aliases database population on startup --- service/postfix/run | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service/postfix/run b/service/postfix/run index 4de4c43..28603dc 100755 --- a/service/postfix/run +++ b/service/postfix/run @@ -18,10 +18,11 @@ if [ -n "$MY_NETWORKS" ]; then fi if [ -n "$MY_ROOT_ALIAS" ]; then - echo "root: $MY_ROOT_ALIAS" > /etc/aliases - newaliases + sed -iE "s/^#root:.*/root: $MY_ROOT_ALIAS/" /etc/postfix/aliases fi +newaliases -v + # Ensure rsyslog is up sv start rsyslog || exit 1