use 10.0.0.0 network instead of 240.0.0.0

This commit is contained in:
Son 2022-03-20 10:38:58 +01:00
parent 7f4357a329
commit 0931642d11
4 changed files with 10 additions and 7 deletions

View File

@ -217,8 +217,8 @@ Later, we will setup Postfix to authorize this network.
```bash ```bash
sudo docker network create -d bridge \ sudo docker network create -d bridge \
--subnet=240.0.0.0/24 \ --subnet=10.0.0.0/24 \
--gateway=240.0.0.1 \ --gateway=10.0.0.1 \
sl-network sl-network
``` ```
@ -295,7 +295,7 @@ smtpd_tls_security_level = may
# information on enabling SSL in the smtp client. # information on enabling SSL in the smtp client.
alias_maps = hash:/etc/aliases alias_maps = hash:/etc/aliases
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 240.0.0.0/24 mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.0.0.0/24
# Set your domain here # Set your domain here
mydestination = mydestination =
@ -408,6 +408,8 @@ FLASK_SECRET=put_something_secret_here
GNUPGHOME=/sl/pgp GNUPGHOME=/sl/pgp
LOCAL_FILE_UPLOAD=1 LOCAL_FILE_UPLOAD=1
POSTFIX_SERVER=10.0.0.1
``` ```

View File

@ -109,7 +109,8 @@ MAX_NB_SUBDOMAIN = 5
ENFORCE_SPF = "ENFORCE_SPF" in os.environ ENFORCE_SPF = "ENFORCE_SPF" in os.environ
# allow to override postfix server locally # override postfix server locally
# use 240.0.0.1 here instead of 10.0.0.1 as existing SL instances use the 240.0.0.0 network
POSTFIX_SERVER = os.environ.get("POSTFIX_SERVER", "240.0.0.1") POSTFIX_SERVER = os.environ.get("POSTFIX_SERVER", "240.0.0.1")
DISABLE_REGISTRATION = "DISABLE_REGISTRATION" in os.environ DISABLE_REGISTRATION = "DISABLE_REGISTRATION" in os.environ

View File

@ -74,7 +74,7 @@ smtpd_tls_security_level = may
# information on enabling SSL in the smtp client. # information on enabling SSL in the smtp client.
alias_maps = hash:/etc/aliases alias_maps = hash:/etc/aliases
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 240.0.0.0/24 mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.0.0.0/24
# Set your domain here # Set your domain here
mydestination = localhost.localdomain, localhost mydestination = localhost.localdomain, localhost

View File

@ -21,10 +21,10 @@ b) then run the following commands
```bash ```bash
apt update apt update
apt install telnet -y apt install telnet -y
telnet 240.0.0.1 25 telnet 10.0.0.1 25
``` ```
If the `telnet 240.0.0.1 25` doesn't work, it means Postfix can't be reached from the docker container. If the `telnet 10.0.0.1 25` doesn't work, it means Postfix can't be reached from the docker container.
This means an issue with the Docker network. This means an issue with the Docker network.
You can then try `telnet 172.17.0.1 25` as `172.17.0.1` is *usually* the host IP address. If this works, then you can set You can then try `telnet 172.17.0.1 25` as `172.17.0.1` is *usually* the host IP address. If this works, then you can set