Allow to set "mynetworks" variable in postfix main.cf

This commit is contained in:
Julian Ospald 2015-08-25 19:35:54 +02:00
parent aff4bbd841
commit 7e47e457ac
3 changed files with 7 additions and 0 deletions

View File

@ -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. 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 5. Build container
docker build -t dockermail_email_core . docker build -t dockermail_email_core .

View File

@ -47,6 +47,10 @@ chmod u+w /vmail
# Add password file # Add password file
cp /mail_settings/passwords /etc/dovecot/passwd 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 # Run boot scripts
for SCRIPT in /boot.d/* for SCRIPT in /boot.d/*

View File

@ -0,0 +1 @@
127.0.0.0/8 [::1]/128