Improve comments

This commit is contained in:
Jamie Nguyen
2018-07-15 10:12:47 +01:00
parent 5ac53db2d5
commit 52f96d4cff
2 changed files with 1 additions and 5 deletions

View File

@@ -8,11 +8,7 @@ RUN set -ex; \
apt-get install -y exim4-daemon-light; \
apt-get clean
# Copy the main script.
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
# We expose exim on port 25.
EXPOSE 25/tcp
ENTRYPOINT [ "docker-entrypoint.sh" ]
CMD [ "exim", "-bdf", "-v", "-q30m" ]

View File

@@ -10,7 +10,7 @@ DC_EXIMCONFIG_CONFIGTYPE="internet"
# in case port 25 is accidentally exposed to the public internet.
DC_RELAY_NETS="10.0.0.0/8;172.16.0.0/12;192.168.0.0/16"
# Set smarthost.
# If RELAY_HOST has been set then switch to smart host configuration.
if [ "x$RELAY_HOST" != "x" ]; then
DC_EXIMCONFIG_CONFIGTYPE="satellite"
DC_SMARTHOST="$RELAY_HOST::${RELAY_PORT:-25}"