mirror of
https://github.com/bokysan/docker-postfix.git
synced 2024-09-20 14:56:10 +08:00
Swiched from alpine:edge to alpine:latest. Fixed some typos.
This commit is contained in:
parent
cef2d06d3d
commit
397c0ce838
|
@ -1,4 +1,4 @@
|
|||
FROM alpine:edge
|
||||
FROM alpine:latest
|
||||
MAINTAINER Bojan Cekrlic - https://github.com/bokysan/docker-postfix/
|
||||
|
||||
# See README.md for details
|
||||
|
|
|
@ -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
8
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
|
||||
|
|
Loading…
Reference in a new issue