2009/6/3 Sthu Pous <sthu.p...@gmail.com>:
> Interesting to note, but on
>
> postconf -d
>
> I see mynetworks = 127.0.0.0/8 v.x.y.z/25 192.168.0.0/24


That's well and good, but -d is for defaults, don't use it to make
judgements. All that matters is what you see here and now with
`postconf -n`, which you haven't shown us.

This might also be of interest:
http://www.postfix.org/postconf.5.html#mynetworks_style

The default is "subnet", which will include your attached networks.
For an internet-facing MX this may be undesirable. When you use
`postconf -d`, it will assume "subnet", so you have to interpret
"mynetworks" with that in mind.

> from whence it comes? - I have no mynetworks file.

The docs explain this:
http://www.postfix.org/postconf.5.html#mynetworks
"Specify a list of network addresses or network/netmask patterns,
separated by commas and/or whitespace. You can also specify
"/file/name" or "type:table" patterns"
I'd dare say the "normal" configuration for most of us is just putting
your networks directly in main.cf, but you have the freedom to make it
external.


As mouss suggested, your query is unclear. I can think of two interpretations:
1. "I've set mynetworks=127.0.0.0/8 in main.cf but for some reason
machines on my LAN can relay mail out to the internet, how do I stop
this?"
2. "I've set mynetworks=127.0.0.0/8 in main.cf and I want to allow
machines on my LAN to relay mail out to the internet, how do I make
this possible?"

Reply via email to