Allow to set "mynetworks" variable in postfix main.cf
This commit is contained in:
parent
aff4bbd841
commit
7e47e457ac
@ -37,6 +37,8 @@ Use the the example config files in `config/example` to get you started.
|
||||
|
||||
4. Change the hostname in file `/var/lib/dockermail/settings/myhostname` to the correct fully qualified domain of your server.
|
||||
|
||||
5. Set the "mynetworks" variable for postfix in file `/var/lib/dockermail/settings/postfix-networks` to e.g. `127.0.0.0/8 [::1]/128` (one single line only).
|
||||
|
||||
5. Build container
|
||||
|
||||
docker build -t dockermail_email_core .
|
||||
|
@ -47,6 +47,10 @@ chmod u+w /vmail
|
||||
# Add password file
|
||||
cp /mail_settings/passwords /etc/dovecot/passwd
|
||||
|
||||
# set mynetworks
|
||||
sed -i \
|
||||
-e "s#^mynetworks = .*#mynetworks = $(cat /mail_settings/postfix-networks | tr -d '\n')#" \
|
||||
/etc/postfix/main.cf
|
||||
|
||||
# Run boot scripts
|
||||
for SCRIPT in /boot.d/*
|
||||
|
1
core/config/example/postfix-networks
Normal file
1
core/config/example/postfix-networks
Normal file
@ -0,0 +1 @@
|
||||
127.0.0.0/8 [::1]/128
|
Loading…
Reference in New Issue
Block a user