Merge pull request #489 from maxking/fix-mailman-root

Run mailman aliases command as mailman user
This commit is contained in:
Abhilash Raj
2021-08-18 23:00:43 -07:00
committed by GitHub

View File

@@ -224,10 +224,10 @@ echo "HYPERKITTY_API_KEY not defined, skipping HyperKitty setup..."
fi
# Generate the LMTP files for postfix if needed.
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 "$@"