Swiched from alpine:edge to alpine:latest. Fixed some typos.

This commit is contained in:
Bojan Čekrlić 2018-11-13 12:05:58 +01:00
parent cef2d06d3d
commit 397c0ce838
3 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
FROM alpine:edge
FROM alpine:latest
MAINTAINER Bojan Cekrlic - https://github.com/bokysan/docker-postfix/
# See README.md for details

View file

@ -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.

8
run.sh
View file

@ -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