mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-13 01:44:33 +08:00
mynetworks via ENV
This commit is contained in:
parent
d83c121323
commit
f7b23291f8
1 changed files with 6 additions and 1 deletions
|
@ -41,7 +41,12 @@ fi
|
||||||
##echo "fd00::/8" >> $network_table
|
##echo "fd00::/8" >> $network_table
|
||||||
#postmap $network_table
|
#postmap $network_table
|
||||||
#postconf -e mynetworks=hash:$network_table
|
#postconf -e mynetworks=hash:$network_table
|
||||||
postconf -e "mynetworks=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"
|
|
||||||
|
if [[ ! -z "$MYNETWORKS" ]]; then
|
||||||
|
postconf -e relayhost=$MYNETWORKS
|
||||||
|
else
|
||||||
|
postconf -e "mynetworks=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"
|
||||||
|
fi
|
||||||
|
|
||||||
# Split with space
|
# Split with space
|
||||||
if [[ ! -z "$ALLOWED_SENDER_DOMAINS" ]]; then
|
if [[ ! -z "$ALLOWED_SENDER_DOMAINS" ]]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue