On Tue, Apr 6, 2010 at 12:33 PM, /dev/rob0 <r...@gmx.co.uk> wrote: > On Tue, Apr 06, 2010 at 11:57:00AM -0600, Robert Lopez wrote: >> On Tue, Apr 6, 2010 at 10:52 AM, Noel Jones <njo...@megan.vbhcs.org> >> wrote: >> > On 4/6/2010 11:39 AM, Robert Lopez wrote: >> >> Why does postfix not like the source file being removed from the >> >> /etc/postfix directory? >> > >> > cidr tables are plain-text tables. The source file is the live >> > table data. The .db file is your mistake; cidr tables should not >> > be indexed with postmap. >> >> That surprises me. >> >> The man page seems to me to indicate otherwise. >> My confusion is with this sentence: >> "These tables are usually in dbm or db format." >> which is from the Description portion below... > > Yes, and it continues: > "Alternatively, lookup tables can be specified in CIDR ... form." > > Taken together, with emphasis added: > "These tables are USUALLY in dbm or db format. ALTERNATIVELY, lookup > tables CAN BE ..." > > Perhaps the wording can be improved. The "usually" part is not so > relevant as are the particulars of what a cidr: map should be. > > " > The Postfix mail system uses optional lookup tables as described in > the DATABASE_README document. Lists of IP addresses can be specified > in CIDR (Classless Inter-Domain Routing) form. In this case, a plain > text file is the map, with the standard "key whitespace value" > format. When a match is found, the corresponding result is returned > and the search is terminated. > "
That would help. Then so would this: "To test lookup tables, use the "postmap -q" command as described in the SYNOPSIS above for database files. The postmap -q will not work on the CIDR file as it is a test file." > > I know, it's probably not appropriate to refer to a README in that > part of a man page, but it seems more thorough and less likely to > confuse, to me, than the "usually" verbiage. > -- > Offlist mail to this address is discarded unless > "/dev/rob0" or "not-spam" is in Subject: header > -- Robert Lopez Unix Systems Administrator Central New Mexico Community College (CNM) 525 Buena Vista SE Albuquerque, New Mexico 87106