I replied to Charles thinking I was replying to the list... On Tue, Apr 6, 2010 at 12:40 PM, Charles Marcus <cmar...@media-brokers.com> wrote: > On 2010-04-06 2:35 PM, Robert Lopez wrote: >> If I remove the .db ile (As Noel points out not necessary) then I get >> an error because postmap seems to only look in database files: >> >> $ postmap -q 222.254.228.0/24 cidr-ip >> postmap: fatal: open database cidr-ip.db: No such file or directory > > Did you miss this from Wietse?
I read it but at the time did not undestand it. > > "SYNOPSIS >> postmap -q "string" cidr:/etc/postfix/filename" > > Note the 'cidr:/' prefix to the file path/name? > > Noel already pointed out you need to use a single IP as the key... I have just confirmed that having this line in the file: 222.254.228.0/24 DISCARD Then then this is working: $ postmap -q 222.254.228.0 cidr:/etc/postfix/cidr-ip DISCARD $ postmap -q 222.254.228.1 cidr:/etc/postfix/cidr-ip DISCARD So, now I understand. > > -- > > Best regards, > > Charles -- Robert Lopez Unix Systems Administrator Central New Mexico Community College (CNM) 525 Buena Vista SE Albuquerque, New Mexico 87106