On 2014.12.15 23.51, Peter wrote:
On 12/16/2014 07:22 AM, btb wrote:
with various sized netblocks rejected therein.  this all works fine.
i have more than one mx, and would like to store this data in a
centralized location and query over the network instead of
duplicating the files on each mx.  i don't believe postfix can
currently do this, aside from a traditional access(5) lookup which is
limited to octet boundaries.  am i wrong?  if not, could this be
considered as a possible feature?  could this potentially be done
with pipemap?

Postfix can't do it, but if you google for "mysql cidr" you will come
across various ways to do CIDR matches in mysql, just pick one that
works for you and off you go.

thanks, i'll look into this

Also if you haven't locked in your decision to use mysql yet you may
want to consider postgresql instead which has native CIDR and other
network data types and functions you can work with.

i'm not at all committed to mysql.  it just served as a practical example.

thanks
-ben

Reply via email to