File: cidr_table.5.html

package info (click to toggle)
postfix 2.3.8-2%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 15,744 kB
  • ctags: 11,426
  • sloc: ansic: 81,810; makefile: 10,743; sh: 7,874; perl: 2,468; awk: 41
file content (105 lines) | stat: -rw-r--r-- 4,334 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<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)

<b>NAME</b>
       cidr_table - format of Postfix CIDR tables

<b>SYNOPSIS</b>
       <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>

<b>DESCRIPTION</b>
       The  Postfix  mail  system  uses  optional  lookup tables.
       These tables are usually in <b>dbm</b> or  <b>db</b>  format.   Alterna-
       tively,  lookup 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 -q</b>" command as
       described in the SYNOPSIS above.

<b>TABLE FORMAT</b>
       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
              0.0.0.0/0 to match every IPv4 address, and ::/0  to
              match every IPv6 address.

              An IPv4 network address is a sequence of four deci-
              mal octets separated by ".", and  an  IPv6  network
              address is a sequence of three to eight hexadecimal
              octet pairs separated by ":".

              Before comparisons are made, lookup keys and  table
              entries are converted from string to binary. There-
              fore table entries will be  matched  regardless  of
              redundant zero characters.

              Note:  address  information  may be enclosed inside
              "[]" but this form is not recommended.

              IPv6 support is available in Postfix 2.2 and later.

       <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.

<b>TABLE SEARCH ORDER</b>
       Patterns are applied in the order as specified in the  ta-
       ble,  until  a  pattern  is  found that matches the search
       string.

<b>EXAMPLE SMTPD ACCESS MAP</b>
       /etc/postfix/main.cf:
           <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.
           192.168.1.1             OK
           192.168.0.0/16          REJECT

<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

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

<b>AUTHOR(S)</b>
       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

                                                                 CIDR_TABLE(5)
</pre> </body> </html>