I've got a mystery on my hand; in postfix.mynetworks there is 10.0.0.0/8 added, and I have no idea where it comes from:
If I search for the string in /etc nothing relevant matches.
So all I can come up with is this is generated and since I have an internal route to 10.0.0.0/8 it's added automatically. I don't understand why though. No normal application would send mail to port 26, unless specifically configured. I've set up an internal mail server, 10.10.110.32, which handles who can send outgoing emails, and the only one who should directly have access to the outgoing gateway is that server. That's how pmg is advertised to work.
Now I can edit the template and hard code mynetworks, but I don't think that's very elegant. I've set up nftables as a workaround.
Your thoughts?
Code:
root@pinkdemon /etc # pmgconfig dump|grep 10.0.0.0/8
postfix.mynetworks = 10.0.0.0/8 10.10.110.32/32 127.0.0.0/8 [::1]/128
If I search for the string in /etc nothing relevant matches.
Code:
root@pinkdemon /etc # rg 10.0.0.0/8
network/interfaces
7: post-up route add -net 10.0.0.0/8 gw 10.10.110.254; route add -net 172.16.0.0/12 gw 10.10.110.254;
8: pre-down route del -net 10.0.0.0/8 gw 10.10.110.254; route del -net 172.16.0.0/12 gw 10.10.110.254;
postfix/main.cf
30:mynetworks = 10.0.0.0/8 10.10.110.32/32 127.0.0.0/8 [::1]/128
root@pinkdemon /etc # cat pmg/mynetworks
10.10.110.32/32 #brennis
So all I can come up with is this is generated and since I have an internal route to 10.0.0.0/8 it's added automatically. I don't understand why though. No normal application would send mail to port 26, unless specifically configured. I've set up an internal mail server, 10.10.110.32, which handles who can send outgoing emails, and the only one who should directly have access to the outgoing gateway is that server. That's how pmg is advertised to work.
Now I can edit the template and hard code mynetworks, but I don't think that's very elegant. I've set up nftables as a workaround.
Your thoughts?