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