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:
3
run.sh
3
run.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user