Skip to content

Commit

Permalink
feat: Removed supervisor and rsyslog
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
juanluisbaptiste committed May 22, 2021
1 parent 546e849 commit 1cfdcb5
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 237 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ MAINTAINER Juan Luis Baptiste juan.baptiste@gmail.com

RUN apk update && \
apk add bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \
perl supervisor postfix rsyslog && \
postfix && \
rm -rf /var/cache/apk/* && \
mkdir -p /var/log/supervisor/ /var/run/supervisor/ && \
sed -i -e 's/inet_interfaces = localhost/inet_interfaces = all/g' /etc/postfix/main.cf

COPY etc/ /etc/
COPY run.sh /
RUN chmod +x /run.sh
RUN newaliases
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ This image is available for the following architectures:
* armv7
* arm64

It also includes rsyslog to enable logging to stdout.


_If you want to follow the development of this project check out [my blog](https://www.juanbaptiste.tech/category/postfx)._

### Available image tags
Expand Down
90 changes: 0 additions & 90 deletions etc/rsyslog.conf

This file was deleted.

1 change: 0 additions & 1 deletion etc/rsyslog.d/listen.conf

This file was deleted.

129 changes: 0 additions & 129 deletions etc/supervisord.conf

This file was deleted.

5 changes: 0 additions & 5 deletions etc/supervisord.d/postfix.ini

This file was deleted.

4 changes: 0 additions & 4 deletions etc/supervisord.d/readlog.ini

This file was deleted.

2 changes: 0 additions & 2 deletions etc/supervisord.d/rsyslog.ini

This file was deleted.

3 changes: 2 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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

0 comments on commit 1cfdcb5

Please sign in to comment.