Hello,

I run a docker container on my server. To not have all docker containers need 
to authenticate when sending mail, I added
the private network range 172.16/12 to mynetworks:

# Added private network 172.16/12 for Docker


mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 172.16.0.0/12


* Is this safe?

* Is there another / better way to achieve what I want?


# ip route
default via 188.68.36.1 dev ens3
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
188.68.36.0/22 dev ens3 proto kernel scope link src 188.68.38.242

# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode 
DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP 
mode DEFAULT group default qlen 1000
    link/ether 06:08:95:a6:04:77 brd ff:ff:ff:ff:ff:ff
3: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP 
mode DEFAULT group default
    link/ether 02:42:2b:eb:c1:98 brd ff:ff:ff:ff:ff:ff
267: veth1dac1ee@if266: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc 
noqueue master docker0 state UP mode DEFAULT
group default
    link/ether 7a:a8:15:1f:cb:f4 brd ff:ff:ff:ff:ff:ff link-netnsid 0



Thanks,
Florian

Reply via email to