From 397c0ce8388621f862be6bc598517cdc849b40f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bojan=20=C4=8Cekrli=C4=87?= Date: Tue, 13 Nov 2018 12:05:58 +0100 Subject: [PATCH] Swiched from alpine:edge to alpine:latest. Fixed some typos. --- Dockerfile | 2 +- README.md | 2 +- run.sh | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index c7007ac..51d5e90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:edge +FROM alpine:latest MAINTAINER Bojan Cekrlic - https://github.com/bokysan/docker-postfix/ # See README.md for details diff --git a/README.md b/README.md index 77e078f..b7c6bd9 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ E.g.: create a custom `Dockerfile` like this: ``` FROM boky/postfix MAINTAINER Some Randombloke "randombloke@example.com" -ADD Dockerfiles/additiona-config.sh /docker-init.db/ +ADD Dockerfiles/additional-config.sh /docker-init.db/ ``` Build it with docker and your script will be automatically executed before Postfix starts. diff --git a/run.sh b/run.sh index 2ec13d9..98e192c 100644 --- a/run.sh +++ b/run.sh @@ -20,8 +20,8 @@ postconf -e mydestination= # Don't relay for any domains postconf -e relay_domains= -# As this is a server-based service, allow any message size -- we hope the server knows -# what it is doing +# As this is a server-based service, allow any message size -- we hope the sender knows +# what he is doing postconf -e "message_size_limit=0" # Reject invalid HELOs @@ -81,13 +81,13 @@ if [ ! -z "$ALLOWED_SENDER_DOMAINS" ]; then postconf -e "smtpd_restriction_classes=allowed_domains_only" postconf -e "allowed_domains_only=permit_mynetworks, reject_non_fqdn_sender reject" # Update: loosen up on RCPT checks. This will mean we might get some emails which are not valid, but the service connecting -# will be able to send out emails much faster, as there will be no lookup and lockup if the target server is not responing or availalb.e +# will be able to send out emails much faster, as there will be no lookup and lockup if the target server is not responing or available. # postconf -e "smtpd_recipient_restrictions=reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unverified_recipient, check_sender_access hash:$allowed_senders, reject" postconf -e "smtpd_recipient_restrictions=reject_non_fqdn_recipient, reject_unknown_recipient_domain, check_sender_access hash:$allowed_senders, reject" else postconf -# "smtpd_restriction_classes" # Update: loosen up on RCPT checks. This will mean we might get some emails which are not valid, but the service connecting -# will be able to send out emails much faster, as there will be no lookup and lockup if the target server is not responing or availalb.e +# will be able to send out emails much faster, as there will be no lookup and lockup if the target server is not responing or available. # postconf -e "smtpd_recipient_restrictions=reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unverified_recipient" postconf -e "smtpd_recipient_restrictions=reject_non_fqdn_recipient, reject_unknown_recipient_domain, defer_unauth_destination, permit" fi