use 10.0.0.0 network instead of 240.0.0.0
This commit is contained in:
parent
7f4357a329
commit
0931642d11
|
@ -217,8 +217,8 @@ Later, we will setup Postfix to authorize this network.
|
|||
|
||||
```bash
|
||||
sudo docker network create -d bridge \
|
||||
--subnet=240.0.0.0/24 \
|
||||
--gateway=240.0.0.1 \
|
||||
--subnet=10.0.0.0/24 \
|
||||
--gateway=10.0.0.1 \
|
||||
sl-network
|
||||
```
|
||||
|
||||
|
@ -295,7 +295,7 @@ smtpd_tls_security_level = may
|
|||
# information on enabling SSL in the smtp client.
|
||||
|
||||
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
|
||||
mydestination =
|
||||
|
@ -408,6 +408,8 @@ FLASK_SECRET=put_something_secret_here
|
|||
GNUPGHOME=/sl/pgp
|
||||
|
||||
LOCAL_FILE_UPLOAD=1
|
||||
|
||||
POSTFIX_SERVER=10.0.0.1
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -109,7 +109,8 @@ MAX_NB_SUBDOMAIN = 5
|
|||
|
||||
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")
|
||||
|
||||
DISABLE_REGISTRATION = "DISABLE_REGISTRATION" in os.environ
|
||||
|
|
|
@ -74,7 +74,7 @@ smtpd_tls_security_level = may
|
|||
# information on enabling SSL in the smtp client.
|
||||
|
||||
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
|
||||
mydestination = localhost.localdomain, localhost
|
||||
|
|
|
@ -21,10 +21,10 @@ b) then run the following commands
|
|||
```bash
|
||||
apt update
|
||||
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.
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue