Upgrade Postfix to 3.3, supporting foreground start

This commit is contained in:
Disassembler 2018-04-05 14:04:28 +02:00
parent 3030131322
commit 934f6fe726
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
2 changed files with 6 additions and 8 deletions

View File

@ -5,8 +5,10 @@ RUN \
# Create OS user (which will be picked up later by apk add) # Create OS user (which will be picked up later by apk add)
addgroup -S -g 587 postfix \ addgroup -S -g 587 postfix \
&& adduser -S -u 587 -h /var/spool/postfix -s /bin/false -g postfix -G postfix postfix \ && adduser -S -u 587 -h /var/spool/postfix -s /bin/false -g postfix -G postfix postfix \
# Install Postfix # Add edge/main repository
&& apk --no-cache add ca-certificates postfix s6 \ && echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >>/etc/apk/repositories \
# Install Postfix 3.3
&& apk --no-cache add ca-certificates postfix@edge s6 \
# Build aliases database # Build aliases database
&& newaliases \ && newaliases \
# Cleanup # Cleanup

View File

@ -1,7 +1,3 @@
#!/bin/sh #!/bin/execlineb -P
/usr/sbin/postfix -c /etc/postfix start /usr/sbin/postfix -c /etc/postfix start-fg
while kill -0 $(cat /var/spool/postfix/pid/master.pid) 2>/dev/null; do
sleep 1
done