On 05/06/2011 05:59 PM, Sahil Tandon wrote:
Question on main.cf
mynetworks = hash:/etc/postfix/network_table
After much looking and I surmise the format should be
192.168.1.2 OK (a space between IP and "OK")
"should work"..
In this context, Postfix only cares if the lookup succeeds; the result
(whether it's OK, or anything else) is ignored.
and that CIDR
192.168.1.0/24 OK (a space between IP and "OK")
does not work.
If you wish to use CIDR, then use cidr: instead of hash:.
We have a client that has a list of about 80 IP addresses.
I created a table used the format of
IP OK
and put in :
mynetworks = cidr1 , cidr2 , hash:/etc/postfix/customer-x.servers
postmap customer-x.servers
postfix reload
and success..
I am not sure what I was doing incorrectly before but I wanted to post
my success / solution..
I will look into the cidr: and see what I am doing wrong there..
hope this helps someone else..
Charles