NAME
cidrtable - format of Postfix CIDR tables
SYNOPSIS
ppoossttmmaapp -qq ""string"" cciiddrr:://eettcc//ppoossttffiixx//filename
ppoossttmmaapp -qq - cciiddrr:://eettcc//ppoossttffiixx//filename
DESCRIPTION
The Postfix mail system uses optional access control tables. These tables are usually in ddbbmm or ddbb format. Alternatively, access controltables can be specified in CIDR (Classless Inter-Domain Routing) form.
To find out what types of lookup tables your Postfix system supportsuse the ppoossttccoonnff -mm command.
To test lookup tables, use the ppoossttmmaapp command as described in the SYN-
OPSIS above. TTAABBLLEE FFOORRMMAATT The general form of a Postfix CIDR table is: networkaddress//networkmask result When a search string matches the specified network block, use the corresponding result value. Specify 0.0.0.0/0 to match every address. networkaddress result When a search string matches the specified network address, use the corresponding result value. blank lines and commentsEmpty lines and whitespace-only lines are ignored, as are lines
whose first non-whitespace character is a `#'.
multi-line text
A logical line starts with non-whitespace text. A line that
starts with whitespace continues a logical line. SSEEAARRCCHH OORRDDEERR Patterns are applied in the order as specified in the table, until a pattern is found that matches the search string. EEXXAAMMPPLLEE SSMMTTPPDD AACCCCEESSSS MMAAPP /etc/postfix/main.cf: smtpdclientrestrictions = ... cidr:/etc/postfix/client.cidr ... /etc/postfix/client.cidr:# Rule order matters. Put more specific whitelist entries
# before more general blacklist entries.
192.168.1.1 OK 192.168.0.0/16 REJECTSEE ALSO
postmap(1), Postfix lookup table manager regexptable(5) format of regular expression tables pcretable(5) format of PCRE tables README FILES Use "ppoossttccoonnff rreeaaddmmeeddiirreeccttoorryy" or "ppoossttccoonnff hhttmmllddiirreeccttoorryy" to locate this information. DATABASEREADME, Postfix lookup table overview AUTHOR(S) The CIDR table lookup code was originally written by: Jozsef Kadlecsik kadlec@blackhole.kfki.hu KFKI Research Institute for Particle and Nuclear Physics POB. 49 1525 Budapest, Hungary Adopted and adapted by: Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA CIDRTABLE(5)