feat: Removed supervisor and rsyslog

As mentioned in discussion #54, since version 3.3.0, postfix can run in
foreground mode, and since 3.4.0 it can log directly to stdout.
This commit is contained in:
Juan Luis Baptiste
2021-04-27 16:44:39 -05:00
committed by Juan Luis Baptiste
parent 546e849593
commit 1cfdcb5f18
9 changed files with 3 additions and 237 deletions

3
run.sh
View File

@@ -26,6 +26,7 @@ SMTP_PORT="${SMTP_PORT:-587}"
DOMAIN=`echo ${SERVER_HOSTNAME} | awk 'BEGIN{FS=OFS="."}{print $(NF-1),$NF}'`
# Set needed config options
add_config_value "maillog_file" "/dev/stdout"
add_config_value "myhostname" ${SERVER_HOSTNAME}
add_config_value "mydomain" ${DOMAIN}
add_config_value "mydestination" 'localhost'
@@ -90,4 +91,4 @@ fi
# starting services
rm -f /var/spool/postfix/pid/master.pid
exec supervisord -c /etc/supervisord.conf
exec /usr/sbin/postfix -c /etc/postfix start-fg