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