Skip to content

Commit

Permalink
Fixes Turgon37#1
Browse files Browse the repository at this point in the history
  • Loading branch information
Turgon37 committed Nov 3, 2018
1 parent 6742d6c commit aa4f090
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ ENV RELAY_MYDOMAIN=domain.com \
#RELAY_LOGIN=loginname
#RELAY_PASSWORD=xxxxxxxx
#RELAY_TLS_CA=/etc/ssl/ca.crt
#RELAY_EXTRAS_SETTINGS


# Install dependencies
Expand Down
9 changes: 9 additions & 0 deletions root/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ if [ "$RELAY_STRICT_SENDER_MYDOMAIN" = 'true' ]; then
postconf -e "smtpd_sender_restrictions = check_sender_access inline:{$RELAY_MYDOMAIN=OK}, reject"
fi

# set extras configurations
if [ ! -z "${RELAY_EXTRAS_SETTINGS}" ]; then
for item in ${RELAY_EXTRAS_SETTINGS}; do
echo "...set extras setting... ${item}"
postconf -e "${item}"
done
fi


echo "Bulk registering sasl users..."
# Fill the sasl user database with seed
if [ -f /etc/postfix/client_sasl_passwd ]; then
Expand Down

0 comments on commit aa4f090

Please sign in to comment.