You've already forked docker-smtp
Improve comments
This commit is contained in:
@@ -8,11 +8,7 @@ RUN set -ex; \
|
|||||||
apt-get install -y exim4-daemon-light; \
|
apt-get install -y exim4-daemon-light; \
|
||||||
apt-get clean
|
apt-get clean
|
||||||
|
|
||||||
# Copy the main script.
|
|
||||||
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
||||||
|
|
||||||
# We expose exim on port 25.
|
|
||||||
EXPOSE 25/tcp
|
EXPOSE 25/tcp
|
||||||
|
|
||||||
ENTRYPOINT [ "docker-entrypoint.sh" ]
|
ENTRYPOINT [ "docker-entrypoint.sh" ]
|
||||||
CMD [ "exim", "-bdf", "-v", "-q30m" ]
|
CMD [ "exim", "-bdf", "-v", "-q30m" ]
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ DC_EXIMCONFIG_CONFIGTYPE="internet"
|
|||||||
# in case port 25 is accidentally exposed to the public 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"
|
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
|
if [ "x$RELAY_HOST" != "x" ]; then
|
||||||
DC_EXIMCONFIG_CONFIGTYPE="satellite"
|
DC_EXIMCONFIG_CONFIGTYPE="satellite"
|
||||||
DC_SMARTHOST="$RELAY_HOST::${RELAY_PORT:-25}"
|
DC_SMARTHOST="$RELAY_HOST::${RELAY_PORT:-25}"
|
||||||
|
|||||||
Reference in New Issue
Block a user