From 12a4731f0ce07e0ed6f4c9aba30798f075463bc8 Mon Sep 17 00:00:00 2001 From: Jonathan Gazeley Date: Fri, 23 Feb 2024 22:02:33 +0000 Subject: [PATCH] Drop supervisor and run Postfix in the foreground --- Dockerfile | 2 +- etc/supervisor.d/postfix.ini | 6 ------ smtp-relay.sh | 3 ++- 3 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 etc/supervisor.d/postfix.ini diff --git a/Dockerfile b/Dockerfile index 1e8a2fd..33bfe11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:3.19 LABEL maintainer "Jonathan Gazeley" -RUN apk add --no-cache postfix supervisor \ +RUN apk add --no-cache postfix \ && /usr/bin/newaliases COPY . / diff --git a/etc/supervisor.d/postfix.ini b/etc/supervisor.d/postfix.ini deleted file mode 100644 index 76fd367..0000000 --- a/etc/supervisor.d/postfix.ini +++ /dev/null @@ -1,6 +0,0 @@ -[program:postfix] -process_name = master -directory = /etc/postfix -command = /usr/sbin/postfix -c /etc/postfix start -startsecs = 0 -autorestart = false \ No newline at end of file diff --git a/smtp-relay.sh b/smtp-relay.sh index f20b146..e4d9bdb 100755 --- a/smtp-relay.sh +++ b/smtp-relay.sh @@ -34,4 +34,5 @@ postconf 'always_add_missing_headers = yes' || exit 1 # Log to stdout postconf 'maillog_file = /dev/stdout' || exit 1 -/usr/bin/supervisord -n +# Start postfix +postfix start-fg