Skip to content

Instantly share code, notes, and snippets.

@steelcowboy
Created January 28, 2019 17:13
Show Gist options
  • Save steelcowboy/0e0a906c0597ea6021b9e25b94882cd0 to your computer and use it in GitHub Desktop.
Save steelcowboy/0e0a906c0597ea6021b9e25b94882cd0 to your computer and use it in GitHub Desktop.
Dockerfile to set up Postfix
FROM mailu/postfix:1.6
ARG SASLFILE=/etc/postfix/sasl_passwd
ADD postfix.cf /overrides/postfix.cf
ADD sasl_passwd $SASLFILE
RUN postmap hash:$SASLFILE
RUN chown root:root $SASLFILE $SASLFILE.db && chmod 0600 $SASLFILE $SASLFILE.db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment