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