cidr maps

2013-05-23 Thread LuKreme
In a cidr map in postfix, I thought that both 10.0.0.8/8 and 10.0.0.0/255.0.0.0 
were valid syntaxes

however, 

220.73.0.0/255.255.0.0  reject

in postscreen_access.cidr posts an error, so obviously that syntax is wrong. Do 
I have to transform that to a /16 or is there a IP and Netmask version that is 
allowed?

cidr_table says

 The general form of a Postfix CIDR table is:
 
 network_address/network_mask result

But obviously the network_mask there is not the Subnet mask I am used to.

-- 
I WILL NOT HIDE BEHIND THE FIFTH AMENDMENT Bart chalkboard Ep. 7F18



Re: cidr maps

2013-05-23 Thread Wietse Venema
LuKreme:
 220.73.0.0/255.255.0.0  reject

TABLE FORMAT
   The general form of a Postfix CIDR table is:

   network_address/network_mask result
  When  a  search  string matches the specified network block, use
  the corresponding result value. Specify 0.0.0.0/0 to match every
  IPv4 address, and ::/0 to match every IPv6 address.

Postfix expects that the mask is specified as a number of bits.
I'll update the manpage.

Wietse