cidr_table.5.html   [plain text]

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
<html> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<title> Postfix manual - cidr_table(5) </title>
</head> <body> <pre>
CIDR_TABLE(5)                                       CIDR_TABLE(5)

       cidr_table - format of Postfix CIDR tables

       <b>postmap -q "</b><i>string</i><b>" <a href="cidr_table.5.html">cidr</a>:/etc/postfix/</b><i>filename</i>

       <b>postmap -q - <a href="cidr_table.5.html">cidr</a>:/etc/postfix/</b><i>filename</i> &lt;<i>inputfile</i>

       The  Postfix  mail  system  uses  optional  access control
       tables.  These tables are usually in  <b>dbm</b>  or  <b>db</b>  format.
       Alternatively,  access  control tables can be specified in
       CIDR (Classless Inter-Domain Routing) form.

       To find out what types of lookup tables your Postfix  sys-
       tem supports use the <b>postconf -m</b> command.

       To   test  lookup  tables,  use  the  <b>postmap</b>  command  as
       described in the SYNOPSIS above.

       The general form of a Postfix CIDR table is:

       <i>network</i><b>_</b><i>address</i><b>/</b><i>network</i><b>_</b><i>mask     result</i>
              When a search string matches the specified  network
              block,  use the corresponding <i>result</i> value. Specify
     to match every address.

       <i>network</i><b>_</b><i>address     result</i>
              When a search string matches the specified  network
              address, use the corresponding <i>result</i> value.

       blank lines and comments
              Empty  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  logi-
              cal line.

       Patterns  are  applied  in  the  order as specified in the
       table, until a pattern is found that  matches  the  search

           <a href="postconf.5.html#smtpd_client_restrictions">smtpd_client_restrictions</a> = ... <a href="cidr_table.5.html">cidr</a>:/etc/postfix/client.cidr ...

       /etc/postfix/client.<a href="cidr_table.5.html">cidr</a>:
           # Rule order matters. Put more specific whitelist entries
           # before more general blacklist entries.

<b>SEE ALSO</b>
       <a href="postmap.1.html">postmap(1)</a>, Postfix lookup table manager
       <a href="regexp_table.5.html">regexp_table(5)</a> format of regular expression tables
       <a href="pcre_table.5.html">pcre_table(5)</a> format of PCRE tables

       <a href="DATABASE_README.html">DATABASE_README</a>, Postfix lookup table overview

       The CIDR table lookup code was originally written by:
       Jozsef Kadlecsik
       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

</pre> </body> </html>