coreos-home-server/config/service/postfix/container/run-postfix
Alex Palaistras 75765576dc Fix various issues
The fixes here include typos, removals of deprecated paths, fixes for
first-boot-only systemd targets and related MariaDB migrate machinery,
better logging for Postfix, and an increase in the default request body
size for the default NGINX ingress.
2021-08-01 22:31:25 +01:00

17 lines
494 B
Bash
Executable File

#!/bin/sh
# Prepare configuration files for environment variable substitution.
ENV_NAMES="`env | awk -F '=' '{printf "$%s ", $1}'`"
for file in /etc/postfix/*.template; do
envsubst "${ENV_NAMES}" < "$file" > "`echo $file | awk -F '.template$' '{print $1}'`"
done
# Generate local aliases and virtual maps.
postalias /etc/postfix/aliases
# Ensure local files are correctly configured.
postfix set-permissions
# Run master daemon for Postfix.
/usr/lib/postfix/sbin/master -c /etc/postfix -d